Fix test: when using dynamic input, the value is converted correctly as number before being send to the change event
This commit is contained in:
parent
e3190dfe0a
commit
a36d5d79d4
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ describe.concurrent('Properties', () => {
|
|||
|
||||
expect(prop.id).toBe('stuff');
|
||||
expect(prop.parentId).toBe('parentId');
|
||||
expect(prop.x).toBe('2');
|
||||
expect(prop.y).toBe('2');
|
||||
expect(prop.x).toBe(2);
|
||||
expect(prop.y).toBe(2);
|
||||
rerender(<Properties
|
||||
properties={Object.assign({}, prop)}
|
||||
onChange={handleChange}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue