Skip to content

Commit 87a1313

Browse files
committed
Patch React Native Test
1 parent afbda4e commit 87a1313

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/optimizely-sdk/lib/index.react_native.tests.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019-2020, 2022 Optimizely
2+
* Copyright 2019-2020, 2022-2023 Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,8 +48,8 @@ describe('javascript-sdk/react-native', function () {
4848
});
4949

5050
describe('createInstance', function () {
51-
var fakeErrorHandler = { handleError: function () { } };
52-
var fakeEventDispatcher = { dispatchEvent: function () { } };
51+
var fakeErrorHandler = { handleError: function () {} };
52+
var fakeEventDispatcher = { dispatchEvent: function () {} };
5353
var silentLogger;
5454

5555
beforeEach(function () {
@@ -74,7 +74,7 @@ describe('javascript-sdk/react-native', function () {
7474
logger: silentLogger,
7575
});
7676
// Invalid datafile causes onReady Promise rejection - catch this error
77-
optlyInstance.onReady().catch(function () { });
77+
optlyInstance.onReady().catch(function () {});
7878
});
7979
});
8080

@@ -86,10 +86,10 @@ describe('javascript-sdk/react-native', function () {
8686
logger: silentLogger,
8787
});
8888
// Invalid datafile causes onReady Promise rejection - catch this error
89-
optlyInstance.onReady().catch(function () { });
89+
optlyInstance.onReady().catch(function () {});
9090

9191
assert.instanceOf(optlyInstance, Optimizely);
92-
assert.equal(optlyInstance.clientVersion, '4.9.2');
92+
assert.equal(optlyInstance.clientVersion, '4.9.3');
9393
});
9494

9595
it('should set the React Native JS client engine and javascript SDK version', function () {
@@ -100,7 +100,7 @@ describe('javascript-sdk/react-native', function () {
100100
logger: silentLogger,
101101
});
102102
// Invalid datafile causes onReady Promise rejection - catch this error
103-
optlyInstance.onReady().catch(function () { });
103+
optlyInstance.onReady().catch(function () {});
104104
assert.equal('react-native-js-sdk', optlyInstance.clientEngine);
105105
assert.equal(packageJSON.version, optlyInstance.clientVersion);
106106
});
@@ -114,7 +114,7 @@ describe('javascript-sdk/react-native', function () {
114114
logger: silentLogger,
115115
});
116116
// Invalid datafile causes onReady Promise rejection - catch this error
117-
optlyInstance.onReady().catch(function () { });
117+
optlyInstance.onReady().catch(function () {});
118118
assert.equal('react-native-sdk', optlyInstance.clientEngine);
119119
});
120120

@@ -137,7 +137,7 @@ describe('javascript-sdk/react-native', function () {
137137
logger: silentLogger,
138138
});
139139
optlyInstance.activate('testExperiment', 'testUser');
140-
clock.tick(30001)
140+
clock.tick(30001);
141141
sinon.assert.calledOnce(optimizelyFactory.eventDispatcher.dispatchEvent);
142142
});
143143
});
@@ -171,7 +171,7 @@ describe('javascript-sdk/react-native', function () {
171171
});
172172

173173
it('should call logging.setLogHandler with the supplied logger', function () {
174-
var fakeLogger = { log: function () { } };
174+
var fakeLogger = { log: function () {} };
175175
optimizelyFactory.createInstance({
176176
datafile: testData.getTestProjectConfig(),
177177
logger: fakeLogger,

0 commit comments

Comments
 (0)