Skip to content

Commit c73dc0e

Browse files
committed
Remove useless return statements in tests
1 parent 17c2f51 commit c73dc0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ var p = require('..')
55

66
// The spec is unclear about tabs and newlines
77
it('forbids tabs and newlines', function () {
8-
assert.throws(function () { return p('MIT\t') })
9-
assert.throws(function () { return p('\nMIT') })
8+
assert.throws(function () { p('MIT\t') })
9+
assert.throws(function () { p('\nMIT') })
1010
})
1111

1212
it('allows many spaces', function () {
@@ -32,7 +32,7 @@ it('allows many spaces', function () {
3232

3333
it('forbids spaces between a license-id and a following `+`', function () {
3434
assert.throws(
35-
function () { return p('MIT +') },
35+
function () { p('MIT +') },
3636
/Space before `\+`/
3737
)
3838
})

0 commit comments

Comments
 (0)