1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

improve test

This commit is contained in:
Tymoteusz Czech 2025-08-01 11:23:24 +02:00
parent 1d7f15445d
commit 01ff2c5ac6
No known key found for this signature in database
GPG Key ID: 133555230D88D75F

View File

@ -1128,6 +1128,11 @@ test('should filter features by lastSeenAt', async () => {
expect(oldFeatures.features).toHaveLength(1);
expect(oldFeatures.features[0].name).toBe('old_seen_feature');
const { body: allFeatures } = await app.request
.get('/api/admin/search/features?lastSeenAt=IS_ON_OR_AFTER:2000-01-01')
.expect(200);
expect(allFeatures.features).toHaveLength(2);
});
test('should return environment usage metrics and lifecycle', async () => {