1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-17 22:09:04 +00:00
trezor-wallet/src/utils/__tests__/notification.test.js

33 lines
695 B
JavaScript
Raw Normal View History

2018-10-15 15:56:46 +00:00
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();
});
});
});