@@ -30,8 +30,8 @@ const Script = require('vm').Script;
30
30
const script = new Script ( '\'passed\';' ) ;
31
31
const result1 = script . runInNewContext ( ) ;
32
32
const result2 = script . runInNewContext ( ) ;
33
- assert . strictEqual ( 'passed' , result1 ) ;
34
- assert . strictEqual ( 'passed' , result2 ) ;
33
+ assert . strictEqual ( result1 , 'passed' ) ;
34
+ assert . strictEqual ( result2 , 'passed' ) ;
35
35
}
36
36
37
37
{
@@ -52,7 +52,7 @@ const Script = require('vm').Script;
52
52
global . hello = 5 ;
53
53
const script = new Script ( 'hello = 2' ) ;
54
54
script . runInNewContext ( ) ;
55
- assert . strictEqual ( 5 , global . hello ) ;
55
+ assert . strictEqual ( global . hello , 5 ) ;
56
56
57
57
// Cleanup
58
58
delete global . hello ;
@@ -68,9 +68,9 @@ const Script = require('vm').Script;
68
68
/* eslint-disable no-unused-vars */
69
69
const baz = script . runInNewContext ( global . obj ) ;
70
70
/* eslint-enable no-unused-vars */
71
- assert . strictEqual ( 1 , global . obj . foo ) ;
72
- assert . strictEqual ( 2 , global . obj . bar ) ;
73
- assert . strictEqual ( 2 , global . foo ) ;
71
+ assert . strictEqual ( global . obj . foo , 1 ) ;
72
+ assert . strictEqual ( global . obj . bar , 2 ) ;
73
+ assert . strictEqual ( global . foo , 2 ) ;
74
74
75
75
// cleanup
76
76
delete global . code ;
0 commit comments