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', () => {
217
217
function verifyRecord ( record ) {
218
218
const node = record . get ( 0 ) ;
219
219
220
- if ( ! _ . isEqual ( [ 'Person' , 'Employee' ] , node . labels ) ) {
220
+ if ( ! arraysEqual ( [ 'Person' , 'Employee' ] , node . labels ) ) {
221
221
return new Error ( `Unexpected labels in node: ${ JSON . stringify ( node ) } ` ) ;
222
222
}
223
223
224
224
const propertyKeys = _ . keys ( node . properties ) ;
225
- if ( ! _ . isEmpty ( propertyKeys ) && ! _ . isEqual ( [ 'name' , 'salary' ] , propertyKeys ) ) {
225
+ if ( ! _ . isEmpty ( propertyKeys ) && ! arraysEqual ( [ 'name' , 'salary' ] , propertyKeys ) ) {
226
226
return new Error ( `Unexpected property keys in node: ${ JSON . stringify ( node ) } ` ) ;
227
227
}
228
228
@@ -298,6 +298,10 @@ describe('stress tests', () => {
298
298
} ) ;
299
299
}
300
300
301
+ function arraysEqual ( array1 , array2 ) {
302
+ return _ . difference ( array1 , array2 ) . length === 0 ;
303
+ }
304
+
301
305
class Context {
302
306
303
307
constructor ( driver , loggingEnabled ) {
You can’t perform that action at this time.
0 commit comments