@@ -4,8 +4,8 @@ import { useAlert } from './use-alert';
44
55describe ( '<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