1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

fix: failing test

This commit is contained in:
Ivar Conradi Østhus 2022-05-20 11:48:08 +02:00
parent 3d6cfb6582
commit 3934509d4c
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

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 () => {