Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/index.browser.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('javascript-sdk (Browser)', function() {
});

assert.instanceOf(optlyInstance, Optimizely);
assert.equal(optlyInstance.clientVersion, '6.4.0');
assert.equal(optlyInstance.clientVersion, packageJSON.version);
});

it('should set the JavaScript client engine and version', function() {
Expand Down
3 changes: 2 additions & 1 deletion lib/index.node.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import sinon from 'sinon';

import Optimizely from './optimizely';
import testData from './tests/test_data';
import packageJSON from '../package.json';
import * as optimizelyFactory from './index.node';
import configValidator from './utils/config_validator';
import { getMockProjectConfigManager } from './tests/mock/mock_project_config_manager';
Expand Down Expand Up @@ -88,7 +89,7 @@ describe('optimizelyFactory', function() {
});

assert.instanceOf(optlyInstance, Optimizely);
assert.equal(optlyInstance.clientVersion, '6.4.0');
assert.equal(optlyInstance.clientVersion, packageJSON.version);
});
// TODO: user will create and inject an event processor
// these tests will be refactored accordingly
Expand Down
2 changes: 1 addition & 1 deletion lib/index.react_native.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('javascript-sdk/react-native', () => {
expect(optlyInstance).toBeInstanceOf(Optimizely);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
expect(optlyInstance.clientVersion).toEqual('6.4.0');
expect(optlyInstance.clientVersion).toEqual(packageJSON.version);
});

it('should set the React Native JS client engine and javascript SDK version', () => {
Expand Down
Loading