Skip to content

Commit 1da43ed

Browse files
committed
Fix integration test to not assume '1' as first deviceID
1 parent 1898d26 commit 1da43ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/integration-tests.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ describe("Usbmux-client integration tests", () => {
4343

4444
it("can read from lockdown service", async () => {
4545
client = new UsbmuxClient();
46-
const deviceValues = await client.queryAllDeviceValues(1);
46+
47+
const devices = await client.getDevices();
48+
const deviceId = Object.keys(devices)[0];
49+
50+
const deviceValues = await client.queryAllDeviceValues(deviceId);
4751

4852
console.log(deviceValues);
4953

0 commit comments

Comments
 (0)