mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-26 07:02:16 +00:00
quickfix: deviceUtils test "transport.version" fix
"version" should a be a string not an array
This commit is contained in:
parent
b48b197003
commit
3347c54cff
@ -40,9 +40,9 @@ describe('device utils', () => {
|
||||
|
||||
it('isWebUSB', () => {
|
||||
const data = [
|
||||
{ transport: { version: ['webusb'] } },
|
||||
{ transport: { version: ['aaaaaa'] } },
|
||||
{ transport: { version: ['webusb', 'test'] } },
|
||||
{ transport: { version: 'webusb' } },
|
||||
{ transport: { version: 'aaaaaa' } },
|
||||
{ transport: { version: 'webusb' } },
|
||||
];
|
||||
|
||||
data.forEach((item) => {
|
||||
@ -52,8 +52,8 @@ describe('device utils', () => {
|
||||
|
||||
it('isDisabled', () => {
|
||||
const data = [
|
||||
{ selectedDevice: { features: null }, devices: [1, 2, 3], transport: { version: ['webusb', 'test'] } },
|
||||
{ selectedDevice: { features: null }, devices: [], transport: { version: ['test'] } },
|
||||
{ selectedDevice: { features: null }, devices: [1, 2, 3], transport: { version: 'webusb' } },
|
||||
{ selectedDevice: { features: null }, devices: [], transport: { version: 'test' } },
|
||||
];
|
||||
|
||||
data.forEach((item) => {
|
||||
|
Loading…
Reference in New Issue
Block a user