Fix bugs created by using Number()
This commit is contained in:
parent
3c164581ce
commit
dcfb93aa12
4 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
import { fireEvent, render, screen } from '@testing-library/react';
|
||||
import * as React from 'react';
|
||||
import { expect, describe, it, vi } from 'vitest';
|
||||
import IProperties from '../../Interfaces/IProperties';
|
||||
import { Properties } from './Properties';
|
||||
|
||||
describe.concurrent('Properties', () => {
|
||||
|
@ -18,11 +19,13 @@ describe.concurrent('Properties', () => {
|
|||
});
|
||||
|
||||
it('Some properties, change values with dynamic input', () => {
|
||||
const prop = {
|
||||
const prop: IProperties = {
|
||||
id: 'stuff',
|
||||
parentId: 'parentId',
|
||||
x: 1,
|
||||
y: 1,
|
||||
width: 1,
|
||||
height: 1,
|
||||
isRigidBody: false,
|
||||
isAnchor: false
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue