2017-09-06 04:37:40 +08:00
|
|
|
describe('"mailspring" protocol URL', () => {
|
2016-10-13 02:38:30 +08:00
|
|
|
it('sends the file relative in the package as response', () => {
|
|
|
|
let called = false;
|
|
|
|
const request = new XMLHttpRequest();
|
2017-09-27 02:33:08 +08:00
|
|
|
request.addEventListener('load', () => {
|
|
|
|
called = true;
|
|
|
|
return;
|
|
|
|
});
|
2017-09-06 04:37:40 +08:00
|
|
|
request.open('GET', 'mailspring://account-sidebar/package.json', true);
|
2016-10-13 02:38:30 +08:00
|
|
|
request.send();
|
|
|
|
|
|
|
|
waitsFor('request to be done', () => called === true);
|
2017-09-27 02:33:08 +08:00
|
|
|
});
|
2016-10-13 02:38:30 +08:00
|
|
|
});
|