urltomarkdown/tests/url_to_markdown_readers.tes...

16 lines
577 B
JavaScript
Raw Permalink Normal View History

2022-12-23 12:03:25 +00:00
const readers = require('../url_to_markdown_readers.js');
test('get html reader', () => {
reader = readers.reader_for_url("https://en.wikipedia.org");
expect(reader).toBeInstanceOf(readers.html_reader);
});
test('get stack overflow reader', () => {
reader = readers.reader_for_url("https://stackoverflow.com/questions/0");
expect(reader).toBeInstanceOf(readers.stack_reader);
});
test('get apple dev docs reader', () => {
reader = readers.reader_for_url("https://developer.apple.com/documentation/swift/array");
expect(reader).toBeInstanceOf(readers.apple_reader);
});