mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
Fixed test assumptions
This commit is contained in:
parent
6f8c2cacba
commit
d56e88eef2
@ -54,7 +54,9 @@ exports[`should match snapshot from /api/client/features 1`] = `
|
||||
},
|
||||
],
|
||||
"name": "default",
|
||||
"parameters": {},
|
||||
"parameters": {
|
||||
"stickiness": "default",
|
||||
},
|
||||
"variants": [],
|
||||
},
|
||||
],
|
||||
|
@ -70,7 +70,9 @@ const getApiClientResponse = (project = 'default') => [
|
||||
values: ['123'],
|
||||
},
|
||||
],
|
||||
parameters: {},
|
||||
parameters: {
|
||||
stickiness: 'default',
|
||||
},
|
||||
variants: [],
|
||||
},
|
||||
],
|
||||
|
@ -980,6 +980,7 @@ test('Can update strategy on feature flag', async () => {
|
||||
expect(defaultEnv.strategies).toHaveLength(1);
|
||||
expect(defaultEnv.strategies[0].parameters).toStrictEqual({
|
||||
userIds: '1234',
|
||||
stickiness: 'default',
|
||||
});
|
||||
});
|
||||
|
||||
@ -1004,6 +1005,7 @@ test('should coerce all strategy parameter values to strings', async () => {
|
||||
expect(defaultEnv.strategies).toHaveLength(1);
|
||||
expect(defaultEnv.strategies[0].parameters).toStrictEqual({
|
||||
foo: '1234',
|
||||
stickiness: 'default',
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user