File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ let script = new Script('"passed";');
30
30
// Run in a new empty context
31
31
let context = vm . createContext ( ) ;
32
32
let result = script . runInContext ( context ) ;
33
- assert . strictEqual ( 'passed' , result ) ;
33
+ assert . strictEqual ( result , 'passed' ) ;
34
34
35
35
// Create a new pre-populated context
36
36
context = vm . createContext ( { 'foo' : 'bar' , 'thing' : 'lala' } ) ;
37
- assert . strictEqual ( 'bar' , context . foo ) ;
38
- assert . strictEqual ( 'lala' , context . thing ) ;
37
+ assert . strictEqual ( context . foo , 'bar' ) ;
38
+ assert . strictEqual ( context . thing , 'lala' ) ;
39
39
40
40
// Test updating context
41
41
script = new Script ( 'foo = 3;' ) ;
42
42
result = script . runInContext ( context ) ;
43
- assert . strictEqual ( 3 , context . foo ) ;
44
- assert . strictEqual ( 'lala' , context . thing ) ;
43
+ assert . strictEqual ( context . foo , 3 ) ;
44
+ assert . strictEqual ( context . thing , 'lala' ) ;
45
45
46
46
// Issue GH-227:
47
47
common . expectsError ( ( ) => {
You can’t perform that action at this time.
0 commit comments