File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1- import  _  from  "underscore" ; 
21import  $  from  "jquery" ; 
32import  ArgumentParser  from  "./parser" ; 
43import  {  jest  }  from  "@jest/globals" ; 
@@ -29,9 +28,7 @@ describe("The Patterns parser", function () {
2928            expect ( parser . parameters . color . value ) . toBe ( "red" ) ; 
3029
3130            parser . addJSONArgument ( "color" ,  {  color : "red"  } ) ; 
32-             expect ( 
33-                 _ . isEqual ( parser . parameters . color . value ,  {  color : "red"  } ) 
34-             ) . toBeTruthy ( ) ; 
31+             expect ( parser . parameters . color . value ) . toEqual ( {  color : "red"  } ) ; 
3532        } ) ; 
3633
3734        it ( "preserves the argument order" ,  function  ( )  { 
@@ -205,7 +202,7 @@ describe("The Patterns parser", function () {
205202            var  parser  =  new  ArgumentParser ( ) ; 
206203            parser . addJSONArgument ( "json-color" ,  {  color : "red"  } ) ; 
207204            var  opts  =  parser . _parse ( 'json-color: {"color": "pink"}' ) ; 
208-             expect ( _ . isEqual ( opts [ "json-color" ] ,   {  color : "pink"  } ) ) . toBeTruthy ( ) ; 
205+             expect ( opts [ "json-color" ] ) . toEqual ( {  color : "pink"  } ) ; 
209206        } ) ; 
210207
211208        describe ( "JSON data attributes" ,  function  ( )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments