@@ -10,17 +10,17 @@ it('forbids tabs and newlines', function () {
10
10
} )
11
11
12
12
it ( 'allows many spaces' , function ( ) {
13
- assert . deepEqual (
13
+ assert . deepStrictEqual (
14
14
p ( ' MIT' ) ,
15
15
{ license : 'MIT' }
16
16
)
17
17
18
- assert . deepEqual (
18
+ assert . deepStrictEqual (
19
19
p ( 'MIT ' ) ,
20
20
{ license : 'MIT' }
21
21
)
22
22
23
- assert . deepEqual (
23
+ assert . deepStrictEqual (
24
24
p ( 'MIT AND BSD-3-Clause' ) ,
25
25
{
26
26
left : { license : 'MIT' } ,
@@ -38,20 +38,20 @@ it('forbids spaces between a license-id and a following `+`', function () {
38
38
} )
39
39
40
40
it ( 'parses DocumentRefs and LicenseRefs' , function ( ) {
41
- assert . deepEqual (
41
+ assert . deepStrictEqual (
42
42
p ( 'LicenseRef-something' ) ,
43
43
{ license : 'LicenseRef-something' }
44
44
)
45
45
46
- assert . deepEqual (
46
+ assert . deepStrictEqual (
47
47
p ( 'DocumentRef-spdx-tool-1.2 : LicenseRef-MIT-Style-2' ) ,
48
48
{ license : 'DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2' }
49
49
)
50
50
} )
51
51
52
52
// See the note in `parser.js`.
53
53
it ( 'parses `AND`, `OR` and `WITH` with the correct precedence' , function ( ) {
54
- assert . deepEqual (
54
+ assert . deepStrictEqual (
55
55
p ( 'MIT AND BSD-3-Clause AND CC-BY-4.0' ) ,
56
56
{
57
57
left : { license : 'MIT' } ,
@@ -64,7 +64,7 @@ it('parses `AND`, `OR` and `WITH` with the correct precedence', function () {
64
64
}
65
65
)
66
66
67
- assert . deepEqual (
67
+ assert . deepStrictEqual (
68
68
p ( 'MIT AND BSD-3-Clause WITH GCC-exception-3.1 OR CC-BY-4.0 AND Apache-2.0' ) ,
69
69
{
70
70
left : {
0 commit comments