Skip to content

Commit b93ee85

Browse files
Fix tests
1 parent cb3011a commit b93ee85

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/__tests__/treatmentsByFlagSets.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { expectedGreenResults, expectedPurpleResults, expectedPinkResults } = req
77
jest.mock('node-fetch', () => {
88
return jest.fn().mockImplementation((url) => {
99

10-
const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
10+
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
1111
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
1212
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true });
1313

client/__tests__/treatmentsWithConfigByFlagSets.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { expectedGreenResultsWithConfig, expectedPurpleResultsWithConfig, expecte
66

77
jest.mock('node-fetch', () => {
88
return jest.fn().mockImplementation((url) => {
9-
const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
9+
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
1010
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
1111
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true});
1212
return Promise.resolve({ status: 200, json: () => ({}), ok: true });

environmentManager/__tests__/manager.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const app = require('../../app');
44
jest.mock('node-fetch', () => {
55
return jest.fn().mockImplementation((url) => {
66

7-
const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
7+
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
88
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
99
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true });
1010

0 commit comments

Comments
 (0)