DefinitelyTyped/types/assert/assert-tests.ts
Nicolás Andrés Gallinal 7aa3334626 Add types for browserify/commonjs-assert (#29188)
* 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
2018-10-02 11:37:55 -07:00

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");