Mailspring/app/spec/mailspring-protocol-handler-spec.ts

15 lines
433 B
TypeScript
Raw Normal View History

describe('"mailspring" protocol URL', () => {
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;
});
request.open('GET', 'mailspring://account-sidebar/package.json', true);
request.send();
waitsFor('request to be done', () => called === true);
2017-09-27 02:33:08 +08:00
});
});