From bf8537471e54e8d090c0900f5cb7942925ebfd7c Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Wed, 14 Aug 2024 21:56:41 -0400 Subject: [PATCH] Fix style --- app/assets/tests/interfaces/alerts.test.ts | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/app/assets/tests/interfaces/alerts.test.ts b/app/assets/tests/interfaces/alerts.test.ts index 71771e25..49d5412b 100644 --- a/app/assets/tests/interfaces/alerts.test.ts +++ b/app/assets/tests/interfaces/alerts.test.ts @@ -1,41 +1,41 @@ import { describe, expect, test } from 'vitest' -import { type AlertInterface, AlertStyle } from '../../interfaces'; +import { type AlertInterface, AlertStyle } from '../../interfaces' describe('AlertInterface', () => { test('should create an alert with title and description', () => { const alert: AlertInterface = { title: 'Test Alert', - description: 'This is a test alert', - }; + description: 'This is a test alert' + } - expect(alert.title).toBe('Test Alert'); - expect(alert.description).toBe('This is a test alert'); - }); + expect(alert.title).toBe('Test Alert') + expect(alert.description).toBe('This is a test alert') + }) test('should create an alert with style', () => { const alert: AlertInterface = { - style: AlertStyle.Success, - }; + style: AlertStyle.Success + } - expect(alert.style).toBe(AlertStyle.Success); - }); + expect(alert.style).toBe(AlertStyle.Success) + }) test('should create an alert with close button and hide icon', () => { const alert: AlertInterface = { closeBtn: true, - hideIcon: true, - }; + hideIcon: true + } - expect(alert.closeBtn).toBe(true); - expect(alert.hideIcon).toBe(true); - }); -}); + expect(alert.closeBtn).toBe(true) + expect(alert.hideIcon).toBe(true) + }) +}) describe('AlertStyle', () => { test('should have the correct values', () => { - expect(AlertStyle.Primary).toBe('Primary'); - expect(AlertStyle.Success).toBe('Success'); - expect(AlertStyle.Warning).toBe('Warning'); - expect(AlertStyle.Danger).toBe('Danger'); - }); -}); \ No newline at end of file + expect(AlertStyle.Primary).toBe('Primary') + expect(AlertStyle.Success).toBe('Success') + expect(AlertStyle.Warning).toBe('Warning') + expect(AlertStyle.Danger).toBe('Danger') + }) +})