mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
702 B
33 lines
702 B
import * as nUtils from 'utils/notification';
|
|
|
|
describe('device utils', () => {
|
|
it('get status', () => {
|
|
const types = [
|
|
'info',
|
|
'error',
|
|
'warning',
|
|
'success',
|
|
'kdsjflds',
|
|
'',
|
|
];
|
|
|
|
types.forEach((type) => {
|
|
expect(nUtils.getPrimaryColor(type)).toMatchSnapshot();
|
|
});
|
|
});
|
|
it('get icon', () => {
|
|
const types = [
|
|
'info',
|
|
'error',
|
|
'warning',
|
|
'success',
|
|
'kdsjflds',
|
|
'',
|
|
];
|
|
|
|
types.forEach((type) => {
|
|
expect(nUtils.getIcon(type)).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|