From 94ea4d663b53a77adf54aeef7d5b996b77bf2306 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Tue, 31 Mar 2020 15:46:07 +0200 Subject: [PATCH] fix unit tests --- src/utils/__tests__/device.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/__tests__/device.test.js b/src/utils/__tests__/device.test.js index 1cbc2c91..c3c8e8c8 100644 --- a/src/utils/__tests__/device.test.js +++ b/src/utils/__tests__/device.test.js @@ -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', () => {