@@ -28,9 +28,9 @@ assert.strictEqual(test_general.testGetPrototype(baseObject),
28
28
Object . getPrototypeOf ( baseObject ) ) ;
29
29
assert . strictEqual ( test_general . testGetPrototype ( extendedObject ) ,
30
30
Object . getPrototypeOf ( extendedObject ) ) ;
31
- assert . ok ( test_general . testGetPrototype ( baseObject ) !==
32
- test_general . testGetPrototype ( extendedObject ) ,
33
- 'Prototypes for base and extended should be different' ) ;
31
+ // Prototypes for base and extended should be different.
32
+ assert . notStrictEqual ( test_general . testGetPrototype ( baseObject ) ,
33
+ test_general . testGetPrototype ( extendedObject ) ) ;
34
34
35
35
// test version management functions
36
36
// expected version is currently 1
@@ -70,17 +70,15 @@ assert.strictEqual(test_general.derefItemWasCalled(), true,
70
70
// Assert that wrapping twice fails.
71
71
const x = { } ;
72
72
test_general . wrap ( x ) ;
73
- assert . throws ( function ( ) {
74
- test_general . wrap ( x ) ;
75
- } , Error ) ;
73
+ assert . throws ( ( ) => test_general . wrap ( x ) , Error ) ;
76
74
77
75
// Ensure that wrapping, removing the wrap, and then wrapping again works.
78
76
const y = { } ;
79
77
test_general . wrap ( y ) ;
80
78
test_general . removeWrap ( y ) ;
81
- assert . doesNotThrow ( function ( ) {
82
- test_general . wrap ( y ) ;
83
- } , Error , 'Wrapping twice succeeds if a remove_wrap() separates the instances') ;
79
+ assert . doesNotThrow ( ( ) => test_general . wrap ( y ) , Error ,
80
+ 'Wrapping twice succeeds if a remove_wrap()' +
81
+ ' separates the instances') ;
84
82
85
83
// Ensure that removing a wrap and garbage collecting does not fire the
86
84
// finalize callback.
0 commit comments