mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-17 20:09:48 +00:00
13 lines
185 B
TypeScript
13 lines
185 B
TypeScript
import assert = require("nanoassert");
|
|
|
|
assert(true);
|
|
assert(false, "error");
|
|
assert("yes");
|
|
assert(0, "error");
|
|
|
|
// $ExpectError
|
|
assert(true, 1);
|
|
|
|
// $ExpectError
|
|
assert(true, false);
|