mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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);
|