{ } qjs-modules

assertStrict

Source: lib/assertStrict.js

Node's assert/strict: the strict mode of assert.

import assert from 'assertStrict';

assert.deepEqual({ a: 1 }, { a: 1 });   // deepStrictEqual semantics
assert.equal(1, '1');                   // throws, strictEqual semantics

Re-exports everything of assert and makes the strict function the default export.

Export list

Generated by utilities/doc-api.js from the assertStrict dump of utilities/api-surface.sh: 30 members. Edit the text above this block, not the block.

Functions: Assert(), assert(), assert_default(), deepEqual(), deepStrictEqual(), default(), doesNotMatch(), doesNotReject(), doesNotThrow(), equal(), fail(), ifError(), isDeepEqual(), match(), noop(), notDeepEqual(), notDeepStrictEqual(), notEqual(), notStrictEqual(), ok(), partialDeepEqual(), partialDeepStrictEqual(), rejects(), strict(), strictEqual(), throws()

AssertionError

class, constructible

  • methods: toString()
  • properties: [Symbol.toStringTag]