Mailspring/app/spec/async-test-spec.es6
2017-09-26 11:33:08 -07:00

27 lines
556 B
JavaScript

const foo = () => {
return new Promise(resolve => {
setTimeout(() => {
console.log('---------------------------------- RESOLVING');
resolve();
}, 100);
});
};
xdescribe('test spec', function testSpec() {
// it("has 1 failure", () => {
// expect(false).toBe(true)
// });
it('is async', () => {
const p = foo().then(() => {
console.log('THEN');
expect(true).toBe(true);
});
advanceClock(200);
return p;
});
// it("has another failure", () => {
// expect(false).toBe(true)
// });
});