diff --git a/src/Components/Sidebar/Sidebar.test.tsx b/src/Components/Sidebar/Sidebar.test.tsx index 3613fc8..be836a9 100644 --- a/src/Components/Sidebar/Sidebar.test.tsx +++ b/src/Components/Sidebar/Sidebar.test.tsx @@ -37,11 +37,14 @@ describe.concurrent('Sidebar open', () => { }); it('With stuff', async() => { - const handleButtonClick = vi.fn(); + const Type = 'stuff'; + const handleButtonClick = vi.fn((type: string) => { + expect(type).toBe(Type); + }); render( { - test('Load environment', () => { +describe.concurrent('API test', () => { + it('Load environment', () => { const url = import.meta.env.VITE_API_URL; expect(url).toBe('http://localhost:5000'); }); - test('Fetch configuration', async() => { + it('Fetch configuration', async() => { const configuration = await fetchConfiguration(); expect(configuration.MainContainer).toBeDefined(); expect(configuration.MainContainer.Height).toBeGreaterThan(0);