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.
trezor-wallet/src/utils/__tests__/notification.test.js

13 lines
513 B

import * as utils from 'utils/notification';
describe('notification utils', () => {
it('get colors from status', () => {
expect(utils.getPrimaryColor('info')).toBe('#1E7FF0');
expect(utils.getPrimaryColor('warning')).toBe('#EB8A00');
expect(utils.getPrimaryColor('error')).toBe('#ED1212');
expect(utils.getPrimaryColor('success')).toBe('#01B757');
expect(utils.getPrimaryColor('kdsjflds')).toBe(null);
expect(utils.getPrimaryColor('')).toBe(null);
});
});