File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,18 @@ baseFoo = 'foo'; // eslint-disable-line no-undef
3434global . baseBar  =  'bar' ; 
3535
3636assert . strictEqual ( global . baseFoo ,  'foo' , 
37-                    ' x -> global.x in base level not working' ) ; 
37+                    ` x -> global.x failed: global.baseFoo =  ${ global . baseFoo } ` ) ; 
3838
3939assert . strictEqual ( baseBar ,  // eslint-disable-line no-undef 
4040                   'bar' , 
41-                    'global.x -> x in base level not working' ) ; 
41+                    // eslint-disable-next-line no-undef 
42+                    `global.x -> x failed: baseBar = ${ baseBar }  ) ; 
4243
4344const  mod  =  require ( fixtures . path ( 'global' ,  'plain' ) ) ; 
4445const  fooBar  =  mod . fooBar ; 
4546
46- assert . strictEqual ( fooBar . foo ,  'foo' ,   'x -> global.x in sub level not working' ) ; 
47+ assert . strictEqual ( fooBar . foo ,  'foo' ) ; 
4748
48- assert . strictEqual ( fooBar . bar ,  'bar' ,   'global.x -> x in sub level not working' ) ; 
49+ assert . strictEqual ( fooBar . bar ,  'bar' ) ; 
4950
5051assert . strictEqual ( Object . prototype . toString . call ( global ) ,  '[object global]' ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments