Merge branch 'main' into feature/63-admin-gate
This commit is contained in:
@@ -107,7 +107,9 @@ describe('parseItemFilters', () => {
|
||||
});
|
||||
|
||||
it('rejects a status outside the known set', () => {
|
||||
expect(() => parseItemFilters({ status: 'pending' })).toThrow(FilterError);
|
||||
// 'pending' used to be the example here and is now a real status, which is
|
||||
// exactly the sort of thing that quietly turns a test into a tautology.
|
||||
expect(() => parseItemFilters({ status: 'archived' })).toThrow(FilterError);
|
||||
});
|
||||
|
||||
it('rejects a status differing only by case, rather than silently coercing it', () => {
|
||||
|
||||
Reference in New Issue
Block a user