mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
28 lines
549 B
Text
28 lines
549 B
Text
|
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)
|
||
|
// });
|
||
|
});
|