mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
83d6c09b10
Decaffeinate the following files. * atom-protocol-handler * babel-spec * buffered-node-process * buffered-process * clipboard * context-menu-manager * decoration-manager * default-directory-provider * deserializer-manager * file-system-blob-store * keymap-extensions * menu-manager * module-cache * pane-axis-element * pane-container-element * pane-element * package-spec * squirel-update * styles-element-spec * task-spec * typescript-spec * spec-helper-platform
11 lines
384 B
JavaScript
11 lines
384 B
JavaScript
describe('"atom" protocol URL', () =>
|
|
it('sends the file relative in the package as response', function() {
|
|
let called = false;
|
|
const request = new XMLHttpRequest();
|
|
request.addEventListener('load', () => (called = true));
|
|
request.open('GET', 'atom://async/package.json', true);
|
|
request.send();
|
|
|
|
waitsFor('request to be done', () => called === true);
|
|
}));
|