mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Co-Authored-By: Linus Unnebäck <linus@folkdatorn.se> Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
16 lines
302 B
TypeScript
16 lines
302 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');
|