mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
12 lines
405 B
Text
12 lines
405 B
Text
|
describe('"nylas" protocol URL', () => {
|
||
|
it('sends the file relative in the package as response', () => {
|
||
|
let called = false;
|
||
|
const request = new XMLHttpRequest();
|
||
|
request.addEventListener('load', () => { called = true; return });
|
||
|
request.open('GET', 'nylas://account-sidebar/package.json', true);
|
||
|
request.send();
|
||
|
|
||
|
waitsFor('request to be done', () => called === true);
|
||
|
})
|
||
|
});
|