Match-id-c3310bf00cda274b570890d5d0390139287ddba5
This commit is contained in:
parent
d11f17afc4
commit
5c2f6cd82a
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue