mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
Add test
This commit is contained in:
parent
c14e2d17b0
commit
0c23485680
@ -98,6 +98,18 @@ test('returns three archived toggles', async () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('returns three archived toggles with archivedAt', async () => {
|
||||||
|
expect.assertions(1);
|
||||||
|
return app.request
|
||||||
|
.get('/api/admin/archive/features')
|
||||||
|
.expect('Content-Type', /json/)
|
||||||
|
.expect(200)
|
||||||
|
.expect((res) => {
|
||||||
|
expect(res.body.features.length === 3).toBe(true);
|
||||||
|
expect(res.body.features[0].archivedAt).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
test('revives a feature by name', async () => {
|
test('revives a feature by name', async () => {
|
||||||
return app.request
|
return app.request
|
||||||
.post('/api/admin/archive/revive/featureArchivedX')
|
.post('/api/admin/archive/revive/featureArchivedX')
|
||||||
|
Loading…
Reference in New Issue
Block a user