mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add types for browserify/commonjs-assert * fix tests and rename to 'assert' * fix some linting errors, checking in to avoid closing of pull request * fixed all lint errors
11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
import * as assert from 'assert';
|
|
|
|
assert(true, "it's working");
|
|
|
|
assert.ok(true, "inner functions work as well");
|
|
|
|
assert.throws(() => {});
|
|
assert.throws(() => {}, () => {}, "works wonderfully");
|
|
|
|
assert['fail'](true, true, "works like a charm");
|