mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
Fix argument list for toggleService calls in tests
This commit is contained in:
parent
e257be361b
commit
c63d308962
@ -17,7 +17,6 @@ import {
|
|||||||
} from '../../../types/model';
|
} from '../../../types/model';
|
||||||
import { extractUsername } from '../../../util/extract-user';
|
import { extractUsername } from '../../../util/extract-user';
|
||||||
import { IAuthRequest } from '../../unleash-types';
|
import { IAuthRequest } from '../../unleash-types';
|
||||||
import { projectSchema } from '../../../services/project-schema';
|
|
||||||
|
|
||||||
interface FeatureStrategyParams {
|
interface FeatureStrategyParams {
|
||||||
projectId: string;
|
projectId: string;
|
||||||
|
@ -67,6 +67,7 @@ beforeAll(async () => {
|
|||||||
},
|
},
|
||||||
project,
|
project,
|
||||||
feature1,
|
feature1,
|
||||||
|
username,
|
||||||
environment,
|
environment,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -86,6 +87,7 @@ beforeAll(async () => {
|
|||||||
},
|
},
|
||||||
project,
|
project,
|
||||||
feature2,
|
feature2,
|
||||||
|
username,
|
||||||
environment,
|
environment,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -105,6 +107,7 @@ beforeAll(async () => {
|
|||||||
},
|
},
|
||||||
project2,
|
project2,
|
||||||
feature3,
|
feature3,
|
||||||
|
username,
|
||||||
environment,
|
environment,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -136,7 +139,7 @@ test('returns feature toggle with :global: config', async () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('returns feature toggle with :global: config', async () => {
|
test('returns feature toggle with testing environment config', async () => {
|
||||||
const token = await apiTokenService.createApiToken({
|
const token = await apiTokenService.createApiToken({
|
||||||
type: ApiTokenType.CLIENT,
|
type: ApiTokenType.CLIENT,
|
||||||
username,
|
username,
|
||||||
|
Loading…
Reference in New Issue
Block a user