Match-id-c3310bf00cda274b570890d5d0390139287ddba5

This commit is contained in:
* 2022-11-17 20:03:00 +08:00 committed by *
parent d11f17afc4
commit 5c2f6cd82a
1 changed files with 7 additions and 0 deletions

View File

@ -82,4 +82,11 @@ describe('Dom Attribute', () => {
expect(window.getComputedStyle(div).getPropertyValue('width')).toBe('10px');
expect(window.getComputedStyle(div).getPropertyValue('height')).toBe('20px');
});
it('空字符串做属性名', () => {
const emptyStringProps = { '': '' };
expect(() => {
Horizon.render(<div {...emptyStringProps}/>, container);
}).not.toThrow();
});
});