mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
14 lines
433 B
JavaScript
14 lines
433 B
JavaScript
describe('"mailspring" 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', 'mailspring://account-sidebar/package.json', true);
|
|
request.send();
|
|
|
|
waitsFor('request to be done', () => called === true);
|
|
});
|
|
});
|