1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

fix: failing test

This commit is contained in:
Ivar Conradi Østhus 2022-05-20 11:48:08 +02:00 committed by sighphyre
parent d0008bfa8a
commit 98dd1428d6

View File

@ -773,7 +773,7 @@ test('should coerce all strategy parameter values to strings', async () => {
});
});
test('should limit the length of parameter values', async () => {
test('should NOT limit the length of parameter values', async () => {
const envName = 'default';
const featureName = randomId();
const projectPath = '/api/admin/projects/default';
@ -787,7 +787,7 @@ test('should limit the length of parameter values', async () => {
await app.request
.post(`${featurePath}/environments/${envName}/strategies`)
.send({ name: 'default', parameters: { foo: 'x'.repeat(101) } })
.expect(400);
.expect(200);
});
test('Can NOT delete strategy with wrong projectId', async () => {