File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ var legitTimers = [
10
10
] ;
11
11
12
12
legitTimers . forEach ( function ( legit ) {
13
+ const savedTimeout = legit . _idleTimeout ;
13
14
active ( legit ) ;
14
15
// active() should mutate these objects
15
- assert . notDeepEqual ( Object . keys ( legit ) , [ '_idleTimeout' ] ) ;
16
+ assert ( legit . _idleTimeout === savedTimeout ) ;
17
+ assert ( Number . isInteger ( legit . _idleStart ) ) ;
18
+ assert ( legit . _idleNext ) ;
19
+ assert ( legit . _idlePrev ) ;
16
20
} ) ;
17
21
18
22
@@ -22,7 +26,8 @@ var bogusTimers = [
22
26
] ;
23
27
24
28
bogusTimers . forEach ( function ( bogus ) {
29
+ const savedTimeout = bogus . _idleTimeout ;
25
30
active ( bogus ) ;
26
31
// active() should not mutate these objects
27
- assert . deepEqual ( Object . keys ( bogus ) , [ ' _idleTimeout' ] ) ;
32
+ assert . deepStrictEqual ( bogus , { _idleTimeout : savedTimeout } ) ;
28
33
} ) ;
You can’t perform that action at this time.
0 commit comments