Browse Source

tests: fix bad error

master
Daniel Cousens 8 years ago
parent
commit
c2dab233e8
  1. 4
      test/index.js

4
test/index.js

@ -51,8 +51,8 @@ fixtures.invalid.forEach(function (f) {
}) })
}) })
var err = new typeforce.TfTypeError('custom error') var err = new typeforce.TfTypeError('mytype')
var failType = function () { throw new typeforce.TfTypeError('mytype') } var failType = function () { throw err }
tape('TfTypeError has .message', function (t) { tape('TfTypeError has .message', function (t) {
t.plan(1) t.plan(1)

Loading…
Cancel
Save