pulsar/spec/atom-protocol-handler-spec.js
Sadick 83d6c09b10
Decaffeinate specs (#21546)
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
2020-10-30 16:40:57 +03:00

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);
}));