9 lines
443 B
JavaScript
Executable File
9 lines
443 B
JavaScript
Executable File
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);
|
|
}); |