File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ import {
44
44
NOT_TRACKING_USER ,
45
45
EVENT_KEY_NOT_FOUND ,
46
46
INVALID_EXPERIMENT_KEY ,
47
- ONREADY_TIMEOUT ,
48
47
SERVICE_STOPPED_BEFORE_RUNNING
49
48
} from 'error_message' ;
50
49
50
+ import { ONREADY_TIMEOUT , INSTANCE_CLOSED } from './' ;
51
51
import {
52
52
AUDIENCE_EVALUATION_RESULT_COMBINED ,
53
53
USER_NOT_IN_EXPERIMENT ,
@@ -9455,8 +9455,7 @@ describe('lib/optimizely', function() {
9455
9455
return readyPromise . then ( ( ) => {
9456
9456
return Promise . reject ( new Error ( 'PROMISE_SHOULD_NOT_HAVE_RESOLVED' ) ) ;
9457
9457
} , ( err ) => {
9458
- assert . equal ( err . baseMessage , ONREADY_TIMEOUT ) ;
9459
- assert . deepEqual ( err . params , [ 500 ] ) ;
9458
+ assert . equal ( err . message , sprintf ( ONREADY_TIMEOUT , 500 ) ) ;
9460
9459
} ) ;
9461
9460
} ) ;
9462
9461
@@ -9479,8 +9478,7 @@ describe('lib/optimizely', function() {
9479
9478
return readyPromise . then ( ( ) => {
9480
9479
return Promise . reject ( new Error ( 'PROMISE_SHOULD_NOT_HAVE_RESOLVED' ) ) ;
9481
9480
} , ( err ) => {
9482
- assert . equal ( err . baseMessage , ONREADY_TIMEOUT ) ;
9483
- assert . deepEqual ( err . params , [ 30000 ] ) ;
9481
+ assert . equal ( err . message , sprintf ( ONREADY_TIMEOUT , 30000 ) ) ;
9484
9482
} ) ;
9485
9483
} ) ;
9486
9484
You can’t perform that action at this time.
0 commit comments