getFilterLimit: empty tags return 0

This commit is contained in:
Alex Gleason
2024-05-30 12:55:39 -05:00
committed by fiatjaf_
parent 87a91c2daf
commit f8c3e20f3d
2 changed files with 8 additions and 0 deletions

View File

@@ -222,5 +222,9 @@ describe('Filter', () => {
test('should return Infinity for empty filters', () => {
expect(getFilterLimit({})).toEqual(Infinity)
})
test('empty tags return 0', () => {
expect(getFilterLimit({ '#p': [] })).toEqual(0)
})
})
})