-
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show creators from non archived features (#7309)
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,14 +48,12 @@ test('should return flag creators', async () => { | |
}) | ||
.expect(200); | ||
await app.createFeature('flag-name-2'); | ||
await app.archiveFeature('flag-name-2'); | ||
|
||
const { body } = await app.request | ||
.get('/api/admin/projects/default/flag-creators') | ||
.expect('Content-Type', /json/) | ||
.expect(200); | ||
|
||
expect(body).toEqual([ | ||
{ id: 1, name: '[email protected]' }, | ||
{ id: 2, name: '[email protected]' }, | ||
]); | ||
expect(body).toEqual([{ id: 1, name: '[email protected]' }]); | ||
}); |