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'; } 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;

View File

@ -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,