mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
fix coverage for tag utils
This commit is contained in:
parent
8ca4a99a1c
commit
aade85a0ff
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ describe('Tag utilities', () => {
|
||||||
mockTagInfo[4],
|
mockTagInfo[4],
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should return empty array if data attribute is missing', () => {
|
||||||
|
const mockImage = new Image();
|
||||||
|
const result = imageHitsTags(mockImage, []);
|
||||||
|
expect(result).toEqual([]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('imageHitsComplex', () => {
|
describe('imageHitsComplex', () => {
|
||||||
|
|
Loading…
Reference in a new issue