File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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";');
3030// Run in a new empty context 
3131let  context  =  vm . createContext ( ) ; 
3232let  result  =  script . runInContext ( context ) ; 
33- assert . strictEqual ( 'passed' ,   result ) ; 
33+ assert . strictEqual ( result ,   'passed' ) ; 
3434
3535// Create a new pre-populated context 
3636context  =  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' ) ; 
3939
4040// Test updating context 
4141script  =  new  Script ( 'foo = 3;' ) ; 
4242result  =  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' ) ; 
4545
4646// Issue GH-227: 
4747common . expectsError ( ( )  =>  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments