From c2424a9e91832e94baf9a04f85e14d6d66f15abd Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 12 Aug 2016 22:39:29 -0700 Subject: [PATCH] test: add test for assert.notStrictEqual() There is currently no test for `assert.notStrictEqual()` throwing an `AssertionError` when passed identical values. This change adds such a test. --- test/parallel/test-assert.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index 34e7b643442138..43bd4c770e9cb8 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -56,6 +56,9 @@ assert.throws(makeBlock(a.strictEqual, 2, '2'), assert.throws(makeBlock(a.strictEqual, null, undefined), a.AssertionError, 'strictEqual(null, undefined)'); +assert.throws(makeBlock(a.notStrictEqual, 2, 2), + a.AssertionError, 'notStrictEqual(2, 2)'); + assert.doesNotThrow(makeBlock(a.notStrictEqual, 2, '2'), 'notStrictEqual(2, \'2\')');