From a7f56ee41e6fa676ffb4f06c9d09009d2dd8d533 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 20 Mar 2023 14:11:01 +0100 Subject: [PATCH] tests: fix tests --- tests/unit/elements/form.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/elements/form.test.ts b/tests/unit/elements/form.test.ts index 5fd9eca75..8609df576 100644 --- a/tests/unit/elements/form.test.ts +++ b/tests/unit/elements/form.test.ts @@ -12,6 +12,7 @@ test('shows form', () => { }); const form = container.querySelector('form'); expect(form).toBeInTheDocument(); + expect(form).toHaveClass('form'); }); test('shows form - no margin', () => { @@ -20,7 +21,7 @@ test('shows form - no margin', () => { onSubmit: vi.fn() }); const form = container.querySelector('form'); - expect(form).toBeInTheDocument(); + expect(form).not.toHaveClass('common-section'); }); test('shows form - no style', () => { @@ -29,7 +30,7 @@ test('shows form - no style', () => { onSubmit: vi.fn() }); const form = container.querySelector('form'); - expect(form).toBeInTheDocument(); + expect(form).not.toHaveClass('form'); }); test('shows form - is modal', () => { @@ -39,6 +40,7 @@ test('shows form - is modal', () => { }); const form = container.querySelector('form'); expect(form).toBeInTheDocument(); + expect(form).toHaveClass('modal-form'); }); test('shows form - submitting', async () => {