mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-04 07:52:51 +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);
|