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