fix coverage for tag utils

This commit is contained in:
SeinopSys 2022-04-03 03:03:32 +02:00 committed by Luna D
parent 8ca4a99a1c
commit aade85a0ff
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -144,6 +144,12 @@ describe('Tag utilities', () => {
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', () => {