1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-14 04:19:09 +00:00

fix unit tests

This commit is contained in:
slowbackspace 2020-03-31 15:46:07 +02:00
parent a7939601e5
commit 94ea4d663b

View File

@ -42,9 +42,9 @@ describe('device utils', () => {
});
it('isWebUSB', () => {
expect(utils.isWebUSB({ type: 'webusb', version: '1.6.0' })).toBe(true);
expect(utils.isWebUSB({ type: 'WebUsbPlugin', version: '1.6.0' })).toBe(true);
expect(utils.isWebUSB({ type: 'aaaa', version: 'aaaaaa' })).toBe(false);
expect(utils.isWebUSB({ type: 'webusb' })).toBe(true);
expect(utils.isWebUSB({ type: 'WebUsbPlugin' })).toBe(true);
});
it('isDisabled', () => {