From ba44de69977f243118076215674dbb309ad6ac6c Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 13 Feb 2016 22:49:59 -0800 Subject: [PATCH] [Tests] remove unnecessary + failing Error message assertion Fixes #255 --- test/comment.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/comment.js b/test/comment.js index 621ad970..ab00690c 100644 --- a/test/comment.js +++ b/test/comment.js @@ -30,7 +30,7 @@ tap.test('no comment', function (assert) { // Exploratory test, can we call t.comment() passing nothing? tap.test('missing argument', function (assert) { - assert.plan(2); + assert.plan(1); var test = tape.createHarness(); test.createStream(); test('missing argument', function (t) { @@ -39,7 +39,6 @@ tap.test('missing argument', function (assert) { t.end(); } catch (err) { assert.equal(err.constructor, TypeError); - assert.equal(err.message, 'Cannot call method on undefined'); } finally { assert.end(); } @@ -48,7 +47,7 @@ tap.test('missing argument', function (assert) { // Exploratory test, can we call t.comment() passing nothing? tap.test('null argument', function (assert) { - assert.plan(2); + assert.plan(1); var test = tape.createHarness(); test.createStream(); test('null argument', function (t) { @@ -57,7 +56,6 @@ tap.test('null argument', function (assert) { t.end(); } catch (err) { assert.equal(err.constructor, TypeError); - assert.equal(err.message, 'Cannot call method on null'); } finally { assert.end(); }