From a36d5d79d498b4d70d77245c5b3f94305b44e319 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Tue, 16 Aug 2022 16:54:12 +0200 Subject: [PATCH] Fix test: when using dynamic input, the value is converted correctly as number before being send to the change event --- src/Components/Properties/Properties.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Properties/Properties.test.tsx b/src/Components/Properties/Properties.test.tsx index 61441f8..dc9473e 100644 --- a/src/Components/Properties/Properties.test.tsx +++ b/src/Components/Properties/Properties.test.tsx @@ -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(