Skip to content

Commit

Permalink
[Tests] remove unnecessary + failing Error message assertion
Browse files Browse the repository at this point in the history
Fixes #255
  • Loading branch information
ljharb committed Feb 14, 2016
1 parent 95848f4 commit ba44de6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
}
Expand All @@ -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) {
Expand All @@ -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();
}
Expand Down

0 comments on commit ba44de6

Please sign in to comment.