1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00
This commit is contained in:
andreas-unleash 2022-06-03 15:40:10 +03:00
parent c14e2d17b0
commit 0c23485680

View File

@ -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 () => {
return app.request
.post('/api/admin/archive/revive/featureArchivedX')