test(shared): fix hasA11yProp unit test

This commit is contained in:
Karsa
2025-12-10 10:19:56 +01:00
parent 589460a924
commit c53decf3a1

View File

@@ -16,8 +16,8 @@ describe('hasA11yProp', () => {
});
it('returns false if props do not contain any a11y attributes', () => {
expect(hasA11yProp({ className: 'foo', id: 'bar' })).toBe(undefined);
expect(hasA11yProp({})).toBe(undefined);
expect(hasA11yProp({ className: 'foo', id: 'bar' })).toBe(false);
expect(hasA11yProp({})).toBe(false);
});
it('returns true if multiple a11y props are present', () => {