Skip to content

Commit a957e23

Browse files
committed
feat(Alert): add sharp shape * 3
1 parent 9d6b497 commit a957e23

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/content/Alert/alert.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useAlert } from './use-alert';
44

55
describe('<Alert /> component', () => {
66
beforeAll(() => {
7-
jest.spyOn(console, 'warn').mockImplementation(() => {});
8-
jest.spyOn(console, 'group').mockImplementation(() => {});
7+
jest.spyOn(console, 'warn').mockImplementation(() => { });
8+
jest.spyOn(console, 'group').mockImplementation(() => { });
99
});
1010

1111
afterAll(() => {
@@ -17,27 +17,27 @@ describe('<Alert /> component', () => {
1717
useAlert({ theme: 'danger', isDisabled: true }),
1818
);
1919

20-
expect(result.current.theme).toBe('disabled');
20+
expect(result.current.mods.type).toBe('disabled');
2121
});
2222

2323
it('should correctly render theme', () => {
2424
const { result } = renderHook(() => useAlert({ theme: 'danger' }));
2525

26-
expect(result.current.theme).toBe('danger');
26+
expect(result.current.mods.type).toBe('danger');
2727
});
2828

2929
it('should correctly render type', () => {
3030
const { result } = renderHook(() => useAlert({ type: 'danger' }));
3131

32-
expect(result.current.theme).toBe('danger');
32+
expect(result.current.mods.type).toBe('danger');
3333
});
3434

3535
it('should correctly render theme', () => {
3636
const { result } = renderHook(() =>
3737
useAlert({ theme: 'danger', type: 'note' }),
3838
);
3939

40-
expect(result.current.theme).toBe('danger');
40+
expect(result.current.mods.type).toBe('danger');
4141
});
4242

4343
it('should add qa', () => {

0 commit comments

Comments
 (0)