Skip to content

Commit

Permalink
fix(test): .name is inconsistently available
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 16, 2017
1 parent a6a0790 commit 3483f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ describe('implementations', function () {
assert.ok(Eq.eq(1, 1))
assert.throws(function () {
Eq.eq({}, {})
}, /no proto impl/i)
}, /no proto/i)
})
it('fails if no matching implementation', function () {
var Eq = protocol(['a'], { eq: ['a', 'a'] })
assert.throws(function () {
Eq.eq(1, 1)
}, /no proto impl/i)
}, /no proto/i)
})
it('errors if too many types specified', function () {
var Eq = protocol(['a', 'b'], {
Expand All @@ -96,7 +96,7 @@ describe('implementations', function () {
assert.equal(Foo.frob(1, 2), 3)
assert.throws(function () {
Foo.frob('str', 1)
}, /no proto impl/i)
}, /no proto/i)
})
it('errors if an extra function is implemented', function () {
var Eq = protocol(['a'], { eq: ['a', 'a'] })
Expand Down

0 comments on commit 3483f4a

Please sign in to comment.