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