mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
18 lines
347 B
TypeScript
18 lines
347 B
TypeScript
import * as assert from 'assert';
|
|
|
|
assert(true, "it's working");
|
|
|
|
assert.ok(true, 'inner functions work as well');
|
|
|
|
assert.throws(() => {});
|
|
assert.throws(() => {}, /Regex test/);
|
|
assert.throws(
|
|
() => {},
|
|
() => {},
|
|
'works wonderfully',
|
|
);
|
|
|
|
assert['fail'](true, true, 'works like a charm');
|
|
|
|
assert.strict; // $ExpectType typeof assert
|