Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Aug 15, 2024
1 parent 0c70844 commit bf85374
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions app/assets/tests/interfaces/alerts.test.ts
Original file line number Diff line number Diff line change
@@ -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');
});
});
expect(AlertStyle.Primary).toBe('Primary')
expect(AlertStyle.Success).toBe('Success')
expect(AlertStyle.Warning).toBe('Warning')
expect(AlertStyle.Danger).toBe('Danger')
})
})

0 comments on commit bf85374

Please sign in to comment.