dummy.ts
18 lines
| 467 B
| video/mp2t
|
TypeScriptLexer
cin
|
r1 | import { test } from "./TestTraits"; | ||
import { delay } from "@implab/core-amd/safe"; | ||||
import { assert } from "chai"; | ||||
cin
|
r7 | import css = require("@implab/djx/css!my,css"); | ||
cin
|
r8 | import {} from "@implab/djx/i18n"; | ||
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 | ||||
}); | ||||