1
1
/**
2
- * Copyright 2019-2020, 2022 Optimizely
2
+ * Copyright 2019-2020, 2022-2023 Optimizely
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -48,8 +48,8 @@ describe('javascript-sdk/react-native', function () {
48
48
} ) ;
49
49
50
50
describe ( 'createInstance' , function ( ) {
51
- var fakeErrorHandler = { handleError : function ( ) { } } ;
52
- var fakeEventDispatcher = { dispatchEvent : function ( ) { } } ;
51
+ var fakeErrorHandler = { handleError : function ( ) { } } ;
52
+ var fakeEventDispatcher = { dispatchEvent : function ( ) { } } ;
53
53
var silentLogger ;
54
54
55
55
beforeEach ( function ( ) {
@@ -74,7 +74,7 @@ describe('javascript-sdk/react-native', function () {
74
74
logger : silentLogger ,
75
75
} ) ;
76
76
// Invalid datafile causes onReady Promise rejection - catch this error
77
- optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
77
+ optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
78
78
} ) ;
79
79
} ) ;
80
80
@@ -86,10 +86,10 @@ describe('javascript-sdk/react-native', function () {
86
86
logger : silentLogger ,
87
87
} ) ;
88
88
// Invalid datafile causes onReady Promise rejection - catch this error
89
- optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
89
+ optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
90
90
91
91
assert . instanceOf ( optlyInstance , Optimizely ) ;
92
- assert . equal ( optlyInstance . clientVersion , '4.9.2 ' ) ;
92
+ assert . equal ( optlyInstance . clientVersion , '4.9.3 ' ) ;
93
93
} ) ;
94
94
95
95
it ( 'should set the React Native JS client engine and javascript SDK version' , function ( ) {
@@ -100,7 +100,7 @@ describe('javascript-sdk/react-native', function () {
100
100
logger : silentLogger ,
101
101
} ) ;
102
102
// Invalid datafile causes onReady Promise rejection - catch this error
103
- optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
103
+ optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
104
104
assert . equal ( 'react-native-js-sdk' , optlyInstance . clientEngine ) ;
105
105
assert . equal ( packageJSON . version , optlyInstance . clientVersion ) ;
106
106
} ) ;
@@ -114,7 +114,7 @@ describe('javascript-sdk/react-native', function () {
114
114
logger : silentLogger ,
115
115
} ) ;
116
116
// Invalid datafile causes onReady Promise rejection - catch this error
117
- optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
117
+ optlyInstance . onReady ( ) . catch ( function ( ) { } ) ;
118
118
assert . equal ( 'react-native-sdk' , optlyInstance . clientEngine ) ;
119
119
} ) ;
120
120
@@ -137,7 +137,7 @@ describe('javascript-sdk/react-native', function () {
137
137
logger : silentLogger ,
138
138
} ) ;
139
139
optlyInstance . activate ( 'testExperiment' , 'testUser' ) ;
140
- clock . tick ( 30001 )
140
+ clock . tick ( 30001 ) ;
141
141
sinon . assert . calledOnce ( optimizelyFactory . eventDispatcher . dispatchEvent ) ;
142
142
} ) ;
143
143
} ) ;
@@ -171,7 +171,7 @@ describe('javascript-sdk/react-native', function () {
171
171
} ) ;
172
172
173
173
it ( 'should call logging.setLogHandler with the supplied logger' , function ( ) {
174
- var fakeLogger = { log : function ( ) { } } ;
174
+ var fakeLogger = { log : function ( ) { } } ;
175
175
optimizelyFactory . createInstance ( {
176
176
datafile : testData . getTestProjectConfig ( ) ,
177
177
logger : fakeLogger ,
0 commit comments