1
0
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:
Christopher Kolstad 2021-09-16 11:25:52 +02:00
parent e257be361b
commit c63d308962
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,6 @@ import {
} from '../../../types/model';
import { extractUsername } from '../../../util/extract-user';
import { IAuthRequest } from '../../unleash-types';
import { projectSchema } from '../../../services/project-schema';
interface FeatureStrategyParams {
projectId: string;

View File

@ -67,6 +67,7 @@ beforeAll(async () => {
},
project,
feature1,
username,
environment,
);
@ -86,6 +87,7 @@ beforeAll(async () => {
},
project,
feature2,
username,
environment,
);
@ -105,6 +107,7 @@ beforeAll(async () => {
},
project2,
feature3,
username,
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({
type: ApiTokenType.CLIENT,
username,