urltomarkdown/tests/url_to_markdown_apple_dev_d...

9 lines
443 B
JavaScript
Raw Permalink Normal View History

2022-12-23 12:03:25 +00:00
const apple_dev_parser = require('../url_to_markdown_apple_dev_docs.js');
const swift_array_docs_url = "https://developer.apple.com/documentation/swift/array";
const expected_location_of_json = "https://developer.apple.com/tutorials/data/documentation/swift/array.json";
test('parse apple url', () => {
let location_of_json = apple_dev_parser.dev_doc_url(swift_array_docs_url);
expect(location_of_json).toBe(expected_location_of_json);
});