1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: make sure test-data is urlsafe

This commit is contained in:
Christopher Kolstad 2021-02-23 13:53:09 +01:00
parent dddfbbf645
commit dfd0dbdda2
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A

View File

@ -339,14 +339,17 @@ test.serial(
test.serial('can untag feature', async t => {
t.plan(1);
const request = await setupApp(stores);
const feature1Name = faker.helpers.slugify(faker.lorem.words(3));
const feature1Name = faker.lorem.slug(3);
await request.post('/api/admin/features').send({
name: feature1Name,
type: 'killswitch',
enabled: true,
strategies: [{ name: 'default' }],
});
const tag = { value: faker.lorem.word(), type: 'simple' };
const tag = {
value: faker.lorem.slug(1),
type: 'simple',
};
await request
.post(`/api/admin/features/${feature1Name}/tags`)
.send(tag)