dummy.ts
17 lines
| 432 B
| video/mp2t
|
TypeScriptLexer
cin
|
r1 | import { test } from "./TestTraits"; | ||
import { delay } from "@implab/core-amd/safe"; | ||||
import { assert } from "chai"; | ||||
cin
|
r28 | 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 | |||
cin
|
r15 | test("simple", async (log, fail) => { | ||
cin
|
r1 | await delay(0); | ||
assert.ok(true); // everything is fine | ||||
}); | ||||