File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -217,12 +217,12 @@ describe('stress tests', () => {
217217 function verifyRecord ( record ) {
218218 const node = record . get ( 0 ) ;
219219
220- if ( ! _ . isEqual ( [ 'Person' , 'Employee' ] , node . labels ) ) {
220+ if ( ! arraysEqual ( [ 'Person' , 'Employee' ] , node . labels ) ) {
221221 return new Error ( `Unexpected labels in node: ${ JSON . stringify ( node ) } ` ) ;
222222 }
223223
224224 const propertyKeys = _ . keys ( node . properties ) ;
225- if ( ! _ . isEmpty ( propertyKeys ) && ! _ . isEqual ( [ 'name' , 'salary' ] , propertyKeys ) ) {
225+ if ( ! _ . isEmpty ( propertyKeys ) && ! arraysEqual ( [ 'name' , 'salary' ] , propertyKeys ) ) {
226226 return new Error ( `Unexpected property keys in node: ${ JSON . stringify ( node ) } ` ) ;
227227 }
228228
@@ -298,6 +298,10 @@ describe('stress tests', () => {
298298 } ) ;
299299 }
300300
301+ function arraysEqual ( array1 , array2 ) {
302+ return _ . difference ( array1 , array2 ) . length === 0 ;
303+ }
304+
301305 class Context {
302306
303307 constructor ( driver , loggingEnabled ) {
You can’t perform that action at this time.
0 commit comments