@@ -26,6 +26,7 @@ import FakeConnection from '../internal/fake-connection';
26
26
import sharedNeo4j from '../internal/shared-neo4j' ;
27
27
import _ from 'lodash' ;
28
28
import { ServerVersion , VERSION_3_1_0 } from '../../src/v1/internal/server-version' ;
29
+ import { isString } from '../../src/v1/internal/util' ;
29
30
30
31
describe ( 'session' , ( ) => {
31
32
@@ -291,7 +292,7 @@ describe('session', () => {
291
292
expect ( sum . hasPlan ( ) ) . toBe ( true ) ;
292
293
expect ( sum . hasProfile ( ) ) . toBe ( false ) ;
293
294
expect ( sum . plan . operatorType ) . toBe ( 'ProduceResults' ) ;
294
- expect ( sum . plan . arguments . runtime ) . toBe ( 'INTERPRETED' ) ;
295
+ expect ( isString ( sum . plan . arguments . runtime ) ) . toBeTruthy ( ) ;
295
296
expect ( sum . plan . identifiers [ 0 ] ) . toBe ( 'n' ) ;
296
297
expect ( sum . plan . children [ 0 ] . operatorType ) . toBe ( 'CreateNode' ) ;
297
298
done ( ) ;
@@ -310,7 +311,7 @@ describe('session', () => {
310
311
expect ( sum . hasPlan ( ) ) . toBe ( true ) ; //When there's a profile, there's a plan
311
312
expect ( sum . hasProfile ( ) ) . toBe ( true ) ;
312
313
expect ( sum . profile . operatorType ) . toBe ( 'ProduceResults' ) ;
313
- expect ( [ 'INTERPRETED' , 'COMPILED' ] ) . toContain ( sum . profile . arguments . runtime ) ;
314
+ expect ( isString ( sum . profile . arguments . runtime ) ) . toBeTruthy ( ) ;
314
315
expect ( sum . profile . identifiers [ 0 ] ) . toBe ( 'n' ) ;
315
316
expect ( sum . profile . children [ 0 ] . operatorType ) . toBe ( 'Filter' ) ;
316
317
expect ( sum . profile . rows ) . toBe ( 0 ) ;
0 commit comments