dummy.ts
18 lines
| 446 B
| video/mp2t
|
TypeScriptLexer
cin
|
r1 | import { test } from "./TestTraits"; | ||
import { delay } from "@implab/core-amd/safe"; | ||||
import { assert } from "chai"; | ||||
cin
|
r7 | import "@implab/djx"; | ||
import css = require("@implab/djx/css!my,css"); | ||||
cin
|
r0 | |||
cin
|
r1 | test("simple", (ok, fail, log) => { | ||
cin
|
r0 | setTimeout(() => { | ||
// end should be called after the last assertion | ||||
cin
|
r1 | ok("async assert"); | ||
cin
|
r0 | }, 100); | ||
}); | ||||
cin
|
r1 | |||
test("simple", async log => { | ||||
await delay(0); | ||||
assert.ok(true); // everything is fine | ||||
}); | ||||