@@ -14,20 +14,20 @@ it('forbids tabs and newlines', function () {
14
14
it ( 'allows many spaces' , function ( ) {
15
15
assert . deepEqual (
16
16
p ( ' MIT' ) ,
17
- { license : 'MIT' }
17
+ { license : 'MIT' }
18
18
)
19
19
20
20
assert . deepEqual (
21
21
p ( 'MIT ' ) ,
22
- { license : 'MIT' }
22
+ { license : 'MIT' }
23
23
)
24
24
25
25
assert . deepEqual (
26
26
p ( 'MIT AND BSD-3-Clause' ) ,
27
27
{
28
- left : { license : 'MIT' } ,
28
+ left : { license : 'MIT' } ,
29
29
conjunction : 'and' ,
30
- right : { license : 'BSD-3-Clause' }
30
+ right : { license : 'BSD-3-Clause' }
31
31
}
32
32
)
33
33
} )
@@ -42,12 +42,12 @@ it('forbids spaces between a license-id and a following `+`', function () {
42
42
it ( 'parses DocumentRefs and LicenseRefs' , function ( ) {
43
43
assert . deepEqual (
44
44
p ( 'LicenseRef-something' ) ,
45
- { license : 'LicenseRef-something' }
45
+ { license : 'LicenseRef-something' }
46
46
)
47
47
48
48
assert . deepEqual (
49
49
p ( 'DocumentRef-spdx-tool-1.2 : LicenseRef-MIT-Style-2' ) ,
50
- { license : 'DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2' }
50
+ { license : 'DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2' }
51
51
)
52
52
} )
53
53
@@ -56,12 +56,12 @@ it('parses `AND`, `OR` and `WITH` with the correct precedence', function () {
56
56
assert . deepEqual (
57
57
p ( 'MIT AND BSD-3-Clause AND CC-BY-4.0' ) ,
58
58
{
59
- left : { license : 'MIT' } ,
59
+ left : { license : 'MIT' } ,
60
60
conjunction : 'and' ,
61
61
right : {
62
- left : { license : 'BSD-3-Clause' } ,
62
+ left : { license : 'BSD-3-Clause' } ,
63
63
conjunction : 'and' ,
64
- right : { license : 'CC-BY-4.0' }
64
+ right : { license : 'CC-BY-4.0' }
65
65
}
66
66
}
67
67
)
@@ -70,15 +70,15 @@ it('parses `AND`, `OR` and `WITH` with the correct precedence', function () {
70
70
p ( 'MIT AND BSD-3-Clause WITH GCC-exception-3.1 OR CC-BY-4.0 AND Apache-2.0' ) ,
71
71
{
72
72
left : {
73
- left : { license : 'MIT' } ,
73
+ left : { license : 'MIT' } ,
74
74
conjunction : 'and' ,
75
- right : { license : 'BSD-3-Clause' , exception : 'GCC-exception-3.1' }
75
+ right : { license : 'BSD-3-Clause' , exception : 'GCC-exception-3.1' }
76
76
} ,
77
77
conjunction : 'or' ,
78
78
right : {
79
- left : { license : 'CC-BY-4.0' } ,
79
+ left : { license : 'CC-BY-4.0' } ,
80
80
conjunction : 'and' ,
81
- right : { license : 'Apache-2.0' }
81
+ right : { license : 'Apache-2.0' }
82
82
}
83
83
}
84
84
)
0 commit comments