fix: correctly called serialport from focus and removed unnecesary logs #2187
Annotations
10 errors
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find Defy-Wired:
src/api/focus/Focus.unit.ts#L147
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) } ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:147:21
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find multiple devices:
src/api/focus/Focus.unit.ts#L167
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) }, …(1) ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 17,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired-Bootloader",
- "pnpId": undefined,
- "productId": "0011",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:167:21
|
testing (ubuntu-20.04)
Process completed with exit code 1.
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find Defy-Wired:
src/api/focus/Focus.unit.ts#L147
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) } ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:147:21
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find multiple devices:
src/api/focus/Focus.unit.ts#L167
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) }, …(1) ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 17,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired-Bootloader",
- "pnpId": undefined,
- "productId": "0011",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:167:21
|
testing (windows-2019)
Process completed with exit code 1.
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find Defy-Wired:
src/api/focus/Focus.unit.ts#L147
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) } ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:147:21
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should find multiple devices:
src/api/focus/Focus.unit.ts#L167
AssertionError: expected [] to deeply equal [ { path: 'Defy-Wired', …(7) }, …(1) ]
- Expected
+ Received
- Array [
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 16,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired",
- "pnpId": undefined,
- "productId": "0010",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- Object {
- "device": Object {
- "info": Object {
- "displayName": "Raise 2 ISO",
- "keyboardType": "ISO",
- "product": "Raise2",
- "urls": Array [
- Object {
- "name": "Homepage",
- "url": "https://www.dygma.com",
- },
- ],
- "vendor": "Dygma",
- },
- "instructions": Object {
- "en": Object {
- "updateInstructions": "instructions",
- },
- },
- "usb": Object {
- "productId": 17,
- "vendorId": 13807,
- },
- },
- "locationId": undefined,
- "manufacturer": undefined,
- "path": "Defy-Wired-Bootloader",
- "pnpId": undefined,
- "productId": "0011",
- "serialNumber": undefined,
- "vendorId": "35ef",
- },
- ]
+ Array []
❯ api/focus/Focus.unit.ts:167:21
|
api/focus/Focus.unit.ts > Focus > successfully established a connection > should throw an error when no path:
src/api/focus/Focus.unit.ts#L262
AssertionError: expected "spy" to be called +0 times, but got 1 times
❯ api/focus/Focus.unit.ts:262:24
|
testing (macos-13)
Process completed with exit code 1.
|