mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-17 22:09:04 +00:00
33 lines
695 B
JavaScript
33 lines
695 B
JavaScript
|
import * as nUtils from 'utils/notification';
|
||
|
|
||
|
describe('device utils', () => {
|
||
|
it('get status', () => {
|
||
|
const types = [
|
||
|
'info',
|
||
|
'error',
|
||
|
'warning',
|
||
|
'success',
|
||
|
'kdsjflds',
|
||
|
'',
|
||
|
];
|
||
|
|
||
|
types.forEach((type) => {
|
||
|
expect(nUtils.getColor(type)).toMatchSnapshot();
|
||
|
});
|
||
|
});
|
||
|
it('get icon', () => {
|
||
|
const types = [
|
||
|
'info',
|
||
|
'error',
|
||
|
'warning',
|
||
|
'success',
|
||
|
'kdsjflds',
|
||
|
'',
|
||
|
];
|
||
|
|
||
|
types.forEach((type) => {
|
||
|
expect(nUtils.getIcon(type)).toMatchSnapshot();
|
||
|
});
|
||
|
});
|
||
|
});
|