mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-27 16:31:06 +00:00
fix unit tests
This commit is contained in:
parent
a7939601e5
commit
94ea4d663b
@ -42,9 +42,9 @@ describe('device utils', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('isWebUSB', () => {
|
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: 'aaaa', version: 'aaaaaa' })).toBe(false);
|
||||||
expect(utils.isWebUSB({ type: 'webusb' })).toBe(true);
|
expect(utils.isWebUSB({ type: 'WebUsbPlugin' })).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('isDisabled', () => {
|
it('isDisabled', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user