We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
return
1 parent 17c2f51 commit c73dc0eCopy full SHA for c73dc0e
test/index.js
@@ -5,8 +5,8 @@ var p = require('..')
5
6
// The spec is unclear about tabs and newlines
7
it('forbids tabs and newlines', function () {
8
- assert.throws(function () { return p('MIT\t') })
9
- assert.throws(function () { return p('\nMIT') })
+ assert.throws(function () { p('MIT\t') })
+ assert.throws(function () { p('\nMIT') })
10
})
11
12
it('allows many spaces', function () {
@@ -32,7 +32,7 @@ it('allows many spaces', function () {
32
33
it('forbids spaces between a license-id and a following `+`', function () {
34
assert.throws(
35
- function () { return p('MIT +') },
+ function () { p('MIT +') },
36
/Space before `\+`/
37
)
38
0 commit comments