Skip to content

Commit 7ad86dc

Browse files
committed
Fix tests.
- Better `expected` checking. - Fix test flag typos.
1 parent 7011161 commit 7ad86dc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/misc.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ describe('events', () => {
634634
if(!exception && error) {
635635
throw error;
636636
}
637-
if(expected) {
637+
if(expected !== undefined) {
638638
assert.deepStrictEqual(result, expected);
639639
}
640640
if(mapCounts) {
@@ -1141,7 +1141,7 @@ describe('events', () => {
11411141
'reserved @id value',
11421142
'invalid property'
11431143
],
1144-
testUnSafe: true
1144+
testNotSafe: true
11451145
});
11461146
});
11471147

@@ -1189,7 +1189,7 @@ describe('events', () => {
11891189
},
11901190
events: 2
11911191
},
1192-
testUnSafe: true
1192+
testNotSafe: true
11931193
});
11941194
});
11951195

@@ -1224,7 +1224,7 @@ describe('events', () => {
12241224
},
12251225
events: 1
12261226
},
1227-
testUnSafe: true
1227+
testNotSafe: true
12281228
});
12291229
});
12301230

@@ -1266,7 +1266,7 @@ describe('events', () => {
12661266
},
12671267
events: 1
12681268
},
1269-
testUnSafe: true
1269+
testNotSafe: true
12701270
});
12711271
});
12721272

@@ -1304,7 +1304,7 @@ describe('events', () => {
13041304
},
13051305
events: 1
13061306
},
1307-
testUnSafe: true
1307+
testNotSafe: true
13081308
});
13091309
});
13101310

@@ -1346,7 +1346,7 @@ describe('events', () => {
13461346
},
13471347
events: 1
13481348
},
1349-
testUnSafe: true
1349+
testNotSafe: true
13501350
});
13511351
});
13521352

@@ -1389,7 +1389,7 @@ describe('events', () => {
13891389
},
13901390
events: 2
13911391
},
1392-
testUnSafe: true
1392+
testNotSafe: true
13931393
});
13941394
});
13951395

@@ -1428,7 +1428,7 @@ describe('events', () => {
14281428
},
14291429
events: 1
14301430
},
1431-
testUnSafe: true
1431+
testNotSafe: true
14321432
});
14331433
});
14341434
});

0 commit comments

Comments
 (0)