Lines Matching defs:assert

63 const AssertionError = require('internal/assert/assertion_error');
72 const CallTracker = require('internal/assert/calltracker');
108 // The assert module provides functions that throw
110 // assert module must conform to the following interface.
112 const assert = module.exports = ok;
149 'assert.fail() with more than one argument is deprecated. ' +
150 'Please use assert.strictEqual() instead or only pass a message.',
175 assert.fail = fail;
178 assert.AssertionError = AssertionError;
259 // No matching expression found. This could happen if the assert
383 message = 'No value argument passed to `assert.ok()`';
412 assert.ok = ok;
422 assert.equal = function equal(actual, expected, message) {
446 assert.notEqual = function notEqual(actual, expected, message) {
469 assert.deepEqual = function deepEqual(actual, expected, message) {
492 assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
517 assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {
541 assert.notDeepStrictEqual = notDeepStrictEqual;
565 assert.strictEqual = function strictEqual(actual, expected, message) {
587 assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
834 const fnType = stackStartFn === assert.rejects ? 'rejection' : 'exception';
881 const fnType = stackStartFn === assert.doesNotReject ?
901 assert.throws = function throws(promiseFn, ...args) {
911 assert.rejects = async function rejects(promiseFn, ...args) {
921 assert.doesNotThrow = function doesNotThrow(fn, ...args) {
931 assert.doesNotReject = async function doesNotReject(fn, ...args) {
940 assert.ifError = function ifError(err) {
1001 const match = fn === assert.match;
1037 assert.match = function match(string, regexp, message) {
1048 assert.doesNotMatch = function doesNotMatch(string, regexp, message) {
1052 assert.CallTracker = CallTracker;
1055 * Expose a strict only variant of assert.
1063 assert.strict = ObjectAssign(strict, assert, {
1064 equal: assert.strictEqual,
1065 deepEqual: assert.deepStrictEqual,
1066 notEqual: assert.notStrictEqual,
1067 notDeepEqual: assert.notDeepStrictEqual,
1070 assert.strict.strict = assert.strict;