@sebbo2002/node-pyatv 5.1.0 → 5.1.1-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/docs/coverage/cobertura-coverage.xml +4 -4
  3. package/docs/coverage/device-event.ts.html +1 -1
  4. package/docs/coverage/device-events.ts.html +1 -1
  5. package/docs/coverage/device.ts.html +1 -1
  6. package/docs/coverage/fake-spawn.ts.html +1 -1
  7. package/docs/coverage/index.html +1 -1
  8. package/docs/coverage/index.ts.html +1 -1
  9. package/docs/coverage/instance.ts.html +1 -1
  10. package/docs/coverage/tools.ts.html +4 -4
  11. package/docs/coverage/types.ts.html +1 -1
  12. package/docs/reference/assets/highlight.css +4 -4
  13. package/docs/reference/assets/main.js +1 -1
  14. package/docs/reference/assets/style.css +1 -0
  15. package/docs/reference/classes/NodePyATVDevice.html +76 -76
  16. package/docs/reference/classes/NodePyATVDeviceEvent.html +10 -10
  17. package/docs/reference/classes/NodePyATVInstance.html +14 -14
  18. package/docs/reference/enums/NodePyATVDeviceState.html +11 -11
  19. package/docs/reference/enums/NodePyATVExecutableType.html +7 -7
  20. package/docs/reference/enums/NodePyATVKeys.html +28 -28
  21. package/docs/reference/enums/NodePyATVListenerState.html +9 -9
  22. package/docs/reference/enums/NodePyATVMediaType.html +9 -9
  23. package/docs/reference/enums/NodePyATVPowerState.html +7 -7
  24. package/docs/reference/enums/NodePyATVProtocol.html +9 -9
  25. package/docs/reference/enums/NodePyATVRepeatState.html +8 -8
  26. package/docs/reference/enums/NodePyATVShuffleState.html +8 -8
  27. package/docs/reference/index.html +5 -5
  28. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +28 -26
  29. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +24 -20
  30. package/docs/reference/interfaces/NodePyATVFindOptions.html +17 -15
  31. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +6 -6
  32. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +13 -11
  33. package/docs/reference/interfaces/NodePyATVService.html +7 -7
  34. package/docs/reference/interfaces/NodePyATVState.html +20 -20
  35. package/docs/reference/interfaces/NodePyATVVersionResponse.html +7 -7
  36. package/docs/reference/modules.html +4 -4
  37. package/docs/reference/types/NodePyATVEventValueType.html +5 -5
  38. package/docs/tests/index.html +1 -1
  39. package/docs/tests/mochawesome.json +639 -639
  40. package/package.json +11 -11
@@ -5,9 +5,9 @@
5
5
  "passes": 151,
6
6
  "pending": 2,
7
7
  "failures": 0,
8
- "start": "2022-08-11T19:18:06.131Z",
9
- "end": "2022-08-11T19:18:18.102Z",
10
- "duration": 11971,
8
+ "start": "2022-09-12T13:36:41.254Z",
9
+ "end": "2022-09-12T13:36:53.276Z",
10
+ "duration": 12022,
11
11
  "testsRegistered": 153,
12
12
  "passPercent": 100,
13
13
  "pendingPercent": 1.3071895424836601,
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "results": [
20
20
  {
21
- "uuid": "073e434d-c7d7-47f4-a925-c77ce861cde5",
21
+ "uuid": "1a16569c-6f5c-4607-8ecd-424aeb4c05f3",
22
22
  "title": "",
23
23
  "fullFile": "",
24
24
  "file": "",
@@ -27,7 +27,7 @@
27
27
  "tests": [],
28
28
  "suites": [
29
29
  {
30
- "uuid": "81220a68-77fe-4d59-99d1-2213cf176499",
30
+ "uuid": "f5f3b6cb-bc1b-451d-bc52-85dc1ccaf232",
31
31
  "title": "NodePyATVDeviceEvent",
32
32
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
33
33
  "file": "/test/device-event.ts",
@@ -36,7 +36,7 @@
36
36
  "tests": [],
37
37
  "suites": [
38
38
  {
39
- "uuid": "3ad84aac-1cfd-4ecd-85ad-40521c80bb50",
39
+ "uuid": "695b91cb-42d5-4d87-971c-69cc6e30b956",
40
40
  "title": "get key()",
41
41
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
42
42
  "file": "/test/device-event.ts",
@@ -47,7 +47,7 @@
47
47
  "title": "should work",
48
48
  "fullTitle": "NodePyATVDeviceEvent get key() should work",
49
49
  "timedOut": false,
50
- "duration": 1,
50
+ "duration": 0,
51
51
  "state": "passed",
52
52
  "speed": "fast",
53
53
  "pass": true,
@@ -56,26 +56,26 @@
56
56
  "context": null,
57
57
  "code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.key, 'genre');",
58
58
  "err": {},
59
- "uuid": "9acee320-5c8f-48fb-92fb-b0fb6e4debbf",
60
- "parentUUID": "3ad84aac-1cfd-4ecd-85ad-40521c80bb50",
59
+ "uuid": "c67f623a-c413-4ccb-b0b9-3697864ad594",
60
+ "parentUUID": "695b91cb-42d5-4d87-971c-69cc6e30b956",
61
61
  "isHook": false,
62
62
  "skipped": false
63
63
  }
64
64
  ],
65
65
  "suites": [],
66
66
  "passes": [
67
- "9acee320-5c8f-48fb-92fb-b0fb6e4debbf"
67
+ "c67f623a-c413-4ccb-b0b9-3697864ad594"
68
68
  ],
69
69
  "failures": [],
70
70
  "pending": [],
71
71
  "skipped": [],
72
- "duration": 1,
72
+ "duration": 0,
73
73
  "root": false,
74
74
  "rootEmpty": false,
75
75
  "_timeout": 2000
76
76
  },
77
77
  {
78
- "uuid": "eab02796-34cb-40ff-a4b4-e983ecb952f3",
78
+ "uuid": "04475ec2-bc36-440b-9ce5-b4cb8160b231",
79
79
  "title": "get oldValue()",
80
80
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
81
81
  "file": "/test/device-event.ts",
@@ -86,7 +86,7 @@
86
86
  "title": "should work",
87
87
  "fullTitle": "NodePyATVDeviceEvent get oldValue() should work",
88
88
  "timedOut": false,
89
- "duration": 0,
89
+ "duration": 1,
90
90
  "state": "passed",
91
91
  "speed": "fast",
92
92
  "pass": true,
@@ -95,26 +95,26 @@
95
95
  "context": null,
96
96
  "code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.oldValue, 'Jazz');",
97
97
  "err": {},
98
- "uuid": "2b395656-2644-4aa4-9c6f-b37114c423de",
99
- "parentUUID": "eab02796-34cb-40ff-a4b4-e983ecb952f3",
98
+ "uuid": "de82faac-4ada-419a-8054-bdaba20995d8",
99
+ "parentUUID": "04475ec2-bc36-440b-9ce5-b4cb8160b231",
100
100
  "isHook": false,
101
101
  "skipped": false
102
102
  }
103
103
  ],
104
104
  "suites": [],
105
105
  "passes": [
106
- "2b395656-2644-4aa4-9c6f-b37114c423de"
106
+ "de82faac-4ada-419a-8054-bdaba20995d8"
107
107
  ],
108
108
  "failures": [],
109
109
  "pending": [],
110
110
  "skipped": [],
111
- "duration": 0,
111
+ "duration": 1,
112
112
  "root": false,
113
113
  "rootEmpty": false,
114
114
  "_timeout": 2000
115
115
  },
116
116
  {
117
- "uuid": "b9cc2ae2-bda4-4ff6-8b0b-161dd8475fc9",
117
+ "uuid": "a6ed634c-d08c-4b74-af8a-a93347cd37d5",
118
118
  "title": "get newValue()",
119
119
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
120
120
  "file": "/test/device-event.ts",
@@ -134,15 +134,15 @@
134
134
  "context": null,
135
135
  "code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.newValue, 'Rock');",
136
136
  "err": {},
137
- "uuid": "83641570-5537-41ef-a887-40fa9d3d9c3d",
138
- "parentUUID": "b9cc2ae2-bda4-4ff6-8b0b-161dd8475fc9",
137
+ "uuid": "76bfa697-3dc7-4d2b-9655-086e47b6ec6c",
138
+ "parentUUID": "a6ed634c-d08c-4b74-af8a-a93347cd37d5",
139
139
  "isHook": false,
140
140
  "skipped": false
141
141
  }
142
142
  ],
143
143
  "suites": [],
144
144
  "passes": [
145
- "83641570-5537-41ef-a887-40fa9d3d9c3d"
145
+ "76bfa697-3dc7-4d2b-9655-086e47b6ec6c"
146
146
  ],
147
147
  "failures": [],
148
148
  "pending": [],
@@ -153,7 +153,7 @@
153
153
  "_timeout": 2000
154
154
  },
155
155
  {
156
- "uuid": "d7a4c800-2f3b-4665-9829-7f5e3ee04a56",
156
+ "uuid": "d43715c2-3832-4d3f-9e19-dbf0b28a8f41",
157
157
  "title": "get value()",
158
158
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
159
159
  "file": "/test/device-event.ts",
@@ -173,15 +173,15 @@
173
173
  "context": null,
174
174
  "code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.value, 'Rock');",
175
175
  "err": {},
176
- "uuid": "6f190e1d-cb64-4fe0-8d27-09ed76d8223b",
177
- "parentUUID": "d7a4c800-2f3b-4665-9829-7f5e3ee04a56",
176
+ "uuid": "ccd8b7b6-f3f2-450b-8642-2028c9415f28",
177
+ "parentUUID": "d43715c2-3832-4d3f-9e19-dbf0b28a8f41",
178
178
  "isHook": false,
179
179
  "skipped": false
180
180
  }
181
181
  ],
182
182
  "suites": [],
183
183
  "passes": [
184
- "6f190e1d-cb64-4fe0-8d27-09ed76d8223b"
184
+ "ccd8b7b6-f3f2-450b-8642-2028c9415f28"
185
185
  ],
186
186
  "failures": [],
187
187
  "pending": [],
@@ -192,7 +192,7 @@
192
192
  "_timeout": 2000
193
193
  },
194
194
  {
195
- "uuid": "3e7e7676-245a-4463-b18b-fa56ef034cc7",
195
+ "uuid": "4e81abc8-9aee-4cdd-842f-1c0dca4af869",
196
196
  "title": "get device()",
197
197
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
198
198
  "file": "/test/device-event.ts",
@@ -203,7 +203,7 @@
203
203
  "title": "should work",
204
204
  "fullTitle": "NodePyATVDeviceEvent get device() should work",
205
205
  "timedOut": false,
206
- "duration": 1,
206
+ "duration": 0,
207
207
  "state": "passed",
208
208
  "speed": "fast",
209
209
  "pass": true,
@@ -212,20 +212,20 @@
212
212
  "context": null,
213
213
  "code": "const device = new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device\n});\nassert.deepEqual(event.device, device);",
214
214
  "err": {},
215
- "uuid": "fa785ab0-b725-4497-8f4b-4b0c90d2f3a6",
216
- "parentUUID": "3e7e7676-245a-4463-b18b-fa56ef034cc7",
215
+ "uuid": "aa33904c-d46c-436a-8732-d21e720059f7",
216
+ "parentUUID": "4e81abc8-9aee-4cdd-842f-1c0dca4af869",
217
217
  "isHook": false,
218
218
  "skipped": false
219
219
  }
220
220
  ],
221
221
  "suites": [],
222
222
  "passes": [
223
- "fa785ab0-b725-4497-8f4b-4b0c90d2f3a6"
223
+ "aa33904c-d46c-436a-8732-d21e720059f7"
224
224
  ],
225
225
  "failures": [],
226
226
  "pending": [],
227
227
  "skipped": [],
228
- "duration": 1,
228
+ "duration": 0,
229
229
  "root": false,
230
230
  "rootEmpty": false,
231
231
  "_timeout": 2000
@@ -241,7 +241,7 @@
241
241
  "_timeout": 2000
242
242
  },
243
243
  {
244
- "uuid": "f6ca5605-aeb7-43a0-a1a6-9ac62ccd62b5",
244
+ "uuid": "e322d125-1ba1-43e4-9016-98af963c6791",
245
245
  "title": "NodePyATVDeviceEvents",
246
246
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
247
247
  "file": "/test/device-events.ts",
@@ -250,7 +250,7 @@
250
250
  "tests": [],
251
251
  "suites": [
252
252
  {
253
- "uuid": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
253
+ "uuid": "edeb8f67-7f27-4385-853d-28e3ce23784a",
254
254
  "title": "applyStateAndEmitEvents()",
255
255
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
256
256
  "file": "/test/device-events.ts",
@@ -261,7 +261,7 @@
261
261
  "title": "should emit update:key event",
262
262
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event",
263
263
  "timedOut": false,
264
- "duration": 2,
264
+ "duration": 4,
265
265
  "state": "passed",
266
266
  "speed": "fast",
267
267
  "pass": true,
@@ -270,8 +270,8 @@
270
270
  "context": null,
271
271
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:title', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
272
272
  "err": {},
273
- "uuid": "93f4f117-7e41-445c-8ee7-dc7331223fbe",
274
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
273
+ "uuid": "b837a8f1-5124-458f-a5d5-ed0ae07888d9",
274
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
275
275
  "isHook": false,
276
276
  "skipped": false
277
277
  },
@@ -288,8 +288,8 @@
288
288
  "context": null,
289
289
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
290
290
  "err": {},
291
- "uuid": "5f6f1aa8-e413-47f7-b535-34751726e96e",
292
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
291
+ "uuid": "f2b14198-05a5-451a-bceb-1f7814963cf8",
292
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
293
293
  "isHook": false,
294
294
  "skipped": false
295
295
  },
@@ -297,7 +297,7 @@
297
297
  "title": "should emit update:key event before update",
298
298
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event before update",
299
299
  "timedOut": false,
300
- "duration": 3,
300
+ "duration": 1,
301
301
  "state": "passed",
302
302
  "speed": "fast",
303
303
  "pass": true,
@@ -306,8 +306,8 @@
306
306
  "context": null,
307
307
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const sort = [];\n yield Promise.race([\n new Promise(cb => {\n device.once('update', () => {\n sort.push('update');\n cb(undefined);\n });\n }),\n new Promise(cb => {\n device.once('update:title', () => {\n sort.push('update:title');\n cb(undefined);\n });\n })\n ]);\n assert.deepStrictEqual(sort, ['update:title', 'update']);\n});",
308
308
  "err": {},
309
- "uuid": "18e828b0-1e71-4156-9e9c-04c1842f4de1",
310
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
309
+ "uuid": "58dc149f-c32d-424d-8030-9776abb1ab1d",
310
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
311
311
  "isHook": false,
312
312
  "skipped": false
313
313
  },
@@ -324,8 +324,8 @@
324
324
  "context": null,
325
325
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n yield new Promise(cb => {\n device.once('error', error => {\n assert.ok(error instanceof Error);\n assert.ok(error.toString().includes('invalid credentials: 321'));\n cb(undefined);\n });\n });\n});",
326
326
  "err": {},
327
- "uuid": "1f8530d5-be54-41d8-ad48-575fe19de307",
328
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
327
+ "uuid": "65503fda-5ace-47fe-a06d-2b61b3145e77",
328
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
329
329
  "isHook": false,
330
330
  "skipped": false
331
331
  },
@@ -333,7 +333,7 @@
333
333
  "title": "should not emit an update if new value is same as old one",
334
334
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should not emit an update if new value is same as old one",
335
335
  "timedOut": false,
336
- "duration": 2,
336
+ "duration": 3,
337
337
  "state": "passed",
338
338
  "speed": "fast",
339
339
  "pass": true,
@@ -342,8 +342,8 @@
342
342
  "context": null,
343
343
  "code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n if (spawnCounter === 0) {\n cp.onStdIn(() => cp.end());\n }\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n spawnCounter++;\n if (spawnCounter >= 2) {\n cp.end();\n }\n })\n });\n const listener = () => {\n eventCounter++;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n yield device.getState();\n device.off('update', listener);\n assert.strictEqual(spawnCounter, 2);\n assert.strictEqual(eventCounter, 1);\n});",
344
344
  "err": {},
345
- "uuid": "6fabacaa-2461-4a39-8bdc-5d78f9dcc66c",
346
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
345
+ "uuid": "7598b3b6-a41f-4488-bc7d-d71a88aa3044",
346
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
347
347
  "isHook": false,
348
348
  "skipped": false
349
349
  },
@@ -351,7 +351,7 @@
351
351
  "title": "should emit error event if event listener throws an exception",
352
352
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error event if event listener throws an exception",
353
353
  "timedOut": false,
354
- "duration": 2,
354
+ "duration": 1,
355
355
  "state": "passed",
356
356
  "speed": "fast",
357
357
  "pass": true,
@@ -360,8 +360,8 @@
360
360
  "context": null,
361
361
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n let callCounter = 0;\n const error = new Error('This is an error. Be nice.');\n device.once('error', err => {\n assert.strictEqual(err, error);\n callCounter++;\n });\n const listener = () => {\n throw error;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n device.off('update', listener);\n assert.strictEqual(callCounter, 1);\n});",
362
362
  "err": {},
363
- "uuid": "7c833855-dfa5-4093-938a-8f00f3786f5d",
364
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
363
+ "uuid": "e261bda1-a58d-4e90-808d-f338ad7c4c59",
364
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
365
365
  "isHook": false,
366
366
  "skipped": false
367
367
  },
@@ -369,7 +369,7 @@
369
369
  "title": "should also work with powerState",
370
370
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should also work with powerState",
371
371
  "timedOut": false,
372
- "duration": 2,
372
+ "duration": 1,
373
373
  "state": "passed",
374
374
  "speed": "fast",
375
375
  "pass": true,
@@ -378,32 +378,32 @@
378
378
  "context": null,
379
379
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n datetime: new Date().toJSON(),\n power_state: 'off'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:powerState', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'powerState');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'off');\n assert.strictEqual(event.newValue, NodePyATVPowerState.off);\n assert.strictEqual(event.value, 'off');\n assert.strictEqual(event.value, NodePyATVPowerState.off);\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
380
380
  "err": {},
381
- "uuid": "d0c6d9dc-e057-4f98-ab25-e6b165abd515",
382
- "parentUUID": "cfde59fa-cdeb-411d-943f-c18f0dadb23b",
381
+ "uuid": "d3b5c106-224c-4fc9-95cc-e9116b95b77b",
382
+ "parentUUID": "edeb8f67-7f27-4385-853d-28e3ce23784a",
383
383
  "isHook": false,
384
384
  "skipped": false
385
385
  }
386
386
  ],
387
387
  "suites": [],
388
388
  "passes": [
389
- "93f4f117-7e41-445c-8ee7-dc7331223fbe",
390
- "5f6f1aa8-e413-47f7-b535-34751726e96e",
391
- "18e828b0-1e71-4156-9e9c-04c1842f4de1",
392
- "1f8530d5-be54-41d8-ad48-575fe19de307",
393
- "6fabacaa-2461-4a39-8bdc-5d78f9dcc66c",
394
- "7c833855-dfa5-4093-938a-8f00f3786f5d",
395
- "d0c6d9dc-e057-4f98-ab25-e6b165abd515"
389
+ "b837a8f1-5124-458f-a5d5-ed0ae07888d9",
390
+ "f2b14198-05a5-451a-bceb-1f7814963cf8",
391
+ "58dc149f-c32d-424d-8030-9776abb1ab1d",
392
+ "65503fda-5ace-47fe-a06d-2b61b3145e77",
393
+ "7598b3b6-a41f-4488-bc7d-d71a88aa3044",
394
+ "e261bda1-a58d-4e90-808d-f338ad7c4c59",
395
+ "d3b5c106-224c-4fc9-95cc-e9116b95b77b"
396
396
  ],
397
397
  "failures": [],
398
398
  "pending": [],
399
399
  "skipped": [],
400
- "duration": 15,
400
+ "duration": 14,
401
401
  "root": false,
402
402
  "rootEmpty": false,
403
403
  "_timeout": 2000
404
404
  },
405
405
  {
406
- "uuid": "8830c160-e5fe-44d5-9bed-a73188d66332",
406
+ "uuid": "7f365661-b89c-48a5-8d53-552afe6dd237",
407
407
  "title": "start|stopListening()",
408
408
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
409
409
  "file": "/test/device-events.ts",
@@ -423,8 +423,8 @@
423
423
  "context": null,
424
424
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.error(error).end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
425
425
  "err": {},
426
- "uuid": "0b228473-ca57-464f-853a-354966c41ad3",
427
- "parentUUID": "8830c160-e5fe-44d5-9bed-a73188d66332",
426
+ "uuid": "dd85fad1-3f25-45fd-9c33-388f090e9369",
427
+ "parentUUID": "7f365661-b89c-48a5-8d53-552afe6dd237",
428
428
  "isHook": false,
429
429
  "skipped": false
430
430
  },
@@ -441,8 +441,8 @@
441
441
  "context": null,
442
442
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Got stderr output from pyatv: Hello World!'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
443
443
  "err": {},
444
- "uuid": "51c3c88b-5980-4fa9-8dd8-e891690803f3",
445
- "parentUUID": "8830c160-e5fe-44d5-9bed-a73188d66332",
444
+ "uuid": "29e09323-0df7-4e52-a9e4-3f23a66b067e",
445
+ "parentUUID": "7f365661-b89c-48a5-8d53-552afe6dd237",
446
446
  "isHook": false,
447
447
  "skipped": false
448
448
  },
@@ -459,8 +459,8 @@
459
459
  "context": null,
460
460
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stdout('#').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Unable to parse stdout json: SyntaxError: ' +\n 'Unexpected token # in JSON at position 0'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
461
461
  "err": {},
462
- "uuid": "c9dafeb3-ec3f-4de8-b05b-515b6a3050e6",
463
- "parentUUID": "8830c160-e5fe-44d5-9bed-a73188d66332",
462
+ "uuid": "922471b1-dc24-472f-a12f-9c3fde492612",
463
+ "parentUUID": "7f365661-b89c-48a5-8d53-552afe6dd237",
464
464
  "isHook": false,
465
465
  "skipped": false
466
466
  },
@@ -477,21 +477,21 @@
477
477
  "context": null,
478
478
  "code": "",
479
479
  "err": {},
480
- "uuid": "150a2f4e-d43d-4a10-9f56-6c631e053a62",
481
- "parentUUID": "8830c160-e5fe-44d5-9bed-a73188d66332",
480
+ "uuid": "11b26f58-d564-46b9-9d7d-0410e4c45f3e",
481
+ "parentUUID": "7f365661-b89c-48a5-8d53-552afe6dd237",
482
482
  "isHook": false,
483
483
  "skipped": false
484
484
  }
485
485
  ],
486
486
  "suites": [],
487
487
  "passes": [
488
- "0b228473-ca57-464f-853a-354966c41ad3",
489
- "51c3c88b-5980-4fa9-8dd8-e891690803f3",
490
- "c9dafeb3-ec3f-4de8-b05b-515b6a3050e6"
488
+ "dd85fad1-3f25-45fd-9c33-388f090e9369",
489
+ "29e09323-0df7-4e52-a9e4-3f23a66b067e",
490
+ "922471b1-dc24-472f-a12f-9c3fde492612"
491
491
  ],
492
492
  "failures": [],
493
493
  "pending": [
494
- "150a2f4e-d43d-4a10-9f56-6c631e053a62"
494
+ "11b26f58-d564-46b9-9d7d-0410e4c45f3e"
495
495
  ],
496
496
  "skipped": [],
497
497
  "duration": 6,
@@ -500,7 +500,7 @@
500
500
  "_timeout": 2000
501
501
  },
502
502
  {
503
- "uuid": "265bb58b-208f-4d7e-9106-a53a50fc3fdb",
503
+ "uuid": "3e82fb10-074a-466f-8af8-ca7d3c30b9fd",
504
504
  "title": "addListener() / removeAllListeners()",
505
505
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
506
506
  "file": "/test/device-events.ts",
@@ -511,7 +511,7 @@
511
511
  "title": "should work without any exceptions",
512
512
  "fullTitle": "NodePyATVDeviceEvents addListener() / removeAllListeners() should work without any exceptions",
513
513
  "timedOut": false,
514
- "duration": 0,
514
+ "duration": 1,
515
515
  "state": "passed",
516
516
  "speed": "fast",
517
517
  "pass": true,
@@ -520,26 +520,26 @@
520
520
  "context": null,
521
521
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n device.removeAllListeners('update');\n});",
522
522
  "err": {},
523
- "uuid": "2e5f3740-5709-4599-a09f-ac554c478f58",
524
- "parentUUID": "265bb58b-208f-4d7e-9106-a53a50fc3fdb",
523
+ "uuid": "fff28184-6af7-4bd2-b8fb-454fb57c548e",
524
+ "parentUUID": "3e82fb10-074a-466f-8af8-ca7d3c30b9fd",
525
525
  "isHook": false,
526
526
  "skipped": false
527
527
  }
528
528
  ],
529
529
  "suites": [],
530
530
  "passes": [
531
- "2e5f3740-5709-4599-a09f-ac554c478f58"
531
+ "fff28184-6af7-4bd2-b8fb-454fb57c548e"
532
532
  ],
533
533
  "failures": [],
534
534
  "pending": [],
535
535
  "skipped": [],
536
- "duration": 0,
536
+ "duration": 1,
537
537
  "root": false,
538
538
  "rootEmpty": false,
539
539
  "_timeout": 2000
540
540
  },
541
541
  {
542
- "uuid": "f9f9db0a-878f-48ef-a0d1-10ee79853638",
542
+ "uuid": "294ce481-2ab0-4c3e-a3bf-d7ffe558e342",
543
543
  "title": "emit()",
544
544
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
545
545
  "file": "/test/device-events.ts",
@@ -550,7 +550,7 @@
550
550
  "title": "should work",
551
551
  "fullTitle": "NodePyATVDeviceEvents emit() should work",
552
552
  "timedOut": false,
553
- "duration": 0,
553
+ "duration": 1,
554
554
  "state": "passed",
555
555
  "speed": "fast",
556
556
  "pass": true,
@@ -559,26 +559,26 @@
559
559
  "context": null,
560
560
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert.strictEqual(e, event);\n assert.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
561
561
  "err": {},
562
- "uuid": "18ee3005-030f-47c0-b91c-73d976397c37",
563
- "parentUUID": "f9f9db0a-878f-48ef-a0d1-10ee79853638",
562
+ "uuid": "a07dfe0d-51a6-4d6d-9f56-9a0c11de78dc",
563
+ "parentUUID": "294ce481-2ab0-4c3e-a3bf-d7ffe558e342",
564
564
  "isHook": false,
565
565
  "skipped": false
566
566
  }
567
567
  ],
568
568
  "suites": [],
569
569
  "passes": [
570
- "18ee3005-030f-47c0-b91c-73d976397c37"
570
+ "a07dfe0d-51a6-4d6d-9f56-9a0c11de78dc"
571
571
  ],
572
572
  "failures": [],
573
573
  "pending": [],
574
574
  "skipped": [],
575
- "duration": 0,
575
+ "duration": 1,
576
576
  "root": false,
577
577
  "rootEmpty": false,
578
578
  "_timeout": 2000
579
579
  },
580
580
  {
581
- "uuid": "379d039c-1812-4dab-a04d-41784c75dd0e",
581
+ "uuid": "542cf585-e74a-4a2d-9a80-2f583910bf29",
582
582
  "title": "eventNames()",
583
583
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
584
584
  "file": "/test/device-events.ts",
@@ -589,7 +589,7 @@
589
589
  "title": "should work",
590
590
  "fullTitle": "NodePyATVDeviceEvents eventNames() should work",
591
591
  "timedOut": false,
592
- "duration": 1,
592
+ "duration": 0,
593
593
  "state": "passed",
594
594
  "speed": "fast",
595
595
  "pass": true,
@@ -598,26 +598,26 @@
598
598
  "context": null,
599
599
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
600
600
  "err": {},
601
- "uuid": "3791bcb7-40df-4148-868a-4bf0cf001d1d",
602
- "parentUUID": "379d039c-1812-4dab-a04d-41784c75dd0e",
601
+ "uuid": "37a6ee5d-c8eb-4b24-a157-2f972737a07b",
602
+ "parentUUID": "542cf585-e74a-4a2d-9a80-2f583910bf29",
603
603
  "isHook": false,
604
604
  "skipped": false
605
605
  }
606
606
  ],
607
607
  "suites": [],
608
608
  "passes": [
609
- "3791bcb7-40df-4148-868a-4bf0cf001d1d"
609
+ "37a6ee5d-c8eb-4b24-a157-2f972737a07b"
610
610
  ],
611
611
  "failures": [],
612
612
  "pending": [],
613
613
  "skipped": [],
614
- "duration": 1,
614
+ "duration": 0,
615
615
  "root": false,
616
616
  "rootEmpty": false,
617
617
  "_timeout": 2000
618
618
  },
619
619
  {
620
- "uuid": "4dd401d5-d6b9-4fd0-af6f-9d1ce9e3792e",
620
+ "uuid": "f525dace-4d16-4053-89d6-eac78d0b1f2b",
621
621
  "title": "getMaxListeners()",
622
622
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
623
623
  "file": "/test/device-events.ts",
@@ -637,15 +637,15 @@
637
637
  "context": null,
638
638
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert.ok(typeof result, 'number');\nassert.ok(result >= 10);",
639
639
  "err": {},
640
- "uuid": "f586a8ec-5ecc-4842-bf17-7a0dbb0fc063",
641
- "parentUUID": "4dd401d5-d6b9-4fd0-af6f-9d1ce9e3792e",
640
+ "uuid": "d8ba28fa-aa1f-4184-b1a5-ab9f3360d4dd",
641
+ "parentUUID": "f525dace-4d16-4053-89d6-eac78d0b1f2b",
642
642
  "isHook": false,
643
643
  "skipped": false
644
644
  }
645
645
  ],
646
646
  "suites": [],
647
647
  "passes": [
648
- "f586a8ec-5ecc-4842-bf17-7a0dbb0fc063"
648
+ "d8ba28fa-aa1f-4184-b1a5-ab9f3360d4dd"
649
649
  ],
650
650
  "failures": [],
651
651
  "pending": [],
@@ -656,7 +656,7 @@
656
656
  "_timeout": 2000
657
657
  },
658
658
  {
659
- "uuid": "9dc71539-84bf-4f9c-a9e2-c10209d8513f",
659
+ "uuid": "773c140a-c06f-4d7a-acc5-662432a3b9f5",
660
660
  "title": "listenerCount()",
661
661
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
662
662
  "file": "/test/device-events.ts",
@@ -676,15 +676,15 @@
676
676
  "context": null,
677
677
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
678
678
  "err": {},
679
- "uuid": "4a64c154-8ec9-4c95-9e7d-3cf4a004740e",
680
- "parentUUID": "9dc71539-84bf-4f9c-a9e2-c10209d8513f",
679
+ "uuid": "2d68157c-dce9-4aaa-92ac-1357d316f78c",
680
+ "parentUUID": "773c140a-c06f-4d7a-acc5-662432a3b9f5",
681
681
  "isHook": false,
682
682
  "skipped": false
683
683
  }
684
684
  ],
685
685
  "suites": [],
686
686
  "passes": [
687
- "4a64c154-8ec9-4c95-9e7d-3cf4a004740e"
687
+ "2d68157c-dce9-4aaa-92ac-1357d316f78c"
688
688
  ],
689
689
  "failures": [],
690
690
  "pending": [],
@@ -695,7 +695,7 @@
695
695
  "_timeout": 2000
696
696
  },
697
697
  {
698
- "uuid": "83d74728-822d-4450-a75d-c28f9138fe8b",
698
+ "uuid": "b449cfe1-f399-43e8-b380-62c57e6d030b",
699
699
  "title": "listeners()",
700
700
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
701
701
  "file": "/test/device-events.ts",
@@ -715,15 +715,15 @@
715
715
  "context": null,
716
716
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listeners('test').length, 1);\nassert.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
717
717
  "err": {},
718
- "uuid": "937c917d-2455-4387-8c72-2977e2cd91b4",
719
- "parentUUID": "83d74728-822d-4450-a75d-c28f9138fe8b",
718
+ "uuid": "4fba2b27-a78e-482f-9fa1-649e21ed65e4",
719
+ "parentUUID": "b449cfe1-f399-43e8-b380-62c57e6d030b",
720
720
  "isHook": false,
721
721
  "skipped": false
722
722
  }
723
723
  ],
724
724
  "suites": [],
725
725
  "passes": [
726
- "937c917d-2455-4387-8c72-2977e2cd91b4"
726
+ "4fba2b27-a78e-482f-9fa1-649e21ed65e4"
727
727
  ],
728
728
  "failures": [],
729
729
  "pending": [],
@@ -734,7 +734,7 @@
734
734
  "_timeout": 2000
735
735
  },
736
736
  {
737
- "uuid": "6e8239d0-7edb-497d-80cd-403ecc90f972",
737
+ "uuid": "88b8d7c3-c1be-4c8a-92a0-119be42c8504",
738
738
  "title": "prependListener()",
739
739
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
740
740
  "file": "/test/device-events.ts",
@@ -745,7 +745,7 @@
745
745
  "title": "should work",
746
746
  "fullTitle": "NodePyATVDeviceEvents prependListener() should work",
747
747
  "timedOut": false,
748
- "duration": 2,
748
+ "duration": 1,
749
749
  "state": "passed",
750
750
  "speed": "fast",
751
751
  "pass": true,
@@ -754,26 +754,26 @@
754
754
  "context": null,
755
755
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\nconst listener = () => {\n device.removeAllListeners('update');\n done();\n};\ndevice.prependListener('update', listener);",
756
756
  "err": {},
757
- "uuid": "205b3c0f-7e4f-481e-a882-0968b7b678a7",
758
- "parentUUID": "6e8239d0-7edb-497d-80cd-403ecc90f972",
757
+ "uuid": "e36d2300-ae71-4bb8-b12b-3f015c1dc488",
758
+ "parentUUID": "88b8d7c3-c1be-4c8a-92a0-119be42c8504",
759
759
  "isHook": false,
760
760
  "skipped": false
761
761
  }
762
762
  ],
763
763
  "suites": [],
764
764
  "passes": [
765
- "205b3c0f-7e4f-481e-a882-0968b7b678a7"
765
+ "e36d2300-ae71-4bb8-b12b-3f015c1dc488"
766
766
  ],
767
767
  "failures": [],
768
768
  "pending": [],
769
769
  "skipped": [],
770
- "duration": 2,
770
+ "duration": 1,
771
771
  "root": false,
772
772
  "rootEmpty": false,
773
773
  "_timeout": 2000
774
774
  },
775
775
  {
776
- "uuid": "b445a26a-c431-4a63-be48-f8ee44792005",
776
+ "uuid": "3f560bbb-a8c5-431e-8387-d7629948bd0d",
777
777
  "title": "prependOnceListener()",
778
778
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
779
779
  "file": "/test/device-events.ts",
@@ -793,15 +793,15 @@
793
793
  "context": null,
794
794
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\ndevice.prependOnceListener('update', () => done());",
795
795
  "err": {},
796
- "uuid": "a0cef40b-22da-4bb7-b8a8-93ca4950c2c5",
797
- "parentUUID": "b445a26a-c431-4a63-be48-f8ee44792005",
796
+ "uuid": "35793dfe-abb3-4af2-ae03-1c48fedef059",
797
+ "parentUUID": "3f560bbb-a8c5-431e-8387-d7629948bd0d",
798
798
  "isHook": false,
799
799
  "skipped": false
800
800
  }
801
801
  ],
802
802
  "suites": [],
803
803
  "passes": [
804
- "a0cef40b-22da-4bb7-b8a8-93ca4950c2c5"
804
+ "35793dfe-abb3-4af2-ae03-1c48fedef059"
805
805
  ],
806
806
  "failures": [],
807
807
  "pending": [],
@@ -812,7 +812,7 @@
812
812
  "_timeout": 2000
813
813
  },
814
814
  {
815
- "uuid": "b707934a-e28d-4260-9e23-998b416774c0",
815
+ "uuid": "fa4618bb-8656-4896-873f-61e9cbae22f4",
816
816
  "title": "rawListeners()",
817
817
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
818
818
  "file": "/test/device-events.ts",
@@ -823,7 +823,7 @@
823
823
  "title": "should work",
824
824
  "fullTitle": "NodePyATVDeviceEvents rawListeners() should work",
825
825
  "timedOut": false,
826
- "duration": 0,
826
+ "duration": 1,
827
827
  "state": "passed",
828
828
  "speed": "fast",
829
829
  "pass": true,
@@ -832,26 +832,26 @@
832
832
  "context": null,
833
833
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.rawListeners('test').length, 1);\nassert.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
834
834
  "err": {},
835
- "uuid": "62d4efce-432b-4da4-905f-5e35f928dc80",
836
- "parentUUID": "b707934a-e28d-4260-9e23-998b416774c0",
835
+ "uuid": "8ad5f16a-023b-4a4f-9e01-deba2b2d6e7b",
836
+ "parentUUID": "fa4618bb-8656-4896-873f-61e9cbae22f4",
837
837
  "isHook": false,
838
838
  "skipped": false
839
839
  }
840
840
  ],
841
841
  "suites": [],
842
842
  "passes": [
843
- "62d4efce-432b-4da4-905f-5e35f928dc80"
843
+ "8ad5f16a-023b-4a4f-9e01-deba2b2d6e7b"
844
844
  ],
845
845
  "failures": [],
846
846
  "pending": [],
847
847
  "skipped": [],
848
- "duration": 0,
848
+ "duration": 1,
849
849
  "root": false,
850
850
  "rootEmpty": false,
851
851
  "_timeout": 2000
852
852
  },
853
853
  {
854
- "uuid": "89cab120-bbec-4d01-a044-b9acf161cf4f",
854
+ "uuid": "4b0345d0-941e-4397-a04b-af8b992e89ef",
855
855
  "title": "removeListener()",
856
856
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
857
857
  "file": "/test/device-events.ts",
@@ -871,15 +871,15 @@
871
871
  "context": null,
872
872
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 0);\n});",
873
873
  "err": {},
874
- "uuid": "371551db-279d-4109-b9b5-21120b0f8bf0",
875
- "parentUUID": "89cab120-bbec-4d01-a044-b9acf161cf4f",
874
+ "uuid": "784a984b-7627-44c5-bcf0-c6adc20ad9b5",
875
+ "parentUUID": "4b0345d0-941e-4397-a04b-af8b992e89ef",
876
876
  "isHook": false,
877
877
  "skipped": false
878
878
  }
879
879
  ],
880
880
  "suites": [],
881
881
  "passes": [
882
- "371551db-279d-4109-b9b5-21120b0f8bf0"
882
+ "784a984b-7627-44c5-bcf0-c6adc20ad9b5"
883
883
  ],
884
884
  "failures": [],
885
885
  "pending": [],
@@ -900,7 +900,7 @@
900
900
  "_timeout": 2000
901
901
  },
902
902
  {
903
- "uuid": "9d950a9c-bccd-426e-89c5-d43db65e8612",
903
+ "uuid": "bf495fc4-722b-47d7-ac66-acab36daea30",
904
904
  "title": "NodePyATVDevice",
905
905
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
906
906
  "file": "/test/device.ts",
@@ -909,7 +909,7 @@
909
909
  "tests": [],
910
910
  "suites": [
911
911
  {
912
- "uuid": "09bac3ab-8011-40f0-8b51-b7835837d262",
912
+ "uuid": "f45f291d-53cd-41e1-9e21-9e3b00a77b1b",
913
913
  "title": "get name()",
914
914
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
915
915
  "file": "/test/device.ts",
@@ -929,15 +929,15 @@
929
929
  "context": null,
930
930
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.name, 'My Testdevice');",
931
931
  "err": {},
932
- "uuid": "86c0c83b-469d-40b4-a37f-a55aa9b6c752",
933
- "parentUUID": "09bac3ab-8011-40f0-8b51-b7835837d262",
932
+ "uuid": "113a3e40-cfaa-400c-baca-cd18ff4d095e",
933
+ "parentUUID": "f45f291d-53cd-41e1-9e21-9e3b00a77b1b",
934
934
  "isHook": false,
935
935
  "skipped": false
936
936
  }
937
937
  ],
938
938
  "suites": [],
939
939
  "passes": [
940
- "86c0c83b-469d-40b4-a37f-a55aa9b6c752"
940
+ "113a3e40-cfaa-400c-baca-cd18ff4d095e"
941
941
  ],
942
942
  "failures": [],
943
943
  "pending": [],
@@ -948,7 +948,7 @@
948
948
  "_timeout": 2000
949
949
  },
950
950
  {
951
- "uuid": "6cccc3dc-bdc2-4108-b669-79743562beef",
951
+ "uuid": "0a71b4aa-1ef4-45e8-82ad-c6f6d91bd4e8",
952
952
  "title": "get host()",
953
953
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
954
954
  "file": "/test/device.ts",
@@ -968,15 +968,15 @@
968
968
  "context": null,
969
969
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.host, '192.168.178.2');",
970
970
  "err": {},
971
- "uuid": "97d0bee2-8a7d-4167-89f1-bb201b2d5608",
972
- "parentUUID": "6cccc3dc-bdc2-4108-b669-79743562beef",
971
+ "uuid": "b843246a-92a2-434e-95ad-f2603608dac4",
972
+ "parentUUID": "0a71b4aa-1ef4-45e8-82ad-c6f6d91bd4e8",
973
973
  "isHook": false,
974
974
  "skipped": false
975
975
  }
976
976
  ],
977
977
  "suites": [],
978
978
  "passes": [
979
- "97d0bee2-8a7d-4167-89f1-bb201b2d5608"
979
+ "b843246a-92a2-434e-95ad-f2603608dac4"
980
980
  ],
981
981
  "failures": [],
982
982
  "pending": [],
@@ -987,7 +987,7 @@
987
987
  "_timeout": 2000
988
988
  },
989
989
  {
990
- "uuid": "5a5f0343-d41e-4dfb-b8be-1076d760d05a",
990
+ "uuid": "15096f32-2253-416e-9c48-80995f9b8963",
991
991
  "title": "get id()",
992
992
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
993
993
  "file": "/test/device.ts",
@@ -1007,15 +1007,15 @@
1007
1007
  "context": null,
1008
1008
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert.strictEqual(device.id, '*****');",
1009
1009
  "err": {},
1010
- "uuid": "68a5c118-8423-485b-932b-4fe6630472a2",
1011
- "parentUUID": "5a5f0343-d41e-4dfb-b8be-1076d760d05a",
1010
+ "uuid": "0d83e81b-f1bb-461f-8df3-056b053a6f47",
1011
+ "parentUUID": "15096f32-2253-416e-9c48-80995f9b8963",
1012
1012
  "isHook": false,
1013
1013
  "skipped": false
1014
1014
  }
1015
1015
  ],
1016
1016
  "suites": [],
1017
1017
  "passes": [
1018
- "68a5c118-8423-485b-932b-4fe6630472a2"
1018
+ "0d83e81b-f1bb-461f-8df3-056b053a6f47"
1019
1019
  ],
1020
1020
  "failures": [],
1021
1021
  "pending": [],
@@ -1026,7 +1026,7 @@
1026
1026
  "_timeout": 2000
1027
1027
  },
1028
1028
  {
1029
- "uuid": "352b3c0c-d61d-437b-91ef-e2d02b07c02f",
1029
+ "uuid": "f966a364-0fc5-4619-924f-6acc185abb6a",
1030
1030
  "title": "get protocol()",
1031
1031
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1032
1032
  "file": "/test/device.ts",
@@ -1046,15 +1046,15 @@
1046
1046
  "context": null,
1047
1047
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: NodePyATVProtocol.airplay\n});\nassert.strictEqual(device.protocol, NodePyATVProtocol.airplay);",
1048
1048
  "err": {},
1049
- "uuid": "b893de2b-c6b8-494b-8c28-2b16e6651450",
1050
- "parentUUID": "352b3c0c-d61d-437b-91ef-e2d02b07c02f",
1049
+ "uuid": "cc2e538c-eccb-44ea-a4b7-02b79eda2918",
1050
+ "parentUUID": "f966a364-0fc5-4619-924f-6acc185abb6a",
1051
1051
  "isHook": false,
1052
1052
  "skipped": false
1053
1053
  }
1054
1054
  ],
1055
1055
  "suites": [],
1056
1056
  "passes": [
1057
- "b893de2b-c6b8-494b-8c28-2b16e6651450"
1057
+ "cc2e538c-eccb-44ea-a4b7-02b79eda2918"
1058
1058
  ],
1059
1059
  "failures": [],
1060
1060
  "pending": [],
@@ -1065,7 +1065,7 @@
1065
1065
  "_timeout": 2000
1066
1066
  },
1067
1067
  {
1068
- "uuid": "27a150b1-2035-4b70-8118-fc8fd7964ad8",
1068
+ "uuid": "0a785b11-a3bb-4bac-8a10-0547c35ae88d",
1069
1069
  "title": "get model()",
1070
1070
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1071
1071
  "file": "/test/device.ts",
@@ -1085,8 +1085,8 @@
1085
1085
  "context": null,
1086
1086
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n model: 'Gen4K'\n});\nassert.strictEqual(device.model, 'Gen4K');",
1087
1087
  "err": {},
1088
- "uuid": "ff12d3ae-3a36-4b45-9219-6f086b8e127a",
1089
- "parentUUID": "27a150b1-2035-4b70-8118-fc8fd7964ad8",
1088
+ "uuid": "de2e54f1-4505-407b-a35c-b00218154e74",
1089
+ "parentUUID": "0a785b11-a3bb-4bac-8a10-0547c35ae88d",
1090
1090
  "isHook": false,
1091
1091
  "skipped": false
1092
1092
  },
@@ -1103,16 +1103,16 @@
1103
1103
  "context": null,
1104
1104
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.model, undefined);",
1105
1105
  "err": {},
1106
- "uuid": "6436254b-ff7e-4664-82a3-597ec7b637f3",
1107
- "parentUUID": "27a150b1-2035-4b70-8118-fc8fd7964ad8",
1106
+ "uuid": "54d3007d-74c2-43c8-a06d-7c836c28eb12",
1107
+ "parentUUID": "0a785b11-a3bb-4bac-8a10-0547c35ae88d",
1108
1108
  "isHook": false,
1109
1109
  "skipped": false
1110
1110
  }
1111
1111
  ],
1112
1112
  "suites": [],
1113
1113
  "passes": [
1114
- "ff12d3ae-3a36-4b45-9219-6f086b8e127a",
1115
- "6436254b-ff7e-4664-82a3-597ec7b637f3"
1114
+ "de2e54f1-4505-407b-a35c-b00218154e74",
1115
+ "54d3007d-74c2-43c8-a06d-7c836c28eb12"
1116
1116
  ],
1117
1117
  "failures": [],
1118
1118
  "pending": [],
@@ -1123,7 +1123,7 @@
1123
1123
  "_timeout": 2000
1124
1124
  },
1125
1125
  {
1126
- "uuid": "82c53735-2ee1-4cf6-97bb-f60a1fd7e552",
1126
+ "uuid": "69476c32-5979-4484-bc3e-0e21a4405622",
1127
1127
  "title": "get modelName()",
1128
1128
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1129
1129
  "file": "/test/device.ts",
@@ -1143,8 +1143,8 @@
1143
1143
  "context": null,
1144
1144
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n modelName: 'Apple TV 4K'\n});\nassert.strictEqual(device.modelName, 'Apple TV 4K');",
1145
1145
  "err": {},
1146
- "uuid": "e16f874c-96ca-47d7-a8f1-462c88c17316",
1147
- "parentUUID": "82c53735-2ee1-4cf6-97bb-f60a1fd7e552",
1146
+ "uuid": "84bb8984-a15d-4348-8026-59918791e6be",
1147
+ "parentUUID": "69476c32-5979-4484-bc3e-0e21a4405622",
1148
1148
  "isHook": false,
1149
1149
  "skipped": false
1150
1150
  },
@@ -1161,16 +1161,16 @@
1161
1161
  "context": null,
1162
1162
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.modelName, undefined);",
1163
1163
  "err": {},
1164
- "uuid": "cb1c5bdd-209a-4bf2-8113-8fe92e064c77",
1165
- "parentUUID": "82c53735-2ee1-4cf6-97bb-f60a1fd7e552",
1164
+ "uuid": "a1fa43e2-1c90-41e3-88b7-8b14f9e0b178",
1165
+ "parentUUID": "69476c32-5979-4484-bc3e-0e21a4405622",
1166
1166
  "isHook": false,
1167
1167
  "skipped": false
1168
1168
  }
1169
1169
  ],
1170
1170
  "suites": [],
1171
1171
  "passes": [
1172
- "e16f874c-96ca-47d7-a8f1-462c88c17316",
1173
- "cb1c5bdd-209a-4bf2-8113-8fe92e064c77"
1172
+ "84bb8984-a15d-4348-8026-59918791e6be",
1173
+ "a1fa43e2-1c90-41e3-88b7-8b14f9e0b178"
1174
1174
  ],
1175
1175
  "failures": [],
1176
1176
  "pending": [],
@@ -1181,7 +1181,7 @@
1181
1181
  "_timeout": 2000
1182
1182
  },
1183
1183
  {
1184
- "uuid": "82542122-76a9-4d13-b695-1180a27f5b39",
1184
+ "uuid": "3359180c-daa5-4a97-aa46-a9322f516fce",
1185
1185
  "title": "get os()",
1186
1186
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1187
1187
  "file": "/test/device.ts",
@@ -1201,8 +1201,8 @@
1201
1201
  "context": null,
1202
1202
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n os: 'TvOS'\n});\nassert.strictEqual(device.os, 'TvOS');",
1203
1203
  "err": {},
1204
- "uuid": "54c5ad9e-a831-4d95-ab96-be6299b474e2",
1205
- "parentUUID": "82542122-76a9-4d13-b695-1180a27f5b39",
1204
+ "uuid": "fb5d22b7-e311-40e8-bcc6-7fab961a968b",
1205
+ "parentUUID": "3359180c-daa5-4a97-aa46-a9322f516fce",
1206
1206
  "isHook": false,
1207
1207
  "skipped": false
1208
1208
  },
@@ -1219,16 +1219,16 @@
1219
1219
  "context": null,
1220
1220
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.os, undefined);",
1221
1221
  "err": {},
1222
- "uuid": "628172f1-916a-4bd9-8c9c-7a0987bc5b89",
1223
- "parentUUID": "82542122-76a9-4d13-b695-1180a27f5b39",
1222
+ "uuid": "ef255fce-0d2f-4de6-a88f-1a15db69a33f",
1223
+ "parentUUID": "3359180c-daa5-4a97-aa46-a9322f516fce",
1224
1224
  "isHook": false,
1225
1225
  "skipped": false
1226
1226
  }
1227
1227
  ],
1228
1228
  "suites": [],
1229
1229
  "passes": [
1230
- "54c5ad9e-a831-4d95-ab96-be6299b474e2",
1231
- "628172f1-916a-4bd9-8c9c-7a0987bc5b89"
1230
+ "fb5d22b7-e311-40e8-bcc6-7fab961a968b",
1231
+ "ef255fce-0d2f-4de6-a88f-1a15db69a33f"
1232
1232
  ],
1233
1233
  "failures": [],
1234
1234
  "pending": [],
@@ -1239,7 +1239,7 @@
1239
1239
  "_timeout": 2000
1240
1240
  },
1241
1241
  {
1242
- "uuid": "b09fd1b6-ca20-461a-9c43-2a72eb05a956",
1242
+ "uuid": "3710e143-6e71-484e-8f06-a19834ea640e",
1243
1243
  "title": "get version()",
1244
1244
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1245
1245
  "file": "/test/device.ts",
@@ -1259,8 +1259,8 @@
1259
1259
  "context": null,
1260
1260
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n version: '15.5.1'\n});\nassert.strictEqual(device.version, '15.5.1');",
1261
1261
  "err": {},
1262
- "uuid": "8d7c7a1c-736d-4662-a63d-77bd817beb59",
1263
- "parentUUID": "b09fd1b6-ca20-461a-9c43-2a72eb05a956",
1262
+ "uuid": "b8823560-f214-4a71-aa53-d2221547dc74",
1263
+ "parentUUID": "3710e143-6e71-484e-8f06-a19834ea640e",
1264
1264
  "isHook": false,
1265
1265
  "skipped": false
1266
1266
  },
@@ -1277,16 +1277,16 @@
1277
1277
  "context": null,
1278
1278
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.version, undefined);",
1279
1279
  "err": {},
1280
- "uuid": "f79c1c92-4b02-47df-98e5-a1d61fcfff58",
1281
- "parentUUID": "b09fd1b6-ca20-461a-9c43-2a72eb05a956",
1280
+ "uuid": "a285f078-f481-4677-9815-85c5cb48ec14",
1281
+ "parentUUID": "3710e143-6e71-484e-8f06-a19834ea640e",
1282
1282
  "isHook": false,
1283
1283
  "skipped": false
1284
1284
  }
1285
1285
  ],
1286
1286
  "suites": [],
1287
1287
  "passes": [
1288
- "8d7c7a1c-736d-4662-a63d-77bd817beb59",
1289
- "f79c1c92-4b02-47df-98e5-a1d61fcfff58"
1288
+ "b8823560-f214-4a71-aa53-d2221547dc74",
1289
+ "a285f078-f481-4677-9815-85c5cb48ec14"
1290
1290
  ],
1291
1291
  "failures": [],
1292
1292
  "pending": [],
@@ -1297,7 +1297,7 @@
1297
1297
  "_timeout": 2000
1298
1298
  },
1299
1299
  {
1300
- "uuid": "581dd638-0149-4b5f-bbb3-01050a04e97e",
1300
+ "uuid": "9f432411-7e47-44b2-95fe-e7a532a2389b",
1301
1301
  "title": "get services()",
1302
1302
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1303
1303
  "file": "/test/device.ts",
@@ -1317,8 +1317,8 @@
1317
1317
  "context": null,
1318
1318
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81',\n id: 'xxx',\n services: [\n {\n protocol: NodePyATVProtocol.mrp,\n port: 49152\n },\n {\n protocol: NodePyATVProtocol.airplay,\n port: 7000\n }\n ]\n});\nassert.deepStrictEqual(device.services, [\n {\n protocol: 'mrp',\n port: 49152\n },\n {\n protocol: 'airplay',\n port: 7000\n }\n]);",
1319
1319
  "err": {},
1320
- "uuid": "91e9a9b9-fd7b-4309-9a8c-be903b18e03d",
1321
- "parentUUID": "581dd638-0149-4b5f-bbb3-01050a04e97e",
1320
+ "uuid": "821f9f9c-183d-4f1d-8055-c06601a1c7f5",
1321
+ "parentUUID": "9f432411-7e47-44b2-95fe-e7a532a2389b",
1322
1322
  "isHook": false,
1323
1323
  "skipped": false
1324
1324
  },
@@ -1335,16 +1335,16 @@
1335
1335
  "context": null,
1336
1336
  "code": "const device = new NodePyATVDevice({\n name: 'Vardagsrum',\n host: '10.0.10.81'\n});\nassert.strictEqual(device.services, undefined);",
1337
1337
  "err": {},
1338
- "uuid": "327e92c3-081d-4b38-882c-59defb22e33b",
1339
- "parentUUID": "581dd638-0149-4b5f-bbb3-01050a04e97e",
1338
+ "uuid": "bc8b9fa0-470e-417d-95ff-9ca792f2f093",
1339
+ "parentUUID": "9f432411-7e47-44b2-95fe-e7a532a2389b",
1340
1340
  "isHook": false,
1341
1341
  "skipped": false
1342
1342
  }
1343
1343
  ],
1344
1344
  "suites": [],
1345
1345
  "passes": [
1346
- "91e9a9b9-fd7b-4309-9a8c-be903b18e03d",
1347
- "327e92c3-081d-4b38-882c-59defb22e33b"
1346
+ "821f9f9c-183d-4f1d-8055-c06601a1c7f5",
1347
+ "bc8b9fa0-470e-417d-95ff-9ca792f2f093"
1348
1348
  ],
1349
1349
  "failures": [],
1350
1350
  "pending": [],
@@ -1355,7 +1355,7 @@
1355
1355
  "_timeout": 2000
1356
1356
  },
1357
1357
  {
1358
- "uuid": "2ccd470d-3568-4048-a981-7ee88e05f5f0",
1358
+ "uuid": "a6d1f3b8-13d2-4c96-806b-06b0e71c5a0a",
1359
1359
  "title": "get debug()",
1360
1360
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1361
1361
  "file": "/test/device.ts",
@@ -1375,8 +1375,8 @@
1375
1375
  "context": null,
1376
1376
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);",
1377
1377
  "err": {},
1378
- "uuid": "1125f266-f2e6-4dfb-bbda-427fa64e098d",
1379
- "parentUUID": "2ccd470d-3568-4048-a981-7ee88e05f5f0",
1378
+ "uuid": "33fee7cf-0722-4469-81e2-7b5621a0cfbb",
1379
+ "parentUUID": "a6d1f3b8-13d2-4c96-806b-06b0e71c5a0a",
1380
1380
  "isHook": false,
1381
1381
  "skipped": false
1382
1382
  },
@@ -1393,8 +1393,8 @@
1393
1393
  "context": null,
1394
1394
  "code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert.strictEqual(device.debug, fn);",
1395
1395
  "err": {},
1396
- "uuid": "61557cd7-ed10-4fd3-a550-35aa073906f9",
1397
- "parentUUID": "2ccd470d-3568-4048-a981-7ee88e05f5f0",
1396
+ "uuid": "ed8028c2-0c67-4d1b-822b-e41ca796dd2e",
1397
+ "parentUUID": "a6d1f3b8-13d2-4c96-806b-06b0e71c5a0a",
1398
1398
  "isHook": false,
1399
1399
  "skipped": false
1400
1400
  },
@@ -1411,17 +1411,17 @@
1411
1411
  "context": null,
1412
1412
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);",
1413
1413
  "err": {},
1414
- "uuid": "35c9d1c9-f5ba-4328-9207-38dff2f09225",
1415
- "parentUUID": "2ccd470d-3568-4048-a981-7ee88e05f5f0",
1414
+ "uuid": "b2ab8fc6-e14e-43d3-b430-9b40c6352d93",
1415
+ "parentUUID": "a6d1f3b8-13d2-4c96-806b-06b0e71c5a0a",
1416
1416
  "isHook": false,
1417
1417
  "skipped": false
1418
1418
  }
1419
1419
  ],
1420
1420
  "suites": [],
1421
1421
  "passes": [
1422
- "1125f266-f2e6-4dfb-bbda-427fa64e098d",
1423
- "61557cd7-ed10-4fd3-a550-35aa073906f9",
1424
- "35c9d1c9-f5ba-4328-9207-38dff2f09225"
1422
+ "33fee7cf-0722-4469-81e2-7b5621a0cfbb",
1423
+ "ed8028c2-0c67-4d1b-822b-e41ca796dd2e",
1424
+ "b2ab8fc6-e14e-43d3-b430-9b40c6352d93"
1425
1425
  ],
1426
1426
  "failures": [],
1427
1427
  "pending": [],
@@ -1432,7 +1432,7 @@
1432
1432
  "_timeout": 2000
1433
1433
  },
1434
1434
  {
1435
- "uuid": "bee9642e-461b-43f6-a351-2fe245c6cdec",
1435
+ "uuid": "b28057ca-caa1-4aef-b238-a111fe9f67f2",
1436
1436
  "title": "set debug()",
1437
1437
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1438
1438
  "file": "/test/device.ts",
@@ -1452,8 +1452,8 @@
1452
1452
  "context": null,
1453
1453
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert.strictEqual(device.debug, true);",
1454
1454
  "err": {},
1455
- "uuid": "6c1d9829-3f9b-4aec-bb55-dc25a859afda",
1456
- "parentUUID": "bee9642e-461b-43f6-a351-2fe245c6cdec",
1455
+ "uuid": "e6432155-fb47-48bd-8523-4c7382b016fc",
1456
+ "parentUUID": "b28057ca-caa1-4aef-b238-a111fe9f67f2",
1457
1457
  "isHook": false,
1458
1458
  "skipped": false
1459
1459
  },
@@ -1470,8 +1470,8 @@
1470
1470
  "context": null,
1471
1471
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
1472
1472
  "err": {},
1473
- "uuid": "e3b412bd-4b0f-4a97-9d06-2718d3178a19",
1474
- "parentUUID": "bee9642e-461b-43f6-a351-2fe245c6cdec",
1473
+ "uuid": "2bd741a1-3a7f-4820-bdc5-30dd95093b67",
1474
+ "parentUUID": "b28057ca-caa1-4aef-b238-a111fe9f67f2",
1475
1475
  "isHook": false,
1476
1476
  "skipped": false
1477
1477
  },
@@ -1479,7 +1479,7 @@
1479
1479
  "title": "should work for debug = undefined",
1480
1480
  "fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
1481
1481
  "timedOut": false,
1482
- "duration": 1,
1482
+ "duration": 0,
1483
1483
  "state": "passed",
1484
1484
  "speed": "fast",
1485
1485
  "pass": true,
@@ -1488,8 +1488,8 @@
1488
1488
  "context": null,
1489
1489
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
1490
1490
  "err": {},
1491
- "uuid": "3cef61fc-f587-4c36-82e3-5558ed7d3dfb",
1492
- "parentUUID": "bee9642e-461b-43f6-a351-2fe245c6cdec",
1491
+ "uuid": "31354000-ce6d-43e3-b733-ab5511da3d88",
1492
+ "parentUUID": "b28057ca-caa1-4aef-b238-a111fe9f67f2",
1493
1493
  "isHook": false,
1494
1494
  "skipped": false
1495
1495
  },
@@ -1506,29 +1506,29 @@
1506
1506
  "context": null,
1507
1507
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nassert.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert.strictEqual(device.debug, fn);",
1508
1508
  "err": {},
1509
- "uuid": "a9ff1cf4-98af-4c0d-9b3c-72adad43d884",
1510
- "parentUUID": "bee9642e-461b-43f6-a351-2fe245c6cdec",
1509
+ "uuid": "9b86160a-fd23-4e52-ba95-76444ca891b4",
1510
+ "parentUUID": "b28057ca-caa1-4aef-b238-a111fe9f67f2",
1511
1511
  "isHook": false,
1512
1512
  "skipped": false
1513
1513
  }
1514
1514
  ],
1515
1515
  "suites": [],
1516
1516
  "passes": [
1517
- "6c1d9829-3f9b-4aec-bb55-dc25a859afda",
1518
- "e3b412bd-4b0f-4a97-9d06-2718d3178a19",
1519
- "3cef61fc-f587-4c36-82e3-5558ed7d3dfb",
1520
- "a9ff1cf4-98af-4c0d-9b3c-72adad43d884"
1517
+ "e6432155-fb47-48bd-8523-4c7382b016fc",
1518
+ "2bd741a1-3a7f-4820-bdc5-30dd95093b67",
1519
+ "31354000-ce6d-43e3-b733-ab5511da3d88",
1520
+ "9b86160a-fd23-4e52-ba95-76444ca891b4"
1521
1521
  ],
1522
1522
  "failures": [],
1523
1523
  "pending": [],
1524
1524
  "skipped": [],
1525
- "duration": 1,
1525
+ "duration": 0,
1526
1526
  "root": false,
1527
1527
  "rootEmpty": false,
1528
1528
  "_timeout": 2000
1529
1529
  },
1530
1530
  {
1531
- "uuid": "ca63bf8e-8ace-49d6-b897-9311720bf671",
1531
+ "uuid": "034e787a-5f1c-45c6-8562-58704d4f7825",
1532
1532
  "title": "toJSON()",
1533
1533
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1534
1534
  "file": "/test/device.ts",
@@ -1548,8 +1548,8 @@
1548
1548
  "context": null,
1549
1549
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});\nassert.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});",
1550
1550
  "err": {},
1551
- "uuid": "ff709b67-dd86-4732-a111-c17c086c5317",
1552
- "parentUUID": "ca63bf8e-8ace-49d6-b897-9311720bf671",
1551
+ "uuid": "71ada2da-e9b0-4be9-b592-13926ba1abc2",
1552
+ "parentUUID": "034e787a-5f1c-45c6-8562-58704d4f7825",
1553
1553
  "isHook": false,
1554
1554
  "skipped": false
1555
1555
  },
@@ -1566,16 +1566,16 @@
1566
1566
  "context": null,
1567
1567
  "code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n};\nconst deviceA = new NodePyATVDevice(config);\nconst deviceB = new NodePyATVDevice(deviceA.toJSON());\nassert.deepEqual(deviceB.toJSON(), config);",
1568
1568
  "err": {},
1569
- "uuid": "b980ddcf-f9f3-43ba-aaad-d67713376888",
1570
- "parentUUID": "ca63bf8e-8ace-49d6-b897-9311720bf671",
1569
+ "uuid": "74ba96a2-c1f4-46b8-93f6-fed7953d770b",
1570
+ "parentUUID": "034e787a-5f1c-45c6-8562-58704d4f7825",
1571
1571
  "isHook": false,
1572
1572
  "skipped": false
1573
1573
  }
1574
1574
  ],
1575
1575
  "suites": [],
1576
1576
  "passes": [
1577
- "ff709b67-dd86-4732-a111-c17c086c5317",
1578
- "b980ddcf-f9f3-43ba-aaad-d67713376888"
1577
+ "71ada2da-e9b0-4be9-b592-13926ba1abc2",
1578
+ "74ba96a2-c1f4-46b8-93f6-fed7953d770b"
1579
1579
  ],
1580
1580
  "failures": [],
1581
1581
  "pending": [],
@@ -1586,7 +1586,7 @@
1586
1586
  "_timeout": 2000
1587
1587
  },
1588
1588
  {
1589
- "uuid": "12838220-d7ac-4f4d-b7fd-ebca5c46655c",
1589
+ "uuid": "86738136-a7a8-4bc2-8f5e-8409e6d1527a",
1590
1590
  "title": "toString()",
1591
1591
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1592
1592
  "file": "/test/device.ts",
@@ -1606,15 +1606,15 @@
1606
1606
  "context": null,
1607
1607
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
1608
1608
  "err": {},
1609
- "uuid": "21bd73cf-1686-4543-85fb-72f2fd3f431e",
1610
- "parentUUID": "12838220-d7ac-4f4d-b7fd-ebca5c46655c",
1609
+ "uuid": "b7e3ea26-11e4-430b-831e-638248f14ef8",
1610
+ "parentUUID": "86738136-a7a8-4bc2-8f5e-8409e6d1527a",
1611
1611
  "isHook": false,
1612
1612
  "skipped": false
1613
1613
  }
1614
1614
  ],
1615
1615
  "suites": [],
1616
1616
  "passes": [
1617
- "21bd73cf-1686-4543-85fb-72f2fd3f431e"
1617
+ "b7e3ea26-11e4-430b-831e-638248f14ef8"
1618
1618
  ],
1619
1619
  "failures": [],
1620
1620
  "pending": [],
@@ -1625,7 +1625,7 @@
1625
1625
  "_timeout": 2000
1626
1626
  },
1627
1627
  {
1628
- "uuid": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1628
+ "uuid": "118b591d-3685-43dd-a42a-628e783a67c1",
1629
1629
  "title": "getState()",
1630
1630
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1631
1631
  "file": "/test/device.ts",
@@ -1645,8 +1645,8 @@
1645
1645
  "context": null,
1646
1646
  "code": "",
1647
1647
  "err": {},
1648
- "uuid": "b82554cc-2fe2-429f-8203-c252a1e55b37",
1649
- "parentUUID": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1648
+ "uuid": "e1dade26-d723-4132-ac23-acf07c978318",
1649
+ "parentUUID": "118b591d-3685-43dd-a42a-628e783a67c1",
1650
1650
  "isHook": false,
1651
1651
  "skipped": false
1652
1652
  },
@@ -1663,8 +1663,8 @@
1663
1663
  "context": null,
1664
1664
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const result = yield device.getState();\n assert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
1665
1665
  "err": {},
1666
- "uuid": "ff06b1f4-30e6-4c83-90ad-dba6d3a21e09",
1667
- "parentUUID": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1666
+ "uuid": "969b7205-face-4350-8820-df5a1df9767e",
1667
+ "parentUUID": "118b591d-3685-43dd-a42a-628e783a67c1",
1668
1668
  "isHook": false,
1669
1669
  "skipped": false
1670
1670
  },
@@ -1681,8 +1681,8 @@
1681
1681
  "context": null,
1682
1682
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.getState();\n }), /Got pyatv Error: invalid credentials: 321/);\n});",
1683
1683
  "err": {},
1684
- "uuid": "4422e1f6-f02d-462b-8bbd-bef57e559c03",
1685
- "parentUUID": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1684
+ "uuid": "2da52240-fc44-4198-8172-78cb91add70e",
1685
+ "parentUUID": "118b591d-3685-43dd-a42a-628e783a67c1",
1686
1686
  "isHook": false,
1687
1687
  "skipped": false
1688
1688
  },
@@ -1699,8 +1699,8 @@
1699
1699
  "context": null,
1700
1700
  "code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: new Date().toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n const secondResult = yield device.getState();\n assert.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert.strictEqual(executions, 1);\n});",
1701
1701
  "err": {},
1702
- "uuid": "b6d1b639-287e-4f6d-81ab-c195dd8246ef",
1703
- "parentUUID": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1702
+ "uuid": "710385a9-f460-4709-9f61-b0a4eb895b75",
1703
+ "parentUUID": "118b591d-3685-43dd-a42a-628e783a67c1",
1704
1704
  "isHook": false,
1705
1705
  "skipped": false
1706
1706
  },
@@ -1708,7 +1708,7 @@
1708
1708
  "title": "should update the position if cache was used",
1709
1709
  "fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
1710
1710
  "timedOut": false,
1711
- "duration": 2,
1711
+ "duration": 1,
1712
1712
  "state": "passed",
1713
1713
  "speed": "fast",
1714
1714
  "pass": true,
@@ -1717,31 +1717,31 @@
1717
1717
  "context": null,
1718
1718
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date(new Date().getTime() - 1000).toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n assert.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert.ok(secondResult.position);\n assert.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
1719
1719
  "err": {},
1720
- "uuid": "fcea557f-91a8-4d11-93a4-7bae492c7e3d",
1721
- "parentUUID": "d39ca06b-2e2a-4d62-a8ac-fbddb5f8fe83",
1720
+ "uuid": "4616eb51-e464-4bb6-b686-efc8bd028261",
1721
+ "parentUUID": "118b591d-3685-43dd-a42a-628e783a67c1",
1722
1722
  "isHook": false,
1723
1723
  "skipped": false
1724
1724
  }
1725
1725
  ],
1726
1726
  "suites": [],
1727
1727
  "passes": [
1728
- "ff06b1f4-30e6-4c83-90ad-dba6d3a21e09",
1729
- "4422e1f6-f02d-462b-8bbd-bef57e559c03",
1730
- "b6d1b639-287e-4f6d-81ab-c195dd8246ef",
1731
- "fcea557f-91a8-4d11-93a4-7bae492c7e3d"
1728
+ "969b7205-face-4350-8820-df5a1df9767e",
1729
+ "2da52240-fc44-4198-8172-78cb91add70e",
1730
+ "710385a9-f460-4709-9f61-b0a4eb895b75",
1731
+ "4616eb51-e464-4bb6-b686-efc8bd028261"
1732
1732
  ],
1733
1733
  "failures": [],
1734
1734
  "pending": [
1735
- "b82554cc-2fe2-429f-8203-c252a1e55b37"
1735
+ "e1dade26-d723-4132-ac23-acf07c978318"
1736
1736
  ],
1737
1737
  "skipped": [],
1738
- "duration": 6,
1738
+ "duration": 5,
1739
1739
  "root": false,
1740
1740
  "rootEmpty": false,
1741
1741
  "_timeout": 2000
1742
1742
  },
1743
1743
  {
1744
- "uuid": "a09283e8-a908-475f-b53d-86d18d78632b",
1744
+ "uuid": "3de93ba4-0a38-4cd0-afc0-27d74de5f7a8",
1745
1745
  "title": "clearState()",
1746
1746
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1747
1747
  "file": "/test/device.ts",
@@ -1761,15 +1761,15 @@
1761
1761
  "context": null,
1762
1762
  "code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n title: 'Solo: A Star Wars Story'\n });\n })\n });\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert.strictEqual(executions, 2);\n});",
1763
1763
  "err": {},
1764
- "uuid": "b6802ad6-11d7-42b1-999f-f89451448228",
1765
- "parentUUID": "a09283e8-a908-475f-b53d-86d18d78632b",
1764
+ "uuid": "8df7df08-0652-44d5-b446-88caafe0b99c",
1765
+ "parentUUID": "3de93ba4-0a38-4cd0-afc0-27d74de5f7a8",
1766
1766
  "isHook": false,
1767
1767
  "skipped": false
1768
1768
  }
1769
1769
  ],
1770
1770
  "suites": [],
1771
1771
  "passes": [
1772
- "b6802ad6-11d7-42b1-999f-f89451448228"
1772
+ "8df7df08-0652-44d5-b446-88caafe0b99c"
1773
1773
  ],
1774
1774
  "failures": [],
1775
1775
  "pending": [],
@@ -1780,7 +1780,7 @@
1780
1780
  "_timeout": 2000
1781
1781
  },
1782
1782
  {
1783
- "uuid": "de2f4b51-1bbb-4afa-b303-49fb0f9821aa",
1783
+ "uuid": "0feb78f5-8bd6-40eb-873a-cdb09ad4fd5d",
1784
1784
  "title": "getDateTime()",
1785
1785
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1786
1786
  "file": "/test/device.ts",
@@ -1800,15 +1800,15 @@
1800
1800
  "context": null,
1801
1801
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert.ok(result instanceof Date);\n});",
1802
1802
  "err": {},
1803
- "uuid": "a92b4bd0-bcb7-435e-8ef4-f3b057c9745f",
1804
- "parentUUID": "de2f4b51-1bbb-4afa-b303-49fb0f9821aa",
1803
+ "uuid": "5596f224-5390-46c4-80ea-6fbe3efad94f",
1804
+ "parentUUID": "0feb78f5-8bd6-40eb-873a-cdb09ad4fd5d",
1805
1805
  "isHook": false,
1806
1806
  "skipped": false
1807
1807
  }
1808
1808
  ],
1809
1809
  "suites": [],
1810
1810
  "passes": [
1811
- "a92b4bd0-bcb7-435e-8ef4-f3b057c9745f"
1811
+ "5596f224-5390-46c4-80ea-6fbe3efad94f"
1812
1812
  ],
1813
1813
  "failures": [],
1814
1814
  "pending": [],
@@ -1819,7 +1819,7 @@
1819
1819
  "_timeout": 2000
1820
1820
  },
1821
1821
  {
1822
- "uuid": "24632017-f9dd-4e44-98e8-6e2e3954a755",
1822
+ "uuid": "0915b9a4-54ec-4f69-8f5f-3f925e7b04b9",
1823
1823
  "title": "getHash()",
1824
1824
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1825
1825
  "file": "/test/device.ts",
@@ -1830,7 +1830,7 @@
1830
1830
  "title": "should work",
1831
1831
  "fullTitle": "NodePyATVDevice getHash() should work",
1832
1832
  "timedOut": false,
1833
- "duration": 0,
1833
+ "duration": 2,
1834
1834
  "state": "passed",
1835
1835
  "speed": "fast",
1836
1836
  "pass": true,
@@ -1839,26 +1839,26 @@
1839
1839
  "context": null,
1840
1840
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert.strictEqual(result, '12345');\n});",
1841
1841
  "err": {},
1842
- "uuid": "6d75d3d6-4831-4536-8326-1c0fcc5178fe",
1843
- "parentUUID": "24632017-f9dd-4e44-98e8-6e2e3954a755",
1842
+ "uuid": "57bef644-cb03-41ad-9e54-63b68ad3baf7",
1843
+ "parentUUID": "0915b9a4-54ec-4f69-8f5f-3f925e7b04b9",
1844
1844
  "isHook": false,
1845
1845
  "skipped": false
1846
1846
  }
1847
1847
  ],
1848
1848
  "suites": [],
1849
1849
  "passes": [
1850
- "6d75d3d6-4831-4536-8326-1c0fcc5178fe"
1850
+ "57bef644-cb03-41ad-9e54-63b68ad3baf7"
1851
1851
  ],
1852
1852
  "failures": [],
1853
1853
  "pending": [],
1854
1854
  "skipped": [],
1855
- "duration": 0,
1855
+ "duration": 2,
1856
1856
  "root": false,
1857
1857
  "rootEmpty": false,
1858
1858
  "_timeout": 2000
1859
1859
  },
1860
1860
  {
1861
- "uuid": "f6874fbb-e7ab-4fb0-b1d2-7a9ffa233bbb",
1861
+ "uuid": "be56d1a5-3bb8-4387-875a-c99a794e4873",
1862
1862
  "title": "getMediaType()",
1863
1863
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1864
1864
  "file": "/test/device.ts",
@@ -1878,15 +1878,15 @@
1878
1878
  "context": null,
1879
1879
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert.deepStrictEqual(result, NodePyATVMediaType.video);\n assert.deepStrictEqual(result, 'video');\n});",
1880
1880
  "err": {},
1881
- "uuid": "a0acbf46-fed0-4eea-9848-eb26e3cc1555",
1882
- "parentUUID": "f6874fbb-e7ab-4fb0-b1d2-7a9ffa233bbb",
1881
+ "uuid": "c9b0bcf2-3136-4505-900d-0b586cab755f",
1882
+ "parentUUID": "be56d1a5-3bb8-4387-875a-c99a794e4873",
1883
1883
  "isHook": false,
1884
1884
  "skipped": false
1885
1885
  }
1886
1886
  ],
1887
1887
  "suites": [],
1888
1888
  "passes": [
1889
- "a0acbf46-fed0-4eea-9848-eb26e3cc1555"
1889
+ "c9b0bcf2-3136-4505-900d-0b586cab755f"
1890
1890
  ],
1891
1891
  "failures": [],
1892
1892
  "pending": [],
@@ -1897,7 +1897,7 @@
1897
1897
  "_timeout": 2000
1898
1898
  },
1899
1899
  {
1900
- "uuid": "f109857a-478c-41a6-833f-da397a23f29e",
1900
+ "uuid": "f2ce3c9a-1c8f-41c6-b368-ab346ac93411",
1901
1901
  "title": "getDeviceState()",
1902
1902
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1903
1903
  "file": "/test/device.ts",
@@ -1917,15 +1917,15 @@
1917
1917
  "context": null,
1918
1918
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert.deepStrictEqual(result, NodePyATVDeviceState.seeking);\n assert.deepStrictEqual(result, 'seeking');\n});",
1919
1919
  "err": {},
1920
- "uuid": "64f7ff4b-5449-4fa8-9560-ec6b3ec39804",
1921
- "parentUUID": "f109857a-478c-41a6-833f-da397a23f29e",
1920
+ "uuid": "09dbc224-311c-4a4f-83e3-83ddf2e7904c",
1921
+ "parentUUID": "f2ce3c9a-1c8f-41c6-b368-ab346ac93411",
1922
1922
  "isHook": false,
1923
1923
  "skipped": false
1924
1924
  }
1925
1925
  ],
1926
1926
  "suites": [],
1927
1927
  "passes": [
1928
- "64f7ff4b-5449-4fa8-9560-ec6b3ec39804"
1928
+ "09dbc224-311c-4a4f-83e3-83ddf2e7904c"
1929
1929
  ],
1930
1930
  "failures": [],
1931
1931
  "pending": [],
@@ -1936,7 +1936,7 @@
1936
1936
  "_timeout": 2000
1937
1937
  },
1938
1938
  {
1939
- "uuid": "4610442d-805f-4ceb-8a3a-d45153f7eceb",
1939
+ "uuid": "a033426b-3127-44a9-993e-485b2b15d144",
1940
1940
  "title": "getTitle()",
1941
1941
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1942
1942
  "file": "/test/device.ts",
@@ -1947,7 +1947,7 @@
1947
1947
  "title": "should work",
1948
1948
  "fullTitle": "NodePyATVDevice getTitle() should work",
1949
1949
  "timedOut": false,
1950
- "duration": 1,
1950
+ "duration": 2,
1951
1951
  "state": "passed",
1952
1952
  "speed": "fast",
1953
1953
  "pass": true,
@@ -1956,26 +1956,26 @@
1956
1956
  "context": null,
1957
1957
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert.strictEqual(result, 'My Movie');\n});",
1958
1958
  "err": {},
1959
- "uuid": "eba1cfe2-ed70-4f8a-9272-72e1fc7691e0",
1960
- "parentUUID": "4610442d-805f-4ceb-8a3a-d45153f7eceb",
1959
+ "uuid": "9705741a-afb9-4721-9267-7bb13aecb67c",
1960
+ "parentUUID": "a033426b-3127-44a9-993e-485b2b15d144",
1961
1961
  "isHook": false,
1962
1962
  "skipped": false
1963
1963
  }
1964
1964
  ],
1965
1965
  "suites": [],
1966
1966
  "passes": [
1967
- "eba1cfe2-ed70-4f8a-9272-72e1fc7691e0"
1967
+ "9705741a-afb9-4721-9267-7bb13aecb67c"
1968
1968
  ],
1969
1969
  "failures": [],
1970
1970
  "pending": [],
1971
1971
  "skipped": [],
1972
- "duration": 1,
1972
+ "duration": 2,
1973
1973
  "root": false,
1974
1974
  "rootEmpty": false,
1975
1975
  "_timeout": 2000
1976
1976
  },
1977
1977
  {
1978
- "uuid": "f1ae7f96-22ad-44ed-8267-a9ba1ec5d726",
1978
+ "uuid": "5c096a16-983a-4796-bf1b-78902feb9fc3",
1979
1979
  "title": "getArtist()",
1980
1980
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1981
1981
  "file": "/test/device.ts",
@@ -1995,15 +1995,15 @@
1995
1995
  "context": null,
1996
1996
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert.strictEqual(result, 'My Artist');\n});",
1997
1997
  "err": {},
1998
- "uuid": "49ec8171-a99c-4c23-aa3c-a38869d28bc9",
1999
- "parentUUID": "f1ae7f96-22ad-44ed-8267-a9ba1ec5d726",
1998
+ "uuid": "8765bc44-b90b-42c2-82db-aed352922e2f",
1999
+ "parentUUID": "5c096a16-983a-4796-bf1b-78902feb9fc3",
2000
2000
  "isHook": false,
2001
2001
  "skipped": false
2002
2002
  }
2003
2003
  ],
2004
2004
  "suites": [],
2005
2005
  "passes": [
2006
- "49ec8171-a99c-4c23-aa3c-a38869d28bc9"
2006
+ "8765bc44-b90b-42c2-82db-aed352922e2f"
2007
2007
  ],
2008
2008
  "failures": [],
2009
2009
  "pending": [],
@@ -2014,7 +2014,7 @@
2014
2014
  "_timeout": 2000
2015
2015
  },
2016
2016
  {
2017
- "uuid": "a75245d8-8fc4-4042-8ab3-6b9726995096",
2017
+ "uuid": "e9606c3e-d5eb-405e-a52b-42338a78a8b6",
2018
2018
  "title": "getAlbum()",
2019
2019
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2020
2020
  "file": "/test/device.ts",
@@ -2034,15 +2034,15 @@
2034
2034
  "context": null,
2035
2035
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert.strictEqual(result, 'My ALbum');\n});",
2036
2036
  "err": {},
2037
- "uuid": "ab915304-5a4c-4ec7-affb-2292a3b075cf",
2038
- "parentUUID": "a75245d8-8fc4-4042-8ab3-6b9726995096",
2037
+ "uuid": "377ddf49-4643-48b5-98fa-32d8b19a0bb6",
2038
+ "parentUUID": "e9606c3e-d5eb-405e-a52b-42338a78a8b6",
2039
2039
  "isHook": false,
2040
2040
  "skipped": false
2041
2041
  }
2042
2042
  ],
2043
2043
  "suites": [],
2044
2044
  "passes": [
2045
- "ab915304-5a4c-4ec7-affb-2292a3b075cf"
2045
+ "377ddf49-4643-48b5-98fa-32d8b19a0bb6"
2046
2046
  ],
2047
2047
  "failures": [],
2048
2048
  "pending": [],
@@ -2053,7 +2053,7 @@
2053
2053
  "_timeout": 2000
2054
2054
  },
2055
2055
  {
2056
- "uuid": "1a2335e2-7401-487d-8006-0f2ce135ec66",
2056
+ "uuid": "b75ec991-64ff-4c57-a6ad-743ba049a955",
2057
2057
  "title": "getGenre()",
2058
2058
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2059
2059
  "file": "/test/device.ts",
@@ -2073,15 +2073,15 @@
2073
2073
  "context": null,
2074
2074
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert.strictEqual(result, 'My Genre');\n});",
2075
2075
  "err": {},
2076
- "uuid": "df310e9e-1948-4a04-aa1e-8676e58b0313",
2077
- "parentUUID": "1a2335e2-7401-487d-8006-0f2ce135ec66",
2076
+ "uuid": "05b98b73-3ba1-4b57-86f5-69310d7bdb9f",
2077
+ "parentUUID": "b75ec991-64ff-4c57-a6ad-743ba049a955",
2078
2078
  "isHook": false,
2079
2079
  "skipped": false
2080
2080
  }
2081
2081
  ],
2082
2082
  "suites": [],
2083
2083
  "passes": [
2084
- "df310e9e-1948-4a04-aa1e-8676e58b0313"
2084
+ "05b98b73-3ba1-4b57-86f5-69310d7bdb9f"
2085
2085
  ],
2086
2086
  "failures": [],
2087
2087
  "pending": [],
@@ -2092,7 +2092,7 @@
2092
2092
  "_timeout": 2000
2093
2093
  },
2094
2094
  {
2095
- "uuid": "55a3abe0-e279-416a-85bb-997feb663aa2",
2095
+ "uuid": "d362cf35-fb17-4778-b4dc-133c154debac",
2096
2096
  "title": "getTotalTime()",
2097
2097
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2098
2098
  "file": "/test/device.ts",
@@ -2112,15 +2112,15 @@
2112
2112
  "context": null,
2113
2113
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert.strictEqual(result, 45);\n});",
2114
2114
  "err": {},
2115
- "uuid": "238e5583-77ad-483c-92ac-c3dbf45fc2c3",
2116
- "parentUUID": "55a3abe0-e279-416a-85bb-997feb663aa2",
2115
+ "uuid": "5390b814-7366-4dd8-b81c-b7f4c3189a4c",
2116
+ "parentUUID": "d362cf35-fb17-4778-b4dc-133c154debac",
2117
2117
  "isHook": false,
2118
2118
  "skipped": false
2119
2119
  }
2120
2120
  ],
2121
2121
  "suites": [],
2122
2122
  "passes": [
2123
- "238e5583-77ad-483c-92ac-c3dbf45fc2c3"
2123
+ "5390b814-7366-4dd8-b81c-b7f4c3189a4c"
2124
2124
  ],
2125
2125
  "failures": [],
2126
2126
  "pending": [],
@@ -2131,7 +2131,7 @@
2131
2131
  "_timeout": 2000
2132
2132
  },
2133
2133
  {
2134
- "uuid": "0f237af5-c669-4c46-912f-55eef1e4618b",
2134
+ "uuid": "cc43f801-f88b-4c1c-ace3-5d5ad1b823c2",
2135
2135
  "title": "getPosition()",
2136
2136
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2137
2137
  "file": "/test/device.ts",
@@ -2142,7 +2142,7 @@
2142
2142
  "title": "should work",
2143
2143
  "fullTitle": "NodePyATVDevice getPosition() should work",
2144
2144
  "timedOut": false,
2145
- "duration": 0,
2145
+ "duration": 2,
2146
2146
  "state": "passed",
2147
2147
  "speed": "fast",
2148
2148
  "pass": true,
@@ -2151,26 +2151,26 @@
2151
2151
  "context": null,
2152
2152
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert.strictEqual(result, 30);\n});",
2153
2153
  "err": {},
2154
- "uuid": "f6fb624a-c62c-4e07-84fa-31ce59086f97",
2155
- "parentUUID": "0f237af5-c669-4c46-912f-55eef1e4618b",
2154
+ "uuid": "942aaa5a-84c6-474f-abf6-b49c7f7c55d8",
2155
+ "parentUUID": "cc43f801-f88b-4c1c-ace3-5d5ad1b823c2",
2156
2156
  "isHook": false,
2157
2157
  "skipped": false
2158
2158
  }
2159
2159
  ],
2160
2160
  "suites": [],
2161
2161
  "passes": [
2162
- "f6fb624a-c62c-4e07-84fa-31ce59086f97"
2162
+ "942aaa5a-84c6-474f-abf6-b49c7f7c55d8"
2163
2163
  ],
2164
2164
  "failures": [],
2165
2165
  "pending": [],
2166
2166
  "skipped": [],
2167
- "duration": 0,
2167
+ "duration": 2,
2168
2168
  "root": false,
2169
2169
  "rootEmpty": false,
2170
2170
  "_timeout": 2000
2171
2171
  },
2172
2172
  {
2173
- "uuid": "bdea8100-79dc-4093-8538-6238ebc0a696",
2173
+ "uuid": "d1ba4c83-7d6e-4f49-89bc-dd41c3c425aa",
2174
2174
  "title": "getShuffle()",
2175
2175
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2176
2176
  "file": "/test/device.ts",
@@ -2190,15 +2190,15 @@
2190
2190
  "context": null,
2191
2191
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert.deepStrictEqual(result, NodePyATVShuffleState.songs);\n assert.deepStrictEqual(result, 'songs');\n});",
2192
2192
  "err": {},
2193
- "uuid": "8f73a34d-5fc2-4a5e-a860-fa5bf9975b1f",
2194
- "parentUUID": "bdea8100-79dc-4093-8538-6238ebc0a696",
2193
+ "uuid": "d9b8bca8-aae9-4037-9d3c-a620dc49aafa",
2194
+ "parentUUID": "d1ba4c83-7d6e-4f49-89bc-dd41c3c425aa",
2195
2195
  "isHook": false,
2196
2196
  "skipped": false
2197
2197
  }
2198
2198
  ],
2199
2199
  "suites": [],
2200
2200
  "passes": [
2201
- "8f73a34d-5fc2-4a5e-a860-fa5bf9975b1f"
2201
+ "d9b8bca8-aae9-4037-9d3c-a620dc49aafa"
2202
2202
  ],
2203
2203
  "failures": [],
2204
2204
  "pending": [],
@@ -2209,7 +2209,7 @@
2209
2209
  "_timeout": 2000
2210
2210
  },
2211
2211
  {
2212
- "uuid": "6847e2dd-8015-4d79-8d5f-c149829c2d85",
2212
+ "uuid": "3bee1459-ec47-4595-a089-b6ce3c9b1d8a",
2213
2213
  "title": "getRepeat()",
2214
2214
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2215
2215
  "file": "/test/device.ts",
@@ -2220,7 +2220,7 @@
2220
2220
  "title": "should work",
2221
2221
  "fullTitle": "NodePyATVDevice getRepeat() should work",
2222
2222
  "timedOut": false,
2223
- "duration": 1,
2223
+ "duration": 2,
2224
2224
  "state": "passed",
2225
2225
  "speed": "fast",
2226
2226
  "pass": true,
@@ -2229,26 +2229,26 @@
2229
2229
  "context": null,
2230
2230
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert.deepStrictEqual(result, NodePyATVRepeatState.all);\n assert.deepStrictEqual(result, 'all');\n});",
2231
2231
  "err": {},
2232
- "uuid": "f24e2453-22ee-411c-b97c-299a0463bf70",
2233
- "parentUUID": "6847e2dd-8015-4d79-8d5f-c149829c2d85",
2232
+ "uuid": "9ab9623c-7a62-4fd8-9408-9bd18ca09cd9",
2233
+ "parentUUID": "3bee1459-ec47-4595-a089-b6ce3c9b1d8a",
2234
2234
  "isHook": false,
2235
2235
  "skipped": false
2236
2236
  }
2237
2237
  ],
2238
2238
  "suites": [],
2239
2239
  "passes": [
2240
- "f24e2453-22ee-411c-b97c-299a0463bf70"
2240
+ "9ab9623c-7a62-4fd8-9408-9bd18ca09cd9"
2241
2241
  ],
2242
2242
  "failures": [],
2243
2243
  "pending": [],
2244
2244
  "skipped": [],
2245
- "duration": 1,
2245
+ "duration": 2,
2246
2246
  "root": false,
2247
2247
  "rootEmpty": false,
2248
2248
  "_timeout": 2000
2249
2249
  },
2250
2250
  {
2251
- "uuid": "c7acf4ce-ea1e-4d84-ac3a-2b3bc7e051b3",
2251
+ "uuid": "19496605-93e5-435e-bbb6-70f77534de15",
2252
2252
  "title": "getApp()",
2253
2253
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2254
2254
  "file": "/test/device.ts",
@@ -2268,15 +2268,15 @@
2268
2268
  "context": null,
2269
2269
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert.strictEqual(result, 'My App');\n});",
2270
2270
  "err": {},
2271
- "uuid": "ceecaa9f-292f-4826-a4ac-d856208b8bc2",
2272
- "parentUUID": "c7acf4ce-ea1e-4d84-ac3a-2b3bc7e051b3",
2271
+ "uuid": "324fe217-e7e6-4e2c-8fee-06e7563c0074",
2272
+ "parentUUID": "19496605-93e5-435e-bbb6-70f77534de15",
2273
2273
  "isHook": false,
2274
2274
  "skipped": false
2275
2275
  }
2276
2276
  ],
2277
2277
  "suites": [],
2278
2278
  "passes": [
2279
- "ceecaa9f-292f-4826-a4ac-d856208b8bc2"
2279
+ "324fe217-e7e6-4e2c-8fee-06e7563c0074"
2280
2280
  ],
2281
2281
  "failures": [],
2282
2282
  "pending": [],
@@ -2287,7 +2287,7 @@
2287
2287
  "_timeout": 2000
2288
2288
  },
2289
2289
  {
2290
- "uuid": "9ce680e4-8762-4ab6-85fa-728b3e583139",
2290
+ "uuid": "8d81f345-bf9c-47c9-a601-2c75d55b0387",
2291
2291
  "title": "getAppId()",
2292
2292
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2293
2293
  "file": "/test/device.ts",
@@ -2298,7 +2298,7 @@
2298
2298
  "title": "should work",
2299
2299
  "fullTitle": "NodePyATVDevice getAppId() should work",
2300
2300
  "timedOut": false,
2301
- "duration": 1,
2301
+ "duration": 2,
2302
2302
  "state": "passed",
2303
2303
  "speed": "fast",
2304
2304
  "pass": true,
@@ -2307,26 +2307,26 @@
2307
2307
  "context": null,
2308
2308
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app_id: 'app.example.com'\n });\n })\n });\n const result = yield device.getAppId();\n assert.strictEqual(result, 'app.example.com');\n});",
2309
2309
  "err": {},
2310
- "uuid": "0a241477-fc50-4b97-a937-357de50eea88",
2311
- "parentUUID": "9ce680e4-8762-4ab6-85fa-728b3e583139",
2310
+ "uuid": "0574826e-e09c-47d2-b074-5f12abed24be",
2311
+ "parentUUID": "8d81f345-bf9c-47c9-a601-2c75d55b0387",
2312
2312
  "isHook": false,
2313
2313
  "skipped": false
2314
2314
  }
2315
2315
  ],
2316
2316
  "suites": [],
2317
2317
  "passes": [
2318
- "0a241477-fc50-4b97-a937-357de50eea88"
2318
+ "0574826e-e09c-47d2-b074-5f12abed24be"
2319
2319
  ],
2320
2320
  "failures": [],
2321
2321
  "pending": [],
2322
2322
  "skipped": [],
2323
- "duration": 1,
2323
+ "duration": 2,
2324
2324
  "root": false,
2325
2325
  "rootEmpty": false,
2326
2326
  "_timeout": 2000
2327
2327
  },
2328
2328
  {
2329
- "uuid": "6c2575c5-d367-4d6e-838f-7d238a0a15c3",
2329
+ "uuid": "61d73f31-97ae-464e-a4cc-1720d343fa3b",
2330
2330
  "title": "pressKey()",
2331
2331
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2332
2332
  "file": "/test/device.ts",
@@ -2337,7 +2337,7 @@
2337
2337
  "title": "should work with valid key",
2338
2338
  "fullTitle": "NodePyATVDevice pressKey() should work with valid key",
2339
2339
  "timedOut": false,
2340
- "duration": 1,
2340
+ "duration": 2,
2341
2341
  "state": "passed",
2342
2342
  "speed": "fast",
2343
2343
  "pass": true,
@@ -2346,8 +2346,8 @@
2346
2346
  "context": null,
2347
2347
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(NodePyATVKeys.home);\n});",
2348
2348
  "err": {},
2349
- "uuid": "f73dfbde-5947-42f6-9111-164448306dda",
2350
- "parentUUID": "6c2575c5-d367-4d6e-838f-7d238a0a15c3",
2349
+ "uuid": "0ff2e1b4-3942-4038-b1d9-d43bcf85c764",
2350
+ "parentUUID": "61d73f31-97ae-464e-a4cc-1720d343fa3b",
2351
2351
  "isHook": false,
2352
2352
  "skipped": false
2353
2353
  },
@@ -2364,8 +2364,8 @@
2364
2364
  "context": null,
2365
2365
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n // @ts-ignore\n yield device.pressKey('foo');\n }), /Unsupported key value foo/);\n});",
2366
2366
  "err": {},
2367
- "uuid": "cc5e5766-6de7-4c8c-a294-ac1a87602fb5",
2368
- "parentUUID": "6c2575c5-d367-4d6e-838f-7d238a0a15c3",
2367
+ "uuid": "05af1d3f-5c34-4dc6-8c78-ee96a820511e",
2368
+ "parentUUID": "61d73f31-97ae-464e-a4cc-1720d343fa3b",
2369
2369
  "isHook": false,
2370
2370
  "skipped": false
2371
2371
  },
@@ -2382,28 +2382,28 @@
2382
2382
  "context": null,
2383
2383
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
2384
2384
  "err": {},
2385
- "uuid": "a5b0727b-773f-48cb-8108-54193ff10af4",
2386
- "parentUUID": "6c2575c5-d367-4d6e-838f-7d238a0a15c3",
2385
+ "uuid": "70b392c2-d488-4459-bc6c-05c2145b8430",
2386
+ "parentUUID": "61d73f31-97ae-464e-a4cc-1720d343fa3b",
2387
2387
  "isHook": false,
2388
2388
  "skipped": false
2389
2389
  }
2390
2390
  ],
2391
2391
  "suites": [],
2392
2392
  "passes": [
2393
- "f73dfbde-5947-42f6-9111-164448306dda",
2394
- "cc5e5766-6de7-4c8c-a294-ac1a87602fb5",
2395
- "a5b0727b-773f-48cb-8108-54193ff10af4"
2393
+ "0ff2e1b4-3942-4038-b1d9-d43bcf85c764",
2394
+ "05af1d3f-5c34-4dc6-8c78-ee96a820511e",
2395
+ "70b392c2-d488-4459-bc6c-05c2145b8430"
2396
2396
  ],
2397
2397
  "failures": [],
2398
2398
  "pending": [],
2399
2399
  "skipped": [],
2400
- "duration": 2,
2400
+ "duration": 3,
2401
2401
  "root": false,
2402
2402
  "rootEmpty": false,
2403
2403
  "_timeout": 2000
2404
2404
  },
2405
2405
  {
2406
- "uuid": "7385baf6-e1a2-4bd6-98b2-cd33207fada3",
2406
+ "uuid": "ef3d7d1a-edd1-4ec0-9e47-714fcf572949",
2407
2407
  "title": "down()",
2408
2408
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2409
2409
  "file": "/test/device.ts",
@@ -2414,7 +2414,7 @@
2414
2414
  "title": "should work",
2415
2415
  "fullTitle": "NodePyATVDevice down() should work",
2416
2416
  "timedOut": false,
2417
- "duration": 2,
2417
+ "duration": 1,
2418
2418
  "state": "passed",
2419
2419
  "speed": "fast",
2420
2420
  "pass": true,
@@ -2423,26 +2423,26 @@
2423
2423
  "context": null,
2424
2424
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2425
2425
  "err": {},
2426
- "uuid": "08d3f692-3dfa-4f80-9de8-8b1e1a6d2a4c",
2427
- "parentUUID": "7385baf6-e1a2-4bd6-98b2-cd33207fada3",
2426
+ "uuid": "019d9b2c-0edd-4a3d-8ccc-15e873040f71",
2427
+ "parentUUID": "ef3d7d1a-edd1-4ec0-9e47-714fcf572949",
2428
2428
  "isHook": false,
2429
2429
  "skipped": false
2430
2430
  }
2431
2431
  ],
2432
2432
  "suites": [],
2433
2433
  "passes": [
2434
- "08d3f692-3dfa-4f80-9de8-8b1e1a6d2a4c"
2434
+ "019d9b2c-0edd-4a3d-8ccc-15e873040f71"
2435
2435
  ],
2436
2436
  "failures": [],
2437
2437
  "pending": [],
2438
2438
  "skipped": [],
2439
- "duration": 2,
2439
+ "duration": 1,
2440
2440
  "root": false,
2441
2441
  "rootEmpty": false,
2442
2442
  "_timeout": 2000
2443
2443
  },
2444
2444
  {
2445
- "uuid": "8dacc9ab-b8d3-404f-9b82-6f406a01cdf8",
2445
+ "uuid": "8325f7ce-8873-4a9a-ae42-94a7fd4de7e4",
2446
2446
  "title": "home()",
2447
2447
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2448
2448
  "file": "/test/device.ts",
@@ -2462,15 +2462,15 @@
2462
2462
  "context": null,
2463
2463
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2464
2464
  "err": {},
2465
- "uuid": "b9b303e1-b637-4585-965b-571589024379",
2466
- "parentUUID": "8dacc9ab-b8d3-404f-9b82-6f406a01cdf8",
2465
+ "uuid": "c2d1a09f-1c39-4ced-875f-223501e26a1a",
2466
+ "parentUUID": "8325f7ce-8873-4a9a-ae42-94a7fd4de7e4",
2467
2467
  "isHook": false,
2468
2468
  "skipped": false
2469
2469
  }
2470
2470
  ],
2471
2471
  "suites": [],
2472
2472
  "passes": [
2473
- "b9b303e1-b637-4585-965b-571589024379"
2473
+ "c2d1a09f-1c39-4ced-875f-223501e26a1a"
2474
2474
  ],
2475
2475
  "failures": [],
2476
2476
  "pending": [],
@@ -2481,7 +2481,7 @@
2481
2481
  "_timeout": 2000
2482
2482
  },
2483
2483
  {
2484
- "uuid": "0c55a41d-7228-4822-88f1-d35c631509f6",
2484
+ "uuid": "73452cfa-1678-48b0-a196-ec1d30ca7194",
2485
2485
  "title": "homeHold()",
2486
2486
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2487
2487
  "file": "/test/device.ts",
@@ -2501,15 +2501,15 @@
2501
2501
  "context": null,
2502
2502
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2503
2503
  "err": {},
2504
- "uuid": "27d6c39a-1eac-4407-ae3d-5b8465afc60c",
2505
- "parentUUID": "0c55a41d-7228-4822-88f1-d35c631509f6",
2504
+ "uuid": "25035339-214e-48fc-9bf2-c9cd592fa0de",
2505
+ "parentUUID": "73452cfa-1678-48b0-a196-ec1d30ca7194",
2506
2506
  "isHook": false,
2507
2507
  "skipped": false
2508
2508
  }
2509
2509
  ],
2510
2510
  "suites": [],
2511
2511
  "passes": [
2512
- "27d6c39a-1eac-4407-ae3d-5b8465afc60c"
2512
+ "25035339-214e-48fc-9bf2-c9cd592fa0de"
2513
2513
  ],
2514
2514
  "failures": [],
2515
2515
  "pending": [],
@@ -2520,7 +2520,7 @@
2520
2520
  "_timeout": 2000
2521
2521
  },
2522
2522
  {
2523
- "uuid": "316878fb-85f7-4e29-a971-898555dbd95e",
2523
+ "uuid": "3b027c66-093c-47f4-ad90-f548ea31c7f5",
2524
2524
  "title": "left()",
2525
2525
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2526
2526
  "file": "/test/device.ts",
@@ -2540,15 +2540,15 @@
2540
2540
  "context": null,
2541
2541
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2542
2542
  "err": {},
2543
- "uuid": "8f7ea3b9-1f00-4c69-b1ab-64d149a2ec2f",
2544
- "parentUUID": "316878fb-85f7-4e29-a971-898555dbd95e",
2543
+ "uuid": "b56b198f-67c3-4586-9082-85508a070889",
2544
+ "parentUUID": "3b027c66-093c-47f4-ad90-f548ea31c7f5",
2545
2545
  "isHook": false,
2546
2546
  "skipped": false
2547
2547
  }
2548
2548
  ],
2549
2549
  "suites": [],
2550
2550
  "passes": [
2551
- "8f7ea3b9-1f00-4c69-b1ab-64d149a2ec2f"
2551
+ "b56b198f-67c3-4586-9082-85508a070889"
2552
2552
  ],
2553
2553
  "failures": [],
2554
2554
  "pending": [],
@@ -2559,7 +2559,7 @@
2559
2559
  "_timeout": 2000
2560
2560
  },
2561
2561
  {
2562
- "uuid": "2a080c20-64bc-45c1-8d8d-d38f9cb6ced7",
2562
+ "uuid": "9dc2baf0-fd42-44f3-be07-a452fe77a8d0",
2563
2563
  "title": "menu()",
2564
2564
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2565
2565
  "file": "/test/device.ts",
@@ -2579,15 +2579,15 @@
2579
2579
  "context": null,
2580
2580
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2581
2581
  "err": {},
2582
- "uuid": "4719d96a-fdd8-47fa-89e7-a3907d617d6a",
2583
- "parentUUID": "2a080c20-64bc-45c1-8d8d-d38f9cb6ced7",
2582
+ "uuid": "8069bccd-6c27-427c-a127-21899ae7ec74",
2583
+ "parentUUID": "9dc2baf0-fd42-44f3-be07-a452fe77a8d0",
2584
2584
  "isHook": false,
2585
2585
  "skipped": false
2586
2586
  }
2587
2587
  ],
2588
2588
  "suites": [],
2589
2589
  "passes": [
2590
- "4719d96a-fdd8-47fa-89e7-a3907d617d6a"
2590
+ "8069bccd-6c27-427c-a127-21899ae7ec74"
2591
2591
  ],
2592
2592
  "failures": [],
2593
2593
  "pending": [],
@@ -2598,7 +2598,7 @@
2598
2598
  "_timeout": 2000
2599
2599
  },
2600
2600
  {
2601
- "uuid": "34fd559e-02f6-4118-8af5-d2a433ea66d4",
2601
+ "uuid": "0fb07ae0-ffa1-4a6f-acb5-021882ab4dee",
2602
2602
  "title": "next()",
2603
2603
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2604
2604
  "file": "/test/device.ts",
@@ -2609,7 +2609,7 @@
2609
2609
  "title": "should work",
2610
2610
  "fullTitle": "NodePyATVDevice next() should work",
2611
2611
  "timedOut": false,
2612
- "duration": 2,
2612
+ "duration": 1,
2613
2613
  "state": "passed",
2614
2614
  "speed": "fast",
2615
2615
  "pass": true,
@@ -2618,26 +2618,26 @@
2618
2618
  "context": null,
2619
2619
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2620
2620
  "err": {},
2621
- "uuid": "89663031-36a0-4427-a2e2-e3fded751c9b",
2622
- "parentUUID": "34fd559e-02f6-4118-8af5-d2a433ea66d4",
2621
+ "uuid": "ff0a3da4-0a94-4f64-8c2d-19c2dc61e8d9",
2622
+ "parentUUID": "0fb07ae0-ffa1-4a6f-acb5-021882ab4dee",
2623
2623
  "isHook": false,
2624
2624
  "skipped": false
2625
2625
  }
2626
2626
  ],
2627
2627
  "suites": [],
2628
2628
  "passes": [
2629
- "89663031-36a0-4427-a2e2-e3fded751c9b"
2629
+ "ff0a3da4-0a94-4f64-8c2d-19c2dc61e8d9"
2630
2630
  ],
2631
2631
  "failures": [],
2632
2632
  "pending": [],
2633
2633
  "skipped": [],
2634
- "duration": 2,
2634
+ "duration": 1,
2635
2635
  "root": false,
2636
2636
  "rootEmpty": false,
2637
2637
  "_timeout": 2000
2638
2638
  },
2639
2639
  {
2640
- "uuid": "07a02335-c78d-4ca3-961f-a8a2198eb194",
2640
+ "uuid": "5b8644a7-6d2f-4f4f-9fad-67a8cc5570e4",
2641
2641
  "title": "pause()",
2642
2642
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2643
2643
  "file": "/test/device.ts",
@@ -2648,7 +2648,7 @@
2648
2648
  "title": "should work",
2649
2649
  "fullTitle": "NodePyATVDevice pause() should work",
2650
2650
  "timedOut": false,
2651
- "duration": 1,
2651
+ "duration": 2,
2652
2652
  "state": "passed",
2653
2653
  "speed": "fast",
2654
2654
  "pass": true,
@@ -2657,26 +2657,26 @@
2657
2657
  "context": null,
2658
2658
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2659
2659
  "err": {},
2660
- "uuid": "0060e3e2-4425-4c02-9924-3c5d4a8a81ed",
2661
- "parentUUID": "07a02335-c78d-4ca3-961f-a8a2198eb194",
2660
+ "uuid": "6a64ee4a-ec91-4fb4-86c2-5ec9e0eb2593",
2661
+ "parentUUID": "5b8644a7-6d2f-4f4f-9fad-67a8cc5570e4",
2662
2662
  "isHook": false,
2663
2663
  "skipped": false
2664
2664
  }
2665
2665
  ],
2666
2666
  "suites": [],
2667
2667
  "passes": [
2668
- "0060e3e2-4425-4c02-9924-3c5d4a8a81ed"
2668
+ "6a64ee4a-ec91-4fb4-86c2-5ec9e0eb2593"
2669
2669
  ],
2670
2670
  "failures": [],
2671
2671
  "pending": [],
2672
2672
  "skipped": [],
2673
- "duration": 1,
2673
+ "duration": 2,
2674
2674
  "root": false,
2675
2675
  "rootEmpty": false,
2676
2676
  "_timeout": 2000
2677
2677
  },
2678
2678
  {
2679
- "uuid": "722daff0-7c22-48e5-87a1-b094636bf3d2",
2679
+ "uuid": "d278c245-b74f-44be-a058-680e12dc001f",
2680
2680
  "title": "play()",
2681
2681
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2682
2682
  "file": "/test/device.ts",
@@ -2687,7 +2687,7 @@
2687
2687
  "title": "should work",
2688
2688
  "fullTitle": "NodePyATVDevice play() should work",
2689
2689
  "timedOut": false,
2690
- "duration": 1,
2690
+ "duration": 2,
2691
2691
  "state": "passed",
2692
2692
  "speed": "fast",
2693
2693
  "pass": true,
@@ -2696,26 +2696,26 @@
2696
2696
  "context": null,
2697
2697
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2698
2698
  "err": {},
2699
- "uuid": "7120dc2d-176c-4e99-b837-9e13571d4f03",
2700
- "parentUUID": "722daff0-7c22-48e5-87a1-b094636bf3d2",
2699
+ "uuid": "dc1fad57-771a-48a2-a8f5-137ef2abc374",
2700
+ "parentUUID": "d278c245-b74f-44be-a058-680e12dc001f",
2701
2701
  "isHook": false,
2702
2702
  "skipped": false
2703
2703
  }
2704
2704
  ],
2705
2705
  "suites": [],
2706
2706
  "passes": [
2707
- "7120dc2d-176c-4e99-b837-9e13571d4f03"
2707
+ "dc1fad57-771a-48a2-a8f5-137ef2abc374"
2708
2708
  ],
2709
2709
  "failures": [],
2710
2710
  "pending": [],
2711
2711
  "skipped": [],
2712
- "duration": 1,
2712
+ "duration": 2,
2713
2713
  "root": false,
2714
2714
  "rootEmpty": false,
2715
2715
  "_timeout": 2000
2716
2716
  },
2717
2717
  {
2718
- "uuid": "b94689f1-343f-45bd-92e6-76e2b4d825cc",
2718
+ "uuid": "786fb296-5bc9-47ab-bcee-f1950b41042c",
2719
2719
  "title": "playPause()",
2720
2720
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2721
2721
  "file": "/test/device.ts",
@@ -2726,7 +2726,7 @@
2726
2726
  "title": "should work",
2727
2727
  "fullTitle": "NodePyATVDevice playPause() should work",
2728
2728
  "timedOut": false,
2729
- "duration": 2,
2729
+ "duration": 1,
2730
2730
  "state": "passed",
2731
2731
  "speed": "fast",
2732
2732
  "pass": true,
@@ -2735,26 +2735,26 @@
2735
2735
  "context": null,
2736
2736
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2737
2737
  "err": {},
2738
- "uuid": "f21bc8cf-3208-41e7-8e42-8fb5fb451065",
2739
- "parentUUID": "b94689f1-343f-45bd-92e6-76e2b4d825cc",
2738
+ "uuid": "5aa5517a-1156-4e38-89d1-78b0a2238f6a",
2739
+ "parentUUID": "786fb296-5bc9-47ab-bcee-f1950b41042c",
2740
2740
  "isHook": false,
2741
2741
  "skipped": false
2742
2742
  }
2743
2743
  ],
2744
2744
  "suites": [],
2745
2745
  "passes": [
2746
- "f21bc8cf-3208-41e7-8e42-8fb5fb451065"
2746
+ "5aa5517a-1156-4e38-89d1-78b0a2238f6a"
2747
2747
  ],
2748
2748
  "failures": [],
2749
2749
  "pending": [],
2750
2750
  "skipped": [],
2751
- "duration": 2,
2751
+ "duration": 1,
2752
2752
  "root": false,
2753
2753
  "rootEmpty": false,
2754
2754
  "_timeout": 2000
2755
2755
  },
2756
2756
  {
2757
- "uuid": "b9c7fd42-7d14-4b9c-b024-29c1763287d4",
2757
+ "uuid": "2ae2cd0f-b81c-4baa-ba55-729cb76ab4a7",
2758
2758
  "title": "previous()",
2759
2759
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2760
2760
  "file": "/test/device.ts",
@@ -2774,15 +2774,15 @@
2774
2774
  "context": null,
2775
2775
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2776
2776
  "err": {},
2777
- "uuid": "56b30ff3-6052-444d-907e-8da317c469ca",
2778
- "parentUUID": "b9c7fd42-7d14-4b9c-b024-29c1763287d4",
2777
+ "uuid": "445debf5-110a-450e-9758-ba8df16bb8e1",
2778
+ "parentUUID": "2ae2cd0f-b81c-4baa-ba55-729cb76ab4a7",
2779
2779
  "isHook": false,
2780
2780
  "skipped": false
2781
2781
  }
2782
2782
  ],
2783
2783
  "suites": [],
2784
2784
  "passes": [
2785
- "56b30ff3-6052-444d-907e-8da317c469ca"
2785
+ "445debf5-110a-450e-9758-ba8df16bb8e1"
2786
2786
  ],
2787
2787
  "failures": [],
2788
2788
  "pending": [],
@@ -2793,7 +2793,7 @@
2793
2793
  "_timeout": 2000
2794
2794
  },
2795
2795
  {
2796
- "uuid": "3d848918-5740-45c5-ae95-5a84e538ac8f",
2796
+ "uuid": "97737de5-c39e-479c-aa14-5d5e7b7083d5",
2797
2797
  "title": "right()",
2798
2798
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2799
2799
  "file": "/test/device.ts",
@@ -2804,7 +2804,7 @@
2804
2804
  "title": "should work",
2805
2805
  "fullTitle": "NodePyATVDevice right() should work",
2806
2806
  "timedOut": false,
2807
- "duration": 1,
2807
+ "duration": 2,
2808
2808
  "state": "passed",
2809
2809
  "speed": "fast",
2810
2810
  "pass": true,
@@ -2813,26 +2813,26 @@
2813
2813
  "context": null,
2814
2814
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2815
2815
  "err": {},
2816
- "uuid": "2e8a4432-fb2e-4342-a639-65528825bc48",
2817
- "parentUUID": "3d848918-5740-45c5-ae95-5a84e538ac8f",
2816
+ "uuid": "4fbebbd4-ee90-4e46-9252-8c231148cd23",
2817
+ "parentUUID": "97737de5-c39e-479c-aa14-5d5e7b7083d5",
2818
2818
  "isHook": false,
2819
2819
  "skipped": false
2820
2820
  }
2821
2821
  ],
2822
2822
  "suites": [],
2823
2823
  "passes": [
2824
- "2e8a4432-fb2e-4342-a639-65528825bc48"
2824
+ "4fbebbd4-ee90-4e46-9252-8c231148cd23"
2825
2825
  ],
2826
2826
  "failures": [],
2827
2827
  "pending": [],
2828
2828
  "skipped": [],
2829
- "duration": 1,
2829
+ "duration": 2,
2830
2830
  "root": false,
2831
2831
  "rootEmpty": false,
2832
2832
  "_timeout": 2000
2833
2833
  },
2834
2834
  {
2835
- "uuid": "dc2b0e8d-1c97-4ed2-9773-8e204295203d",
2835
+ "uuid": "6a7d7373-0ef4-47b1-884c-ee2c5edc54dc",
2836
2836
  "title": "select()",
2837
2837
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2838
2838
  "file": "/test/device.ts",
@@ -2843,7 +2843,7 @@
2843
2843
  "title": "should work",
2844
2844
  "fullTitle": "NodePyATVDevice select() should work",
2845
2845
  "timedOut": false,
2846
- "duration": 0,
2846
+ "duration": 1,
2847
2847
  "state": "passed",
2848
2848
  "speed": "fast",
2849
2849
  "pass": true,
@@ -2852,26 +2852,26 @@
2852
2852
  "context": null,
2853
2853
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2854
2854
  "err": {},
2855
- "uuid": "c6c7bc1d-f224-48fa-8e8a-e24392049959",
2856
- "parentUUID": "dc2b0e8d-1c97-4ed2-9773-8e204295203d",
2855
+ "uuid": "4594628e-b08d-47c6-8681-45daacac2101",
2856
+ "parentUUID": "6a7d7373-0ef4-47b1-884c-ee2c5edc54dc",
2857
2857
  "isHook": false,
2858
2858
  "skipped": false
2859
2859
  }
2860
2860
  ],
2861
2861
  "suites": [],
2862
2862
  "passes": [
2863
- "c6c7bc1d-f224-48fa-8e8a-e24392049959"
2863
+ "4594628e-b08d-47c6-8681-45daacac2101"
2864
2864
  ],
2865
2865
  "failures": [],
2866
2866
  "pending": [],
2867
2867
  "skipped": [],
2868
- "duration": 0,
2868
+ "duration": 1,
2869
2869
  "root": false,
2870
2870
  "rootEmpty": false,
2871
2871
  "_timeout": 2000
2872
2872
  },
2873
2873
  {
2874
- "uuid": "d45fd942-137b-4e0c-86a8-054ac6d77bb7",
2874
+ "uuid": "41cce308-d83f-4bbd-8bc3-da0f21717113",
2875
2875
  "title": "skipBackward()",
2876
2876
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2877
2877
  "file": "/test/device.ts",
@@ -2891,15 +2891,15 @@
2891
2891
  "context": null,
2892
2892
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2893
2893
  "err": {},
2894
- "uuid": "3e6fcc37-3a6b-4a8c-94b1-189e2bc75ab8",
2895
- "parentUUID": "d45fd942-137b-4e0c-86a8-054ac6d77bb7",
2894
+ "uuid": "70a1022a-bfab-44c9-b1e1-131a6157d049",
2895
+ "parentUUID": "41cce308-d83f-4bbd-8bc3-da0f21717113",
2896
2896
  "isHook": false,
2897
2897
  "skipped": false
2898
2898
  }
2899
2899
  ],
2900
2900
  "suites": [],
2901
2901
  "passes": [
2902
- "3e6fcc37-3a6b-4a8c-94b1-189e2bc75ab8"
2902
+ "70a1022a-bfab-44c9-b1e1-131a6157d049"
2903
2903
  ],
2904
2904
  "failures": [],
2905
2905
  "pending": [],
@@ -2910,7 +2910,7 @@
2910
2910
  "_timeout": 2000
2911
2911
  },
2912
2912
  {
2913
- "uuid": "c968efdc-b012-44d6-b81a-3c8f15bd6f3c",
2913
+ "uuid": "baaf70c3-9899-4db0-8bf4-66bf8507e9ff",
2914
2914
  "title": "skipForward()",
2915
2915
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2916
2916
  "file": "/test/device.ts",
@@ -2930,15 +2930,15 @@
2930
2930
  "context": null,
2931
2931
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2932
2932
  "err": {},
2933
- "uuid": "41eacb7e-0ab8-4b79-b4d9-8d1f43026999",
2934
- "parentUUID": "c968efdc-b012-44d6-b81a-3c8f15bd6f3c",
2933
+ "uuid": "fe790a43-4e53-4db0-b45f-71524a0578d8",
2934
+ "parentUUID": "baaf70c3-9899-4db0-8bf4-66bf8507e9ff",
2935
2935
  "isHook": false,
2936
2936
  "skipped": false
2937
2937
  }
2938
2938
  ],
2939
2939
  "suites": [],
2940
2940
  "passes": [
2941
- "41eacb7e-0ab8-4b79-b4d9-8d1f43026999"
2941
+ "fe790a43-4e53-4db0-b45f-71524a0578d8"
2942
2942
  ],
2943
2943
  "failures": [],
2944
2944
  "pending": [],
@@ -2949,7 +2949,7 @@
2949
2949
  "_timeout": 2000
2950
2950
  },
2951
2951
  {
2952
- "uuid": "64350c1a-8ba2-45fc-87ae-10ba822e9566",
2952
+ "uuid": "065e3616-4e9a-433b-b33c-2cefb6496a50",
2953
2953
  "title": "stop()",
2954
2954
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2955
2955
  "file": "/test/device.ts",
@@ -2969,15 +2969,15 @@
2969
2969
  "context": null,
2970
2970
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
2971
2971
  "err": {},
2972
- "uuid": "fb0230c6-0dbe-4057-a17f-978cd3973db5",
2973
- "parentUUID": "64350c1a-8ba2-45fc-87ae-10ba822e9566",
2972
+ "uuid": "52d434c4-e0fb-44a2-b10d-0d3f2f5f98de",
2973
+ "parentUUID": "065e3616-4e9a-433b-b33c-2cefb6496a50",
2974
2974
  "isHook": false,
2975
2975
  "skipped": false
2976
2976
  }
2977
2977
  ],
2978
2978
  "suites": [],
2979
2979
  "passes": [
2980
- "fb0230c6-0dbe-4057-a17f-978cd3973db5"
2980
+ "52d434c4-e0fb-44a2-b10d-0d3f2f5f98de"
2981
2981
  ],
2982
2982
  "failures": [],
2983
2983
  "pending": [],
@@ -2988,7 +2988,7 @@
2988
2988
  "_timeout": 2000
2989
2989
  },
2990
2990
  {
2991
- "uuid": "da7f5d1d-0597-4481-82ed-b1091e6d0f67",
2991
+ "uuid": "a91ad7f7-8d41-4fd8-bee2-8979f4d48608",
2992
2992
  "title": "suspend()",
2993
2993
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2994
2994
  "file": "/test/device.ts",
@@ -3008,15 +3008,15 @@
3008
3008
  "context": null,
3009
3009
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3010
3010
  "err": {},
3011
- "uuid": "89183a65-fd43-461b-9149-a51064b7875a",
3012
- "parentUUID": "da7f5d1d-0597-4481-82ed-b1091e6d0f67",
3011
+ "uuid": "4e57271a-3729-41ff-8d60-786eb7585be6",
3012
+ "parentUUID": "a91ad7f7-8d41-4fd8-bee2-8979f4d48608",
3013
3013
  "isHook": false,
3014
3014
  "skipped": false
3015
3015
  }
3016
3016
  ],
3017
3017
  "suites": [],
3018
3018
  "passes": [
3019
- "89183a65-fd43-461b-9149-a51064b7875a"
3019
+ "4e57271a-3729-41ff-8d60-786eb7585be6"
3020
3020
  ],
3021
3021
  "failures": [],
3022
3022
  "pending": [],
@@ -3027,7 +3027,7 @@
3027
3027
  "_timeout": 2000
3028
3028
  },
3029
3029
  {
3030
- "uuid": "19c59256-8af6-476f-8d86-289567bb773f",
3030
+ "uuid": "59918758-2f5d-451d-9e39-82540b6e1b7d",
3031
3031
  "title": "topMenu()",
3032
3032
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3033
3033
  "file": "/test/device.ts",
@@ -3047,15 +3047,15 @@
3047
3047
  "context": null,
3048
3048
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3049
3049
  "err": {},
3050
- "uuid": "657ce3a8-608f-4722-9f64-78492050ffe5",
3051
- "parentUUID": "19c59256-8af6-476f-8d86-289567bb773f",
3050
+ "uuid": "02741ed5-a17b-4106-876e-dd25a071a298",
3051
+ "parentUUID": "59918758-2f5d-451d-9e39-82540b6e1b7d",
3052
3052
  "isHook": false,
3053
3053
  "skipped": false
3054
3054
  }
3055
3055
  ],
3056
3056
  "suites": [],
3057
3057
  "passes": [
3058
- "657ce3a8-608f-4722-9f64-78492050ffe5"
3058
+ "02741ed5-a17b-4106-876e-dd25a071a298"
3059
3059
  ],
3060
3060
  "failures": [],
3061
3061
  "pending": [],
@@ -3066,7 +3066,7 @@
3066
3066
  "_timeout": 2000
3067
3067
  },
3068
3068
  {
3069
- "uuid": "fb9c0555-7a30-4c70-9975-a2153e322d07",
3069
+ "uuid": "3ec6dc6a-7ee0-4da1-976a-23e5224c0d6e",
3070
3070
  "title": "up()",
3071
3071
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3072
3072
  "file": "/test/device.ts",
@@ -3077,7 +3077,7 @@
3077
3077
  "title": "should work",
3078
3078
  "fullTitle": "NodePyATVDevice up() should work",
3079
3079
  "timedOut": false,
3080
- "duration": 2,
3080
+ "duration": 1,
3081
3081
  "state": "passed",
3082
3082
  "speed": "fast",
3083
3083
  "pass": true,
@@ -3086,26 +3086,26 @@
3086
3086
  "context": null,
3087
3087
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3088
3088
  "err": {},
3089
- "uuid": "f8ddd810-2dfb-4a74-a5df-9a2d0d4df6e5",
3090
- "parentUUID": "fb9c0555-7a30-4c70-9975-a2153e322d07",
3089
+ "uuid": "3076616a-1060-4bb5-9a60-a0c53c63a8e8",
3090
+ "parentUUID": "3ec6dc6a-7ee0-4da1-976a-23e5224c0d6e",
3091
3091
  "isHook": false,
3092
3092
  "skipped": false
3093
3093
  }
3094
3094
  ],
3095
3095
  "suites": [],
3096
3096
  "passes": [
3097
- "f8ddd810-2dfb-4a74-a5df-9a2d0d4df6e5"
3097
+ "3076616a-1060-4bb5-9a60-a0c53c63a8e8"
3098
3098
  ],
3099
3099
  "failures": [],
3100
3100
  "pending": [],
3101
3101
  "skipped": [],
3102
- "duration": 2,
3102
+ "duration": 1,
3103
3103
  "root": false,
3104
3104
  "rootEmpty": false,
3105
3105
  "_timeout": 2000
3106
3106
  },
3107
3107
  {
3108
- "uuid": "0af41cba-417a-472a-b1fd-0757721e9889",
3108
+ "uuid": "8ef82c0e-7b02-47a7-8d04-fdf7d0dfb5a7",
3109
3109
  "title": "volumeDown()",
3110
3110
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3111
3111
  "file": "/test/device.ts",
@@ -3116,7 +3116,7 @@
3116
3116
  "title": "should work",
3117
3117
  "fullTitle": "NodePyATVDevice volumeDown() should work",
3118
3118
  "timedOut": false,
3119
- "duration": 1,
3119
+ "duration": 2,
3120
3120
  "state": "passed",
3121
3121
  "speed": "fast",
3122
3122
  "pass": true,
@@ -3125,26 +3125,26 @@
3125
3125
  "context": null,
3126
3126
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3127
3127
  "err": {},
3128
- "uuid": "dda3c9d2-6ec1-41b4-bb73-117908c8aa62",
3129
- "parentUUID": "0af41cba-417a-472a-b1fd-0757721e9889",
3128
+ "uuid": "1706832e-481b-44b0-b264-8ebb6a5e3bf5",
3129
+ "parentUUID": "8ef82c0e-7b02-47a7-8d04-fdf7d0dfb5a7",
3130
3130
  "isHook": false,
3131
3131
  "skipped": false
3132
3132
  }
3133
3133
  ],
3134
3134
  "suites": [],
3135
3135
  "passes": [
3136
- "dda3c9d2-6ec1-41b4-bb73-117908c8aa62"
3136
+ "1706832e-481b-44b0-b264-8ebb6a5e3bf5"
3137
3137
  ],
3138
3138
  "failures": [],
3139
3139
  "pending": [],
3140
3140
  "skipped": [],
3141
- "duration": 1,
3141
+ "duration": 2,
3142
3142
  "root": false,
3143
3143
  "rootEmpty": false,
3144
3144
  "_timeout": 2000
3145
3145
  },
3146
3146
  {
3147
- "uuid": "1fc62e00-0901-4092-bf51-844f12ab6dc4",
3147
+ "uuid": "69fd7782-31c8-44b0-b5f3-a8c2b4079055",
3148
3148
  "title": "volumeUp()",
3149
3149
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3150
3150
  "file": "/test/device.ts",
@@ -3155,7 +3155,7 @@
3155
3155
  "title": "should work",
3156
3156
  "fullTitle": "NodePyATVDevice volumeUp() should work",
3157
3157
  "timedOut": false,
3158
- "duration": 1,
3158
+ "duration": 2,
3159
3159
  "state": "passed",
3160
3160
  "speed": "fast",
3161
3161
  "pass": true,
@@ -3164,26 +3164,26 @@
3164
3164
  "context": null,
3165
3165
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3166
3166
  "err": {},
3167
- "uuid": "58310ad0-5213-4de3-969a-c792a62a5fc6",
3168
- "parentUUID": "1fc62e00-0901-4092-bf51-844f12ab6dc4",
3167
+ "uuid": "219a7804-9b3c-45f1-b6e3-a274c0f7422f",
3168
+ "parentUUID": "69fd7782-31c8-44b0-b5f3-a8c2b4079055",
3169
3169
  "isHook": false,
3170
3170
  "skipped": false
3171
3171
  }
3172
3172
  ],
3173
3173
  "suites": [],
3174
3174
  "passes": [
3175
- "58310ad0-5213-4de3-969a-c792a62a5fc6"
3175
+ "219a7804-9b3c-45f1-b6e3-a274c0f7422f"
3176
3176
  ],
3177
3177
  "failures": [],
3178
3178
  "pending": [],
3179
3179
  "skipped": [],
3180
- "duration": 1,
3180
+ "duration": 2,
3181
3181
  "root": false,
3182
3182
  "rootEmpty": false,
3183
3183
  "_timeout": 2000
3184
3184
  },
3185
3185
  {
3186
- "uuid": "1783ba5a-1a90-4403-b7d9-f3f45569367c",
3186
+ "uuid": "df822700-6950-41bd-b464-85b4e824f7cb",
3187
3187
  "title": "wakeup()",
3188
3188
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3189
3189
  "file": "/test/device.ts",
@@ -3194,7 +3194,7 @@
3194
3194
  "title": "should work",
3195
3195
  "fullTitle": "NodePyATVDevice wakeup() should work",
3196
3196
  "timedOut": false,
3197
- "duration": 2,
3197
+ "duration": 1,
3198
3198
  "state": "passed",
3199
3199
  "speed": "fast",
3200
3200
  "pass": true,
@@ -3203,26 +3203,26 @@
3203
3203
  "context": null,
3204
3204
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3205
3205
  "err": {},
3206
- "uuid": "d847424f-e081-46eb-b069-fa0597e16c0a",
3207
- "parentUUID": "1783ba5a-1a90-4403-b7d9-f3f45569367c",
3206
+ "uuid": "9825d9ad-10b5-48b9-a649-a12bdbd8e03c",
3207
+ "parentUUID": "df822700-6950-41bd-b464-85b4e824f7cb",
3208
3208
  "isHook": false,
3209
3209
  "skipped": false
3210
3210
  }
3211
3211
  ],
3212
3212
  "suites": [],
3213
3213
  "passes": [
3214
- "d847424f-e081-46eb-b069-fa0597e16c0a"
3214
+ "9825d9ad-10b5-48b9-a649-a12bdbd8e03c"
3215
3215
  ],
3216
3216
  "failures": [],
3217
3217
  "pending": [],
3218
3218
  "skipped": [],
3219
- "duration": 2,
3219
+ "duration": 1,
3220
3220
  "root": false,
3221
3221
  "rootEmpty": false,
3222
3222
  "_timeout": 2000
3223
3223
  },
3224
3224
  {
3225
- "uuid": "c116c34f-7239-470d-93da-88aa7474d3e7",
3225
+ "uuid": "857edd27-bb39-4acf-8ecd-913b09b96b98",
3226
3226
  "title": "turnOff()",
3227
3227
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3228
3228
  "file": "/test/device.ts",
@@ -3242,15 +3242,15 @@
3242
3242
  "context": null,
3243
3243
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3244
3244
  "err": {},
3245
- "uuid": "49b574dd-9dd0-485f-bab4-198e62337a5c",
3246
- "parentUUID": "c116c34f-7239-470d-93da-88aa7474d3e7",
3245
+ "uuid": "bad9fe4f-3645-4865-a879-cde6fe98a63d",
3246
+ "parentUUID": "857edd27-bb39-4acf-8ecd-913b09b96b98",
3247
3247
  "isHook": false,
3248
3248
  "skipped": false
3249
3249
  }
3250
3250
  ],
3251
3251
  "suites": [],
3252
3252
  "passes": [
3253
- "49b574dd-9dd0-485f-bab4-198e62337a5c"
3253
+ "bad9fe4f-3645-4865-a879-cde6fe98a63d"
3254
3254
  ],
3255
3255
  "failures": [],
3256
3256
  "pending": [],
@@ -3261,7 +3261,7 @@
3261
3261
  "_timeout": 2000
3262
3262
  },
3263
3263
  {
3264
- "uuid": "c50a7c39-9189-4c70-ba0a-106d43f1618d",
3264
+ "uuid": "0f4aaa9d-7a58-4341-b799-216b2730d2e1",
3265
3265
  "title": "turnOn()",
3266
3266
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
3267
3267
  "file": "/test/device.ts",
@@ -3281,15 +3281,15 @@
3281
3281
  "context": null,
3282
3282
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
3283
3283
  "err": {},
3284
- "uuid": "46a90894-b6ec-4756-908e-64d98fc58c2f",
3285
- "parentUUID": "c50a7c39-9189-4c70-ba0a-106d43f1618d",
3284
+ "uuid": "9ab219b3-d61d-4eab-80b8-32892c6265ba",
3285
+ "parentUUID": "0f4aaa9d-7a58-4341-b799-216b2730d2e1",
3286
3286
  "isHook": false,
3287
3287
  "skipped": false
3288
3288
  }
3289
3289
  ],
3290
3290
  "suites": [],
3291
3291
  "passes": [
3292
- "46a90894-b6ec-4756-908e-64d98fc58c2f"
3292
+ "9ab219b3-d61d-4eab-80b8-32892c6265ba"
3293
3293
  ],
3294
3294
  "failures": [],
3295
3295
  "pending": [],
@@ -3310,7 +3310,7 @@
3310
3310
  "_timeout": 2000
3311
3311
  },
3312
3312
  {
3313
- "uuid": "13c2a391-af38-4638-8c3a-aa4c8d9124cc",
3313
+ "uuid": "abaa7d56-33e3-4fe0-b029-2aedf081381b",
3314
3314
  "title": "NodePyATVInstance",
3315
3315
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3316
3316
  "file": "/test/instance.ts",
@@ -3319,7 +3319,7 @@
3319
3319
  "tests": [],
3320
3320
  "suites": [
3321
3321
  {
3322
- "uuid": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3322
+ "uuid": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3323
3323
  "title": "static version()",
3324
3324
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3325
3325
  "file": "/test/instance.ts",
@@ -3330,7 +3330,7 @@
3330
3330
  "title": "should work with pyatv [L]",
3331
3331
  "fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
3332
3332
  "timedOut": false,
3333
- "duration": 526,
3333
+ "duration": 514,
3334
3334
  "state": "passed",
3335
3335
  "speed": "slow",
3336
3336
  "pass": true,
@@ -3339,8 +3339,8 @@
3339
3339
  "context": null,
3340
3340
  "code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield NodePyATVInstance.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n assert.strictEqual(result.module, version);\n});",
3341
3341
  "err": {},
3342
- "uuid": "99b09ed4-ff7e-404b-814a-d903dc42ed6c",
3343
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3342
+ "uuid": "0acf1ee6-3a74-4e4a-826a-57227798cc9b",
3343
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3344
3344
  "isHook": false,
3345
3345
  "skipped": false
3346
3346
  },
@@ -3357,8 +3357,8 @@
3357
3357
  "context": null,
3358
3358
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert.ok(result.pyatv);\n assert.strictEqual(result.pyatv, '0.7.4');\n});",
3359
3359
  "err": {},
3360
- "uuid": "759de713-d757-4079-882c-90e80b8a88d7",
3361
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3360
+ "uuid": "2ff6a631-40c3-447f-abec-3ce6d7d54810",
3361
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3362
3362
  "isHook": false,
3363
3363
  "skipped": false
3364
3364
  },
@@ -3366,7 +3366,7 @@
3366
3366
  "title": "should return the module version",
3367
3367
  "fullTitle": "NodePyATVInstance static version() should return the module version",
3368
3368
  "timedOut": false,
3369
- "duration": 2,
3369
+ "duration": 1,
3370
3370
  "state": "passed",
3371
3371
  "speed": "fast",
3372
3372
  "pass": true,
@@ -3375,8 +3375,8 @@
3375
3375
  "context": null,
3376
3376
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n assert.strictEqual(result.module, version);\n});",
3377
3377
  "err": {},
3378
- "uuid": "cb06f677-82c9-4976-9049-c387e49e14fc",
3379
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3378
+ "uuid": "0890892c-12d7-4faf-bee6-220470b6ff07",
3379
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3380
3380
  "isHook": false,
3381
3381
  "skipped": false
3382
3382
  },
@@ -3384,7 +3384,7 @@
3384
3384
  "title": "should handle option.atvremotePath",
3385
3385
  "fullTitle": "NodePyATVInstance static version() should handle option.atvremotePath",
3386
3386
  "timedOut": false,
3387
- "duration": 2,
3387
+ "duration": 0,
3388
3388
  "state": "passed",
3389
3389
  "speed": "fast",
3390
3390
  "pass": true,
@@ -3393,8 +3393,8 @@
3393
3393
  "context": null,
3394
3394
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n atvremotePath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
3395
3395
  "err": {},
3396
- "uuid": "579deb3e-a436-4cab-9e85-2589a3e25810",
3397
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3396
+ "uuid": "2741d3dc-b185-4ce4-b1d6-0edec86b9126",
3397
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3398
3398
  "isHook": false,
3399
3399
  "skipped": false
3400
3400
  },
@@ -3402,7 +3402,7 @@
3402
3402
  "title": "should work with option.debug = true",
3403
3403
  "fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
3404
3404
  "timedOut": false,
3405
- "duration": 2,
3405
+ "duration": 3,
3406
3406
  "state": "passed",
3407
3407
  "speed": "fast",
3408
3408
  "pass": true,
@@ -3411,8 +3411,8 @@
3411
3411
  "context": null,
3412
3412
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
3413
3413
  "err": {},
3414
- "uuid": "ef22a681-9cce-431b-aa6f-899ee48a77c2",
3415
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3414
+ "uuid": "4bded062-7bb3-49a5-a8ac-b86ad136976b",
3415
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3416
3416
  "isHook": false,
3417
3417
  "skipped": false
3418
3418
  },
@@ -3429,8 +3429,8 @@
3429
3429
  "context": null,
3430
3430
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: () => {\n // no debug log\n },\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
3431
3431
  "err": {},
3432
- "uuid": "76273833-2344-4ec9-ab96-b4a76671055e",
3433
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3432
+ "uuid": "8923f402-927a-42a5-bbbb-3f2f78050869",
3433
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3434
3434
  "isHook": false,
3435
3435
  "skipped": false
3436
3436
  },
@@ -3438,7 +3438,7 @@
3438
3438
  "title": "should return null on pyatv stderr output",
3439
3439
  "fullTitle": "NodePyATVInstance static version() should return null on pyatv stderr output",
3440
3440
  "timedOut": false,
3441
- "duration": 2,
3441
+ "duration": 1,
3442
3442
  "state": "passed",
3443
3443
  "speed": "fast",
3444
3444
  "pass": true,
@@ -3447,8 +3447,8 @@
3447
3447
  "context": null,
3448
3448
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert.strictEqual(result.pyatv, null);\n});",
3449
3449
  "err": {},
3450
- "uuid": "b94b51c9-d143-4591-be78-d93a8cae6c9b",
3451
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3450
+ "uuid": "24738b0f-95da-481d-8fc3-9612a214409c",
3451
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3452
3452
  "isHook": false,
3453
3453
  "skipped": false
3454
3454
  },
@@ -3465,8 +3465,8 @@
3465
3465
  "context": null,
3466
3466
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
3467
3467
  "err": {},
3468
- "uuid": "c2f3e0a1-744f-48a2-a13a-406509e611d7",
3469
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3468
+ "uuid": "d1c5c981-6ecd-4aae-bb1a-b8924d444a64",
3469
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3470
3470
  "isHook": false,
3471
3471
  "skipped": false
3472
3472
  },
@@ -3474,7 +3474,7 @@
3474
3474
  "title": "should return null on invalid pyatv version",
3475
3475
  "fullTitle": "NodePyATVInstance static version() should return null on invalid pyatv version",
3476
3476
  "timedOut": false,
3477
- "duration": 2,
3477
+ "duration": 1,
3478
3478
  "state": "passed",
3479
3479
  "speed": "fast",
3480
3480
  "pass": true,
@@ -3483,34 +3483,34 @@
3483
3483
  "context": null,
3484
3484
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
3485
3485
  "err": {},
3486
- "uuid": "04876484-d4d4-4f8f-b910-66108d018482",
3487
- "parentUUID": "0a0b729f-c272-489e-ba7f-ac0a26dcab75",
3486
+ "uuid": "36357be9-2a30-46cb-bc00-f79e472e834c",
3487
+ "parentUUID": "06763b3b-0c9e-40a7-9eee-73592717fc99",
3488
3488
  "isHook": false,
3489
3489
  "skipped": false
3490
3490
  }
3491
3491
  ],
3492
3492
  "suites": [],
3493
3493
  "passes": [
3494
- "99b09ed4-ff7e-404b-814a-d903dc42ed6c",
3495
- "759de713-d757-4079-882c-90e80b8a88d7",
3496
- "cb06f677-82c9-4976-9049-c387e49e14fc",
3497
- "579deb3e-a436-4cab-9e85-2589a3e25810",
3498
- "ef22a681-9cce-431b-aa6f-899ee48a77c2",
3499
- "76273833-2344-4ec9-ab96-b4a76671055e",
3500
- "b94b51c9-d143-4591-be78-d93a8cae6c9b",
3501
- "c2f3e0a1-744f-48a2-a13a-406509e611d7",
3502
- "04876484-d4d4-4f8f-b910-66108d018482"
3494
+ "0acf1ee6-3a74-4e4a-826a-57227798cc9b",
3495
+ "2ff6a631-40c3-447f-abec-3ce6d7d54810",
3496
+ "0890892c-12d7-4faf-bee6-220470b6ff07",
3497
+ "2741d3dc-b185-4ce4-b1d6-0edec86b9126",
3498
+ "4bded062-7bb3-49a5-a8ac-b86ad136976b",
3499
+ "8923f402-927a-42a5-bbbb-3f2f78050869",
3500
+ "24738b0f-95da-481d-8fc3-9612a214409c",
3501
+ "d1c5c981-6ecd-4aae-bb1a-b8924d444a64",
3502
+ "36357be9-2a30-46cb-bc00-f79e472e834c"
3503
3503
  ],
3504
3504
  "failures": [],
3505
3505
  "pending": [],
3506
3506
  "skipped": [],
3507
- "duration": 541,
3507
+ "duration": 525,
3508
3508
  "root": false,
3509
3509
  "rootEmpty": false,
3510
3510
  "_timeout": 2000
3511
3511
  },
3512
3512
  {
3513
- "uuid": "577020dc-6020-4a51-b7b3-2e5468e949dd",
3513
+ "uuid": "9d4d0f7b-eb12-4bf5-a26d-cf48e08f8563",
3514
3514
  "title": "static check()",
3515
3515
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3516
3516
  "file": "/test/instance.ts",
@@ -3521,7 +3521,7 @@
3521
3521
  "title": "should resolve in test environment [L]",
3522
3522
  "fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
3523
3523
  "timedOut": false,
3524
- "duration": 5849,
3524
+ "duration": 5876,
3525
3525
  "state": "passed",
3526
3526
  "speed": "slow",
3527
3527
  "pass": true,
@@ -3530,8 +3530,8 @@
3530
3530
  "context": null,
3531
3531
  "code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield NodePyATVInstance.check();\n});",
3532
3532
  "err": {},
3533
- "uuid": "b5c1b0d0-aed0-4cf1-b04c-e8747eb398a4",
3534
- "parentUUID": "577020dc-6020-4a51-b7b3-2e5468e949dd",
3533
+ "uuid": "69ce2128-a894-44fa-9379-b184224cf412",
3534
+ "parentUUID": "9d4d0f7b-eb12-4bf5-a26d-cf48e08f8563",
3535
3535
  "isHook": false,
3536
3536
  "skipped": false
3537
3537
  },
@@ -3548,8 +3548,8 @@
3548
3548
  "context": null,
3549
3549
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
3550
3550
  "err": {},
3551
- "uuid": "62b9636d-a68b-46a8-a024-3a2451e2fd40",
3552
- "parentUUID": "577020dc-6020-4a51-b7b3-2e5468e949dd",
3551
+ "uuid": "fe161165-f115-48a7-b1c3-2b848b84b507",
3552
+ "parentUUID": "9d4d0f7b-eb12-4bf5-a26d-cf48e08f8563",
3553
3553
  "isHook": false,
3554
3554
  "skipped": false
3555
3555
  },
@@ -3566,8 +3566,8 @@
3566
3566
  "context": null,
3567
3567
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 0.5.1').code(1).end();\n })\n });\n }), /Found pyatv, but unforunately it's too old. Please update pyatv./);\n});",
3568
3568
  "err": {},
3569
- "uuid": "ec366de5-c53d-4e26-9c92-0037de027a1e",
3570
- "parentUUID": "577020dc-6020-4a51-b7b3-2e5468e949dd",
3569
+ "uuid": "c80e9ba1-de35-4010-ad8c-974452865646",
3570
+ "parentUUID": "9d4d0f7b-eb12-4bf5-a26d-cf48e08f8563",
3571
3571
  "isHook": false,
3572
3572
  "skipped": false
3573
3573
  },
@@ -3584,29 +3584,29 @@
3584
3584
  "context": null,
3585
3585
  "code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n if (i === 0) {\n cp.stdout('atvremote 0.7.0').code(1).end();\n i++;\n }\n else {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n }\n })\n });\n }), /Unable to scan for devices/);\n});",
3586
3586
  "err": {},
3587
- "uuid": "3aca9441-e9e1-42b4-972d-6c5aeed7e4cb",
3588
- "parentUUID": "577020dc-6020-4a51-b7b3-2e5468e949dd",
3587
+ "uuid": "df9c3029-f70a-4c11-bf98-023ea3820f4c",
3588
+ "parentUUID": "9d4d0f7b-eb12-4bf5-a26d-cf48e08f8563",
3589
3589
  "isHook": false,
3590
3590
  "skipped": false
3591
3591
  }
3592
3592
  ],
3593
3593
  "suites": [],
3594
3594
  "passes": [
3595
- "b5c1b0d0-aed0-4cf1-b04c-e8747eb398a4",
3596
- "62b9636d-a68b-46a8-a024-3a2451e2fd40",
3597
- "ec366de5-c53d-4e26-9c92-0037de027a1e",
3598
- "3aca9441-e9e1-42b4-972d-6c5aeed7e4cb"
3595
+ "69ce2128-a894-44fa-9379-b184224cf412",
3596
+ "fe161165-f115-48a7-b1c3-2b848b84b507",
3597
+ "c80e9ba1-de35-4010-ad8c-974452865646",
3598
+ "df9c3029-f70a-4c11-bf98-023ea3820f4c"
3599
3599
  ],
3600
3600
  "failures": [],
3601
3601
  "pending": [],
3602
3602
  "skipped": [],
3603
- "duration": 5856,
3603
+ "duration": 5883,
3604
3604
  "root": false,
3605
3605
  "rootEmpty": false,
3606
3606
  "_timeout": 2000
3607
3607
  },
3608
3608
  {
3609
- "uuid": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3609
+ "uuid": "66361910-f402-4a66-8fb2-02d734b490e3",
3610
3610
  "title": "static find()",
3611
3611
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3612
3612
  "file": "/test/instance.ts",
@@ -3617,7 +3617,7 @@
3617
3617
  "title": "should work [L]",
3618
3618
  "fullTitle": "NodePyATVInstance static find() should work [L]",
3619
3619
  "timedOut": false,
3620
- "duration": 5431,
3620
+ "duration": 5443,
3621
3621
  "state": "passed",
3622
3622
  "speed": "slow",
3623
3623
  "pass": true,
@@ -3626,8 +3626,8 @@
3626
3626
  "context": null,
3627
3627
  "code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield NodePyATVInstance.find();\n assert.ok(Array.isArray(result));\n});",
3628
3628
  "err": {},
3629
- "uuid": "27f46738-5968-4465-a26b-4d63b8501a01",
3630
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3629
+ "uuid": "99639e3b-ace9-4c20-9c63-cccd524112dd",
3630
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3631
3631
  "isHook": false,
3632
3632
  "skipped": false
3633
3633
  },
@@ -3644,8 +3644,8 @@
3644
3644
  "context": null,
3645
3645
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n atvscriptPath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
3646
3646
  "err": {},
3647
- "uuid": "4162be72-d5e9-496e-8d84-29ebfaf06a67",
3648
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3647
+ "uuid": "021d9371-5975-4b89-9ea6-2ebeded87188",
3648
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3649
3649
  "isHook": false,
3650
3650
  "skipped": false
3651
3651
  },
@@ -3653,7 +3653,7 @@
3653
3653
  "title": "should throw error on stderr output",
3654
3654
  "fullTitle": "NodePyATVInstance static find() should throw error on stderr output",
3655
3655
  "timedOut": false,
3656
- "duration": 2,
3656
+ "duration": 1,
3657
3657
  "state": "passed",
3658
3658
  "speed": "fast",
3659
3659
  "pass": true,
@@ -3662,8 +3662,8 @@
3662
3662
  "context": null,
3663
3663
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
3664
3664
  "err": {},
3665
- "uuid": "ae903f77-70a6-4fee-9430-c385fdcfb7ae",
3666
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3665
+ "uuid": "cdbb7f96-5c27-4050-90c9-859820d50477",
3666
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3667
3667
  "isHook": false,
3668
3668
  "skipped": false
3669
3669
  },
@@ -3671,7 +3671,7 @@
3671
3671
  "title": "should throw error on error",
3672
3672
  "fullTitle": "NodePyATVInstance static find() should throw error on error",
3673
3673
  "timedOut": false,
3674
- "duration": 1,
3674
+ "duration": 2,
3675
3675
  "state": "passed",
3676
3676
  "speed": "fast",
3677
3677
  "pass": true,
@@ -3680,8 +3680,8 @@
3680
3680
  "context": null,
3681
3681
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
3682
3682
  "err": {},
3683
- "uuid": "f6dcc1fa-c616-42e6-aa12-82b4e408eaf6",
3684
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3683
+ "uuid": "c33826bb-f8a8-43ed-a6e0-3e56d3c3f7c0",
3684
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3685
3685
  "isHook": false,
3686
3686
  "skipped": false
3687
3687
  },
@@ -3698,8 +3698,8 @@
3698
3698
  "context": null,
3699
3699
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout(JSON.stringify({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).substr(1)).end();\n })\n });\n }), /Unable to parse result/);\n});",
3700
3700
  "err": {},
3701
- "uuid": "6e342c69-acfc-49b0-8afd-72e6492f0d40",
3702
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3701
+ "uuid": "ecf0b5c5-3f2b-431f-a331-8bfa9203086d",
3702
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3703
3703
  "isHook": false,
3704
3704
  "skipped": false
3705
3705
  },
@@ -3707,7 +3707,7 @@
3707
3707
  "title": "should throw error if atvscript result is not successfull",
3708
3708
  "fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
3709
3709
  "timedOut": false,
3710
- "duration": 1,
3710
+ "duration": 2,
3711
3711
  "state": "passed",
3712
3712
  "speed": "fast",
3713
3713
  "pass": true,
@@ -3716,8 +3716,8 @@
3716
3716
  "context": null,
3717
3717
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
3718
3718
  "err": {},
3719
- "uuid": "44b8db43-e362-4332-addc-db42de2bfae3",
3720
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3719
+ "uuid": "d4a2cb86-dea3-432b-bc85-7fcbfcb61e19",
3720
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3721
3721
  "isHook": false,
3722
3722
  "skipped": false
3723
3723
  },
@@ -3734,8 +3734,8 @@
3734
3734
  "context": null,
3735
3735
  "code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
3736
3736
  "err": {},
3737
- "uuid": "aa11394b-0f09-461b-817e-388105abb09d",
3738
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3737
+ "uuid": "d81a13dc-fa8a-4f32-831c-29bb5cb44d57",
3738
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3739
3739
  "isHook": false,
3740
3740
  "skipped": false
3741
3741
  },
@@ -3752,8 +3752,8 @@
3752
3752
  "context": null,
3753
3753
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const devices = yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success',\n datetime: '2020-11-06T20:47:30.840022+01:00',\n devices: [\n {\n name: 'Vardagsrum',\n address: '10.0.10.81',\n identifier: 'xxx'\n }\n ]\n }).code(1).end();\n })\n });\n assert.strictEqual(devices.length, 1);\n assert.strictEqual(devices[0].name, 'Vardagsrum');\n assert.strictEqual(devices[0].host, '10.0.10.81');\n assert.strictEqual(devices[0].id, 'xxx');\n assert.strictEqual(devices[0].model, undefined);\n assert.strictEqual(devices[0].modelName, undefined);\n assert.strictEqual(devices[0].os, undefined);\n assert.strictEqual(devices[0].version, undefined);\n assert.deepStrictEqual(devices[0].services, undefined);\n});",
3754
3754
  "err": {},
3755
- "uuid": "c37c2518-13ce-4722-82b9-0eb40284fb4e",
3756
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3755
+ "uuid": "e818e713-8b53-4e03-b4e6-cf231e380aab",
3756
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3757
3757
  "isHook": false,
3758
3758
  "skipped": false
3759
3759
  },
@@ -3761,7 +3761,7 @@
3761
3761
  "title": "should work if devices are with device_info / services",
3762
3762
  "fullTitle": "NodePyATVInstance static find() should work if devices are with device_info / services",
3763
3763
  "timedOut": false,
3764
- "duration": 1,
3764
+ "duration": 2,
3765
3765
  "state": "passed",
3766
3766
  "speed": "fast",
3767
3767
  "pass": true,
@@ -3770,34 +3770,34 @@
3770
3770
  "context": null,
3771
3771
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const devices = yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success',\n datetime: '2020-11-06T20:47:30.840022+01:00',\n devices: [\n {\n name: 'Vardagsrum',\n address: '10.0.10.81',\n identifier: 'xxx',\n device_info: {\n 'model': 'Gen4K',\n 'model_str': 'Apple TV 4K',\n 'operating_system': 'TvOS',\n 'version': '15.5.1'\n },\n services: [\n {\n protocol: 'mrp',\n port: 49152\n },\n {\n protocol: 'airplay',\n port: 7000\n }\n ]\n }\n ]\n }).code(1).end();\n })\n });\n assert.strictEqual(devices.length, 1);\n assert.strictEqual(devices[0].name, 'Vardagsrum');\n assert.strictEqual(devices[0].host, '10.0.10.81');\n assert.strictEqual(devices[0].id, 'xxx');\n assert.strictEqual(devices[0].model, 'Gen4K');\n assert.strictEqual(devices[0].modelName, 'Apple TV 4K');\n assert.strictEqual(devices[0].os, 'TvOS');\n assert.strictEqual(devices[0].version, '15.5.1');\n assert.deepStrictEqual(devices[0].services, [\n {\n protocol: NodePyATVProtocol.mrp,\n port: 49152\n },\n {\n protocol: NodePyATVProtocol.airplay,\n port: 7000\n }\n ]);\n});",
3772
3772
  "err": {},
3773
- "uuid": "8332adde-870a-49cd-b4e6-e2aa9d747f4a",
3774
- "parentUUID": "8b4b28ca-fa65-4a86-a936-2cf59bdf2b52",
3773
+ "uuid": "ba69f5e4-1131-4253-a55b-1ee56f91e087",
3774
+ "parentUUID": "66361910-f402-4a66-8fb2-02d734b490e3",
3775
3775
  "isHook": false,
3776
3776
  "skipped": false
3777
3777
  }
3778
3778
  ],
3779
3779
  "suites": [],
3780
3780
  "passes": [
3781
- "27f46738-5968-4465-a26b-4d63b8501a01",
3782
- "4162be72-d5e9-496e-8d84-29ebfaf06a67",
3783
- "ae903f77-70a6-4fee-9430-c385fdcfb7ae",
3784
- "f6dcc1fa-c616-42e6-aa12-82b4e408eaf6",
3785
- "6e342c69-acfc-49b0-8afd-72e6492f0d40",
3786
- "44b8db43-e362-4332-addc-db42de2bfae3",
3787
- "aa11394b-0f09-461b-817e-388105abb09d",
3788
- "c37c2518-13ce-4722-82b9-0eb40284fb4e",
3789
- "8332adde-870a-49cd-b4e6-e2aa9d747f4a"
3781
+ "99639e3b-ace9-4c20-9c63-cccd524112dd",
3782
+ "021d9371-5975-4b89-9ea6-2ebeded87188",
3783
+ "cdbb7f96-5c27-4050-90c9-859820d50477",
3784
+ "c33826bb-f8a8-43ed-a6e0-3e56d3c3f7c0",
3785
+ "ecf0b5c5-3f2b-431f-a331-8bfa9203086d",
3786
+ "d4a2cb86-dea3-432b-bc85-7fcbfcb61e19",
3787
+ "d81a13dc-fa8a-4f32-831c-29bb5cb44d57",
3788
+ "e818e713-8b53-4e03-b4e6-cf231e380aab",
3789
+ "ba69f5e4-1131-4253-a55b-1ee56f91e087"
3790
3790
  ],
3791
3791
  "failures": [],
3792
3792
  "pending": [],
3793
3793
  "skipped": [],
3794
- "duration": 5441,
3794
+ "duration": 5455,
3795
3795
  "root": false,
3796
3796
  "rootEmpty": false,
3797
3797
  "_timeout": 2000
3798
3798
  },
3799
3799
  {
3800
- "uuid": "5b554cf6-87ea-40e3-b5a0-15e495701e5c",
3800
+ "uuid": "1a302787-bd48-4229-a3c7-a636238ee4a5",
3801
3801
  "title": "static device()",
3802
3802
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3803
3803
  "file": "/test/instance.ts",
@@ -3817,15 +3817,15 @@
3817
3817
  "context": null,
3818
3818
  "code": "const device = NodePyATVInstance.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert.strictEqual(device.host, '192.168.178.6');\nassert.strictEqual(device.name, 'My Testdevice');",
3819
3819
  "err": {},
3820
- "uuid": "acef8c72-af29-4e7f-94b4-4e1447fa0f5c",
3821
- "parentUUID": "5b554cf6-87ea-40e3-b5a0-15e495701e5c",
3820
+ "uuid": "f5288429-1a21-4af9-bc4e-e5047fa89fea",
3821
+ "parentUUID": "1a302787-bd48-4229-a3c7-a636238ee4a5",
3822
3822
  "isHook": false,
3823
3823
  "skipped": false
3824
3824
  }
3825
3825
  ],
3826
3826
  "suites": [],
3827
3827
  "passes": [
3828
- "acef8c72-af29-4e7f-94b4-4e1447fa0f5c"
3828
+ "f5288429-1a21-4af9-bc4e-e5047fa89fea"
3829
3829
  ],
3830
3830
  "failures": [],
3831
3831
  "pending": [],
@@ -3836,7 +3836,7 @@
3836
3836
  "_timeout": 2000
3837
3837
  },
3838
3838
  {
3839
- "uuid": "3043aae4-d99c-4e22-b986-73e11ad60869",
3839
+ "uuid": "9897a50f-f5d6-435b-86ab-66fc7a5298c3",
3840
3840
  "title": "version()",
3841
3841
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3842
3842
  "file": "/test/instance.ts",
@@ -3847,7 +3847,7 @@
3847
3847
  "title": "should merge options from constructor",
3848
3848
  "fullTitle": "NodePyATVInstance version() should merge options from constructor",
3849
3849
  "timedOut": false,
3850
- "duration": 1,
3850
+ "duration": 2,
3851
3851
  "state": "passed",
3852
3852
  "speed": "fast",
3853
3853
  "pass": true,
@@ -3856,26 +3856,26 @@
3856
3856
  "context": null,
3857
3857
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield i.version({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
3858
3858
  "err": {},
3859
- "uuid": "3bef51d0-5712-4c13-bf41-854f70c5a4e0",
3860
- "parentUUID": "3043aae4-d99c-4e22-b986-73e11ad60869",
3859
+ "uuid": "dec11f32-0409-4a16-a296-7468b88aec7a",
3860
+ "parentUUID": "9897a50f-f5d6-435b-86ab-66fc7a5298c3",
3861
3861
  "isHook": false,
3862
3862
  "skipped": false
3863
3863
  }
3864
3864
  ],
3865
3865
  "suites": [],
3866
3866
  "passes": [
3867
- "3bef51d0-5712-4c13-bf41-854f70c5a4e0"
3867
+ "dec11f32-0409-4a16-a296-7468b88aec7a"
3868
3868
  ],
3869
3869
  "failures": [],
3870
3870
  "pending": [],
3871
3871
  "skipped": [],
3872
- "duration": 1,
3872
+ "duration": 2,
3873
3873
  "root": false,
3874
3874
  "rootEmpty": false,
3875
3875
  "_timeout": 2000
3876
3876
  },
3877
3877
  {
3878
- "uuid": "69a2e5c2-8a7a-4ba4-8f71-629e63480e5c",
3878
+ "uuid": "d4809c8b-aa5b-4c4e-b77b-d46163548359",
3879
3879
  "title": "check()",
3880
3880
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3881
3881
  "file": "/test/instance.ts",
@@ -3886,7 +3886,7 @@
3886
3886
  "title": "should merge options from constructor",
3887
3887
  "fullTitle": "NodePyATVInstance check() should merge options from constructor",
3888
3888
  "timedOut": false,
3889
- "duration": 0,
3889
+ "duration": 2,
3890
3890
  "state": "passed",
3891
3891
  "speed": "fast",
3892
3892
  "pass": true,
@@ -3895,26 +3895,26 @@
3895
3895
  "context": null,
3896
3896
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
3897
3897
  "err": {},
3898
- "uuid": "99a459ef-d1f8-4e9f-a60b-2244327783eb",
3899
- "parentUUID": "69a2e5c2-8a7a-4ba4-8f71-629e63480e5c",
3898
+ "uuid": "018d2310-accb-4bfb-a4a3-7ae579c974f2",
3899
+ "parentUUID": "d4809c8b-aa5b-4c4e-b77b-d46163548359",
3900
3900
  "isHook": false,
3901
3901
  "skipped": false
3902
3902
  }
3903
3903
  ],
3904
3904
  "suites": [],
3905
3905
  "passes": [
3906
- "99a459ef-d1f8-4e9f-a60b-2244327783eb"
3906
+ "018d2310-accb-4bfb-a4a3-7ae579c974f2"
3907
3907
  ],
3908
3908
  "failures": [],
3909
3909
  "pending": [],
3910
3910
  "skipped": [],
3911
- "duration": 0,
3911
+ "duration": 2,
3912
3912
  "root": false,
3913
3913
  "rootEmpty": false,
3914
3914
  "_timeout": 2000
3915
3915
  },
3916
3916
  {
3917
- "uuid": "38781909-60ad-457c-a4d2-b4a825519dfc",
3917
+ "uuid": "1d25a31c-f4a9-4a6d-9268-c5b671e33058",
3918
3918
  "title": "find()",
3919
3919
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3920
3920
  "file": "/test/instance.ts",
@@ -3934,15 +3934,15 @@
3934
3934
  "context": null,
3935
3935
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvscriptPath: 'test' });\n yield i.find({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
3936
3936
  "err": {},
3937
- "uuid": "6f60f30d-22e4-442f-8395-111f92e381ee",
3938
- "parentUUID": "38781909-60ad-457c-a4d2-b4a825519dfc",
3937
+ "uuid": "5348b329-4f59-4955-a47d-4945b6b21eda",
3938
+ "parentUUID": "1d25a31c-f4a9-4a6d-9268-c5b671e33058",
3939
3939
  "isHook": false,
3940
3940
  "skipped": false
3941
3941
  }
3942
3942
  ],
3943
3943
  "suites": [],
3944
3944
  "passes": [
3945
- "6f60f30d-22e4-442f-8395-111f92e381ee"
3945
+ "5348b329-4f59-4955-a47d-4945b6b21eda"
3946
3946
  ],
3947
3947
  "failures": [],
3948
3948
  "pending": [],
@@ -3953,7 +3953,7 @@
3953
3953
  "_timeout": 2000
3954
3954
  },
3955
3955
  {
3956
- "uuid": "11dfb33c-fde9-44fc-a349-89b2f9e637f9",
3956
+ "uuid": "1845455f-50f8-4641-a230-9e3eb89a943a",
3957
3957
  "title": "device()",
3958
3958
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3959
3959
  "file": "/test/instance.ts",
@@ -3964,7 +3964,7 @@
3964
3964
  "title": "should merge options from constructor",
3965
3965
  "fullTitle": "NodePyATVInstance device() should merge options from constructor",
3966
3966
  "timedOut": false,
3967
- "duration": 0,
3967
+ "duration": 1,
3968
3968
  "state": "passed",
3969
3969
  "speed": "fast",
3970
3970
  "pass": true,
@@ -3973,26 +3973,26 @@
3973
3973
  "context": null,
3974
3974
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert.deepStrictEqual(d.debug, true);\n});",
3975
3975
  "err": {},
3976
- "uuid": "dedbfb31-c45c-45b9-a3b8-465b148eb3ac",
3977
- "parentUUID": "11dfb33c-fde9-44fc-a349-89b2f9e637f9",
3976
+ "uuid": "a2414c8e-4d1a-4cab-8de9-660a4d8e42c1",
3977
+ "parentUUID": "1845455f-50f8-4641-a230-9e3eb89a943a",
3978
3978
  "isHook": false,
3979
3979
  "skipped": false
3980
3980
  }
3981
3981
  ],
3982
3982
  "suites": [],
3983
3983
  "passes": [
3984
- "dedbfb31-c45c-45b9-a3b8-465b148eb3ac"
3984
+ "a2414c8e-4d1a-4cab-8de9-660a4d8e42c1"
3985
3985
  ],
3986
3986
  "failures": [],
3987
3987
  "pending": [],
3988
3988
  "skipped": [],
3989
- "duration": 0,
3989
+ "duration": 1,
3990
3990
  "root": false,
3991
3991
  "rootEmpty": false,
3992
3992
  "_timeout": 2000
3993
3993
  },
3994
3994
  {
3995
- "uuid": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
3995
+ "uuid": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
3996
3996
  "title": "Type Exports",
3997
3997
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3998
3998
  "file": "/test/instance.ts",
@@ -4012,8 +4012,8 @@
4012
4012
  "context": null,
4013
4013
  "code": "assert.ok(NodePyATVProtocol);",
4014
4014
  "err": {},
4015
- "uuid": "f308d7bc-378e-44df-ba14-db52b23bd416",
4016
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4015
+ "uuid": "c529d3f9-f29b-4ee5-a692-d2f917bdc40d",
4016
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4017
4017
  "isHook": false,
4018
4018
  "skipped": false
4019
4019
  },
@@ -4030,8 +4030,8 @@
4030
4030
  "context": null,
4031
4031
  "code": "assert.ok(NodePyATVMediaType);",
4032
4032
  "err": {},
4033
- "uuid": "3634ea27-8137-4e47-8e4d-4d1bd7e91018",
4034
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4033
+ "uuid": "7e196f6d-8951-40d6-b48d-05be1cab98a0",
4034
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4035
4035
  "isHook": false,
4036
4036
  "skipped": false
4037
4037
  },
@@ -4048,8 +4048,8 @@
4048
4048
  "context": null,
4049
4049
  "code": "assert.ok(NodePyATVDeviceEvent);",
4050
4050
  "err": {},
4051
- "uuid": "63ceb206-4aa7-4abb-a93e-f6a022e29817",
4052
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4051
+ "uuid": "1d790370-9d77-471f-99a1-db31924a0b67",
4052
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4053
4053
  "isHook": false,
4054
4054
  "skipped": false
4055
4055
  },
@@ -4066,8 +4066,8 @@
4066
4066
  "context": null,
4067
4067
  "code": "assert.ok(NodePyATVDeviceState);",
4068
4068
  "err": {},
4069
- "uuid": "746bf5a9-dba4-49ff-a734-f91f8748a68d",
4070
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4069
+ "uuid": "c322a01f-5f84-4d34-abdc-c83d4cdd66ba",
4070
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4071
4071
  "isHook": false,
4072
4072
  "skipped": false
4073
4073
  },
@@ -4084,8 +4084,8 @@
4084
4084
  "context": null,
4085
4085
  "code": "assert.ok(NodePyATVRepeatState);",
4086
4086
  "err": {},
4087
- "uuid": "d7552821-d071-44d6-a501-9d1c6fecae47",
4088
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4087
+ "uuid": "c26424c9-ee09-4f7f-81e6-2d43e64fdc8a",
4088
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4089
4089
  "isHook": false,
4090
4090
  "skipped": false
4091
4091
  },
@@ -4102,8 +4102,8 @@
4102
4102
  "context": null,
4103
4103
  "code": "assert.ok(NodePyATVShuffleState);",
4104
4104
  "err": {},
4105
- "uuid": "9a7f0996-1c9b-48b3-8acb-e22c42dd1ff6",
4106
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4105
+ "uuid": "5d1a3dc1-80c0-46d7-9cfe-dff39ede197d",
4106
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4107
4107
  "isHook": false,
4108
4108
  "skipped": false
4109
4109
  },
@@ -4120,8 +4120,8 @@
4120
4120
  "context": null,
4121
4121
  "code": "assert.ok(NodePyATVKeys);",
4122
4122
  "err": {},
4123
- "uuid": "d17f7e3f-62fd-461d-aa04-61822caa1a3a",
4124
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4123
+ "uuid": "350e54c2-c73b-4967-a762-de520db7c164",
4124
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4125
4125
  "isHook": false,
4126
4126
  "skipped": false
4127
4127
  },
@@ -4138,8 +4138,8 @@
4138
4138
  "context": null,
4139
4139
  "code": "assert.ok(NodePyATVListenerState);",
4140
4140
  "err": {},
4141
- "uuid": "2ea1c9cf-c34a-4c8e-ad7f-ebd8821a1de1",
4142
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4141
+ "uuid": "7d30efe4-8793-4933-a871-110d3e6753b9",
4142
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4143
4143
  "isHook": false,
4144
4144
  "skipped": false
4145
4145
  },
@@ -4156,23 +4156,23 @@
4156
4156
  "context": null,
4157
4157
  "code": "assert.ok(NodePyATVPowerState);",
4158
4158
  "err": {},
4159
- "uuid": "0cbe9881-3bcc-41f2-8cae-d7589ce1c841",
4160
- "parentUUID": "8f71f928-53e5-4c83-a496-7163fe1ce8cd",
4159
+ "uuid": "161ff65e-675b-4150-9275-fef643cf0356",
4160
+ "parentUUID": "6a7e5ff1-98e5-42b5-9eb2-116f4c95d0b4",
4161
4161
  "isHook": false,
4162
4162
  "skipped": false
4163
4163
  }
4164
4164
  ],
4165
4165
  "suites": [],
4166
4166
  "passes": [
4167
- "f308d7bc-378e-44df-ba14-db52b23bd416",
4168
- "3634ea27-8137-4e47-8e4d-4d1bd7e91018",
4169
- "63ceb206-4aa7-4abb-a93e-f6a022e29817",
4170
- "746bf5a9-dba4-49ff-a734-f91f8748a68d",
4171
- "d7552821-d071-44d6-a501-9d1c6fecae47",
4172
- "9a7f0996-1c9b-48b3-8acb-e22c42dd1ff6",
4173
- "d17f7e3f-62fd-461d-aa04-61822caa1a3a",
4174
- "2ea1c9cf-c34a-4c8e-ad7f-ebd8821a1de1",
4175
- "0cbe9881-3bcc-41f2-8cae-d7589ce1c841"
4167
+ "c529d3f9-f29b-4ee5-a692-d2f917bdc40d",
4168
+ "7e196f6d-8951-40d6-b48d-05be1cab98a0",
4169
+ "1d790370-9d77-471f-99a1-db31924a0b67",
4170
+ "c322a01f-5f84-4d34-abdc-c83d4cdd66ba",
4171
+ "c26424c9-ee09-4f7f-81e6-2d43e64fdc8a",
4172
+ "5d1a3dc1-80c0-46d7-9cfe-dff39ede197d",
4173
+ "350e54c2-c73b-4967-a762-de520db7c164",
4174
+ "7d30efe4-8793-4933-a871-110d3e6753b9",
4175
+ "161ff65e-675b-4150-9275-fef643cf0356"
4176
4176
  ],
4177
4177
  "failures": [],
4178
4178
  "pending": [],
@@ -4193,7 +4193,7 @@
4193
4193
  "_timeout": 2000
4194
4194
  },
4195
4195
  {
4196
- "uuid": "c86ea387-66a8-4073-b162-f37d5719664d",
4196
+ "uuid": "f1c6b3b1-ca77-4728-ab78-2e479ed081d2",
4197
4197
  "title": "Tools",
4198
4198
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4199
4199
  "file": "/test/tools.ts",
@@ -4202,7 +4202,7 @@
4202
4202
  "tests": [],
4203
4203
  "suites": [
4204
4204
  {
4205
- "uuid": "2e03419f-c8fc-4b03-b3ba-b9098f5608ed",
4205
+ "uuid": "352e0a99-8a4b-458f-af01-4c7d60d7a4e5",
4206
4206
  "title": "addRequestId() / removeRequestId()",
4207
4207
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4208
4208
  "file": "/test/tools.ts",
@@ -4222,8 +4222,8 @@
4222
4222
  "context": null,
4223
4223
  "code": "const id = addRequestId();\nassert.strictEqual(typeof id, 'string');\nremoveRequestId(id);",
4224
4224
  "err": {},
4225
- "uuid": "b3130ce0-14cf-4cb3-be81-5daef95705ce",
4226
- "parentUUID": "2e03419f-c8fc-4b03-b3ba-b9098f5608ed",
4225
+ "uuid": "4b9f55b3-2d47-4bbc-8f12-8ea7fa92bc97",
4226
+ "parentUUID": "352e0a99-8a4b-458f-af01-4c7d60d7a4e5",
4227
4227
  "isHook": false,
4228
4228
  "skipped": false
4229
4229
  },
@@ -4240,16 +4240,16 @@
4240
4240
  "context": null,
4241
4241
  "code": "removeRequestId('FOO');",
4242
4242
  "err": {},
4243
- "uuid": "a4f91c21-df4d-4a28-970b-b6eea4d8213d",
4244
- "parentUUID": "2e03419f-c8fc-4b03-b3ba-b9098f5608ed",
4243
+ "uuid": "5e736e89-9310-4d98-8b85-b62c4a7d5245",
4244
+ "parentUUID": "352e0a99-8a4b-458f-af01-4c7d60d7a4e5",
4245
4245
  "isHook": false,
4246
4246
  "skipped": false
4247
4247
  }
4248
4248
  ],
4249
4249
  "suites": [],
4250
4250
  "passes": [
4251
- "b3130ce0-14cf-4cb3-be81-5daef95705ce",
4252
- "a4f91c21-df4d-4a28-970b-b6eea4d8213d"
4251
+ "4b9f55b3-2d47-4bbc-8f12-8ea7fa92bc97",
4252
+ "5e736e89-9310-4d98-8b85-b62c4a7d5245"
4253
4253
  ],
4254
4254
  "failures": [],
4255
4255
  "pending": [],
@@ -4260,7 +4260,7 @@
4260
4260
  "_timeout": 2000
4261
4261
  },
4262
4262
  {
4263
- "uuid": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4263
+ "uuid": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4264
4264
  "title": "debug()",
4265
4265
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4266
4266
  "file": "/test/tools.ts",
@@ -4280,8 +4280,8 @@
4280
4280
  "context": null,
4281
4281
  "code": "debug('TEST', 'Hello World.', {});",
4282
4282
  "err": {},
4283
- "uuid": "f30cd22e-b3c0-4711-ad9e-8c1b5e7096d0",
4284
- "parentUUID": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4283
+ "uuid": "9ef4a6c9-578a-4749-ab0b-6ae70130c5ba",
4284
+ "parentUUID": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4285
4285
  "isHook": false,
4286
4286
  "skipped": false
4287
4287
  },
@@ -4298,8 +4298,8 @@
4298
4298
  "context": null,
4299
4299
  "code": "debug('TEST', 'Hello World.', { debug: true });",
4300
4300
  "err": {},
4301
- "uuid": "b1d3c0d2-bbef-4723-8774-5ec017100344",
4302
- "parentUUID": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4301
+ "uuid": "5f519ae7-fbcb-4798-a9d1-9f9108ca9918",
4302
+ "parentUUID": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4303
4303
  "isHook": false,
4304
4304
  "skipped": false
4305
4305
  },
@@ -4316,8 +4316,8 @@
4316
4316
  "context": null,
4317
4317
  "code": "debug('TEST', 'Hello World.', {\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.ok(msg.includes('Hello World'));\n }\n});",
4318
4318
  "err": {},
4319
- "uuid": "9886f29e-be16-41af-93cb-526c261a8087",
4320
- "parentUUID": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4319
+ "uuid": "07894bbc-5567-4ac4-9c95-94dc64214588",
4320
+ "parentUUID": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4321
4321
  "isHook": false,
4322
4322
  "skipped": false
4323
4323
  },
@@ -4334,8 +4334,8 @@
4334
4334
  "context": null,
4335
4335
  "code": "debug('TEST', 'Hello World.', { noColors: true });",
4336
4336
  "err": {},
4337
- "uuid": "31a970bd-c056-4901-878a-dcf92fa3e5bb",
4338
- "parentUUID": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4337
+ "uuid": "63934d00-1243-4e49-827d-3cafca621e3e",
4338
+ "parentUUID": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4339
4339
  "isHook": false,
4340
4340
  "skipped": false
4341
4341
  },
@@ -4352,19 +4352,19 @@
4352
4352
  "context": null,
4353
4353
  "code": "debug('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
4354
4354
  "err": {},
4355
- "uuid": "42e8d91d-4a95-4b6d-8034-8841958cc0ab",
4356
- "parentUUID": "32c87c46-f58e-4dd3-848f-aecc585ec31d",
4355
+ "uuid": "38e49449-ab4c-4a11-bf70-1a6145fc3eb8",
4356
+ "parentUUID": "d0eec9f4-161a-424a-a1ce-949fd53c9eb9",
4357
4357
  "isHook": false,
4358
4358
  "skipped": false
4359
4359
  }
4360
4360
  ],
4361
4361
  "suites": [],
4362
4362
  "passes": [
4363
- "f30cd22e-b3c0-4711-ad9e-8c1b5e7096d0",
4364
- "b1d3c0d2-bbef-4723-8774-5ec017100344",
4365
- "9886f29e-be16-41af-93cb-526c261a8087",
4366
- "31a970bd-c056-4901-878a-dcf92fa3e5bb",
4367
- "42e8d91d-4a95-4b6d-8034-8841958cc0ab"
4363
+ "9ef4a6c9-578a-4749-ab0b-6ae70130c5ba",
4364
+ "5f519ae7-fbcb-4798-a9d1-9f9108ca9918",
4365
+ "07894bbc-5567-4ac4-9c95-94dc64214588",
4366
+ "63934d00-1243-4e49-827d-3cafca621e3e",
4367
+ "38e49449-ab4c-4a11-bf70-1a6145fc3eb8"
4368
4368
  ],
4369
4369
  "failures": [],
4370
4370
  "pending": [],
@@ -4375,7 +4375,7 @@
4375
4375
  "_timeout": 2000
4376
4376
  },
4377
4377
  {
4378
- "uuid": "b792c465-de9b-4c9a-883e-2e0dc95588aa",
4378
+ "uuid": "e4d6e8a1-1643-4a01-9d8d-a51d6534729c",
4379
4379
  "title": "getExecutable()",
4380
4380
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4381
4381
  "file": "/test/tools.ts",
@@ -4386,7 +4386,7 @@
4386
4386
  "title": "should handle atvremotePath if set",
4387
4387
  "fullTitle": "Tools getExecutable() should handle atvremotePath if set",
4388
4388
  "timedOut": false,
4389
- "duration": 0,
4389
+ "duration": 1,
4390
4390
  "state": "passed",
4391
4391
  "speed": "fast",
4392
4392
  "pass": true,
@@ -4395,8 +4395,8 @@
4395
4395
  "context": null,
4396
4396
  "code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/1');",
4397
4397
  "err": {},
4398
- "uuid": "399aa5bf-b8c8-4f26-9f17-817f4f2628c1",
4399
- "parentUUID": "b792c465-de9b-4c9a-883e-2e0dc95588aa",
4398
+ "uuid": "a74719c9-16c1-4e9c-a65f-508b364e9549",
4399
+ "parentUUID": "e4d6e8a1-1643-4a01-9d8d-a51d6534729c",
4400
4400
  "isHook": false,
4401
4401
  "skipped": false
4402
4402
  },
@@ -4413,8 +4413,8 @@
4413
4413
  "context": null,
4414
4414
  "code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/2');",
4415
4415
  "err": {},
4416
- "uuid": "457dc3ab-eeeb-4673-951e-44f7c73ba0c5",
4417
- "parentUUID": "b792c465-de9b-4c9a-883e-2e0dc95588aa",
4416
+ "uuid": "1bf94e97-0ddb-4ca8-95c3-ad16cd86c82e",
4417
+ "parentUUID": "e4d6e8a1-1643-4a01-9d8d-a51d6534729c",
4418
4418
  "isHook": false,
4419
4419
  "skipped": false
4420
4420
  },
@@ -4431,8 +4431,8 @@
4431
4431
  "context": null,
4432
4432
  "code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert.strictEqual(result, 'atvremote');",
4433
4433
  "err": {},
4434
- "uuid": "dfd1849d-febf-4518-abab-b0802b4d1c85",
4435
- "parentUUID": "b792c465-de9b-4c9a-883e-2e0dc95588aa",
4434
+ "uuid": "93502aa5-b877-46aa-bb0c-61ed7ad8f052",
4435
+ "parentUUID": "e4d6e8a1-1643-4a01-9d8d-a51d6534729c",
4436
4436
  "isHook": false,
4437
4437
  "skipped": false
4438
4438
  },
@@ -4449,29 +4449,29 @@
4449
4449
  "context": null,
4450
4450
  "code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert.strictEqual(result, 'atvscript');",
4451
4451
  "err": {},
4452
- "uuid": "6e7546d6-c42c-4134-9f99-596400486943",
4453
- "parentUUID": "b792c465-de9b-4c9a-883e-2e0dc95588aa",
4452
+ "uuid": "55938522-4f32-475b-966f-de74ed38c189",
4453
+ "parentUUID": "e4d6e8a1-1643-4a01-9d8d-a51d6534729c",
4454
4454
  "isHook": false,
4455
4455
  "skipped": false
4456
4456
  }
4457
4457
  ],
4458
4458
  "suites": [],
4459
4459
  "passes": [
4460
- "399aa5bf-b8c8-4f26-9f17-817f4f2628c1",
4461
- "457dc3ab-eeeb-4673-951e-44f7c73ba0c5",
4462
- "dfd1849d-febf-4518-abab-b0802b4d1c85",
4463
- "6e7546d6-c42c-4134-9f99-596400486943"
4460
+ "a74719c9-16c1-4e9c-a65f-508b364e9549",
4461
+ "1bf94e97-0ddb-4ca8-95c3-ad16cd86c82e",
4462
+ "93502aa5-b877-46aa-bb0c-61ed7ad8f052",
4463
+ "55938522-4f32-475b-966f-de74ed38c189"
4464
4464
  ],
4465
4465
  "failures": [],
4466
4466
  "pending": [],
4467
4467
  "skipped": [],
4468
- "duration": 0,
4468
+ "duration": 1,
4469
4469
  "root": false,
4470
4470
  "rootEmpty": false,
4471
4471
  "_timeout": 2000
4472
4472
  },
4473
4473
  {
4474
- "uuid": "39652790-be4a-43ec-9860-358a8467e0d9",
4474
+ "uuid": "6fdca38d-4d39-4b89-8e0a-d26afe703954",
4475
4475
  "title": "getParameters()",
4476
4476
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4477
4477
  "file": "/test/tools.ts",
@@ -4491,8 +4491,8 @@
4491
4491
  "context": null,
4492
4492
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters();\n assert.deepEqual(result, []);\n});",
4493
4493
  "err": {},
4494
- "uuid": "531c8342-a876-4eae-967d-8b903f2c7241",
4495
- "parentUUID": "39652790-be4a-43ec-9860-358a8467e0d9",
4494
+ "uuid": "d91c64b2-928b-41b0-bfa3-f70cd00c4673",
4495
+ "parentUUID": "6fdca38d-4d39-4b89-8e0a-d26afe703954",
4496
4496
  "isHook": false,
4497
4497
  "skipped": false
4498
4498
  },
@@ -4500,7 +4500,7 @@
4500
4500
  "title": "easy case",
4501
4501
  "fullTitle": "Tools getParameters() easy case",
4502
4502
  "timedOut": false,
4503
- "duration": 0,
4503
+ "duration": 1,
4504
4504
  "state": "passed",
4505
4505
  "speed": "fast",
4506
4506
  "pass": true,
@@ -4509,8 +4509,8 @@
4509
4509
  "context": null,
4510
4510
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n host: '192.168.178.2'\n });\n assert.deepEqual(result, ['-s', '192.168.178.2']);\n});",
4511
4511
  "err": {},
4512
- "uuid": "ffecfc42-8fcf-480f-b7af-453998349975",
4513
- "parentUUID": "39652790-be4a-43ec-9860-358a8467e0d9",
4512
+ "uuid": "b31c4bb0-b8ad-4286-8baf-cda93450aedb",
4513
+ "parentUUID": "6fdca38d-4d39-4b89-8e0a-d26afe703954",
4514
4514
  "isHook": false,
4515
4515
  "skipped": false
4516
4516
  },
@@ -4527,28 +4527,28 @@
4527
4527
  "context": null,
4528
4528
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert.deepEqual(result, [\n '-s', '192.168.178.2,192.168.178.3',\n '-i', '****',\n '--protocol', 'mrp',\n '--dmap-credentials', '****',\n '--mrp-credentials', '****',\n '--airplay-credentials', '****',\n '--companion-credentials', '1234',\n '--raop-credentials', '::foo:'\n ]);\n});",
4529
4529
  "err": {},
4530
- "uuid": "f6f30c72-d29e-4716-bded-76e55c801c7f",
4531
- "parentUUID": "39652790-be4a-43ec-9860-358a8467e0d9",
4530
+ "uuid": "08accc8f-52f4-4bae-b2e3-3df40b886b07",
4531
+ "parentUUID": "6fdca38d-4d39-4b89-8e0a-d26afe703954",
4532
4532
  "isHook": false,
4533
4533
  "skipped": false
4534
4534
  }
4535
4535
  ],
4536
4536
  "suites": [],
4537
4537
  "passes": [
4538
- "531c8342-a876-4eae-967d-8b903f2c7241",
4539
- "ffecfc42-8fcf-480f-b7af-453998349975",
4540
- "f6f30c72-d29e-4716-bded-76e55c801c7f"
4538
+ "d91c64b2-928b-41b0-bfa3-f70cd00c4673",
4539
+ "b31c4bb0-b8ad-4286-8baf-cda93450aedb",
4540
+ "08accc8f-52f4-4bae-b2e3-3df40b886b07"
4541
4541
  ],
4542
4542
  "failures": [],
4543
4543
  "pending": [],
4544
4544
  "skipped": [],
4545
- "duration": 0,
4545
+ "duration": 1,
4546
4546
  "root": false,
4547
4547
  "rootEmpty": false,
4548
4548
  "_timeout": 2000
4549
4549
  },
4550
4550
  {
4551
- "uuid": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4551
+ "uuid": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4552
4552
  "title": "parseState()",
4553
4553
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4554
4554
  "file": "/test/tools.ts",
@@ -4568,8 +4568,8 @@
4568
4568
  "context": null,
4569
4569
  "code": "const input = {};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
4570
4570
  "err": {},
4571
- "uuid": "ad6accea-a133-46d1-80a4-e63650ac180c",
4572
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4571
+ "uuid": "efd5993c-19cb-4328-94d3-008bd3b6002a",
4572
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4573
4573
  "isHook": false,
4574
4574
  "skipped": false
4575
4575
  },
@@ -4586,8 +4586,8 @@
4586
4586
  "context": null,
4587
4587
  "code": "// @ts-ignore\nconst result = parseState(null, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
4588
4588
  "err": {},
4589
- "uuid": "24b7a29f-54a9-4283-b4bc-8b4c084c7a88",
4590
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4589
+ "uuid": "fe11d44b-7944-41d2-85f1-1cd2c0b189d9",
4590
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4591
4591
  "isHook": false,
4592
4592
  "skipped": false
4593
4593
  },
@@ -4595,7 +4595,7 @@
4595
4595
  "title": "should work with example data",
4596
4596
  "fullTitle": "Tools parseState() should work with example data",
4597
4597
  "timedOut": false,
4598
- "duration": 1,
4598
+ "duration": 0,
4599
4599
  "state": "passed",
4600
4600
  "speed": "fast",
4601
4601
  "pass": true,
@@ -4604,8 +4604,8 @@
4604
4604
  "context": null,
4605
4605
  "code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
4606
4606
  "err": {},
4607
- "uuid": "7a355097-7472-44c4-8b38-a5cdd504c586",
4608
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4607
+ "uuid": "576b827d-6a27-4d9d-b393-e9696605adb1",
4608
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4609
4609
  "isHook": false,
4610
4610
  "skipped": false
4611
4611
  },
@@ -4622,8 +4622,8 @@
4622
4622
  "context": null,
4623
4623
  "code": "const input = {\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n};\nassert.throws(() => {\n parseState(input, '', {});\n}, /Got pyatv Error: invalid credentials: 321/);",
4624
4624
  "err": {},
4625
- "uuid": "eb4615e0-085f-4b07-9520-a6e23a0b1ff9",
4626
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4625
+ "uuid": "7184c0f8-5d0f-450f-a8fa-73d5f77b8934",
4626
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4627
4627
  "isHook": false,
4628
4628
  "skipped": false
4629
4629
  },
@@ -4640,8 +4640,8 @@
4640
4640
  "context": null,
4641
4641
  "code": "const input = { datetime: 'today' };\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
4642
4642
  "err": {},
4643
- "uuid": "a20ea8ff-d44c-4bc5-8622-8d87e9df796d",
4644
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4643
+ "uuid": "fa9e3c73-647c-4a34-b551-9c11bc56f7e3",
4644
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4645
4645
  "isHook": false,
4646
4646
  "skipped": false
4647
4647
  },
@@ -4658,8 +4658,8 @@
4658
4658
  "context": null,
4659
4659
  "code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
4660
4660
  "err": {},
4661
- "uuid": "44073109-bc07-4a2f-9f92-b0baa700c659",
4662
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4661
+ "uuid": "55802311-0ae5-4537-9481-e6ec6dcf13c1",
4662
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4663
4663
  "isHook": false,
4664
4664
  "skipped": false
4665
4665
  },
@@ -4676,26 +4676,26 @@
4676
4676
  "context": null,
4677
4677
  "code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
4678
4678
  "err": {},
4679
- "uuid": "c9c9125e-d101-4e8f-80df-04cfe9dba06c",
4680
- "parentUUID": "9c68adfa-c36a-4133-ae7c-f0935ac86e3d",
4679
+ "uuid": "b4bcde1b-47f6-4681-9600-8c807f9d2f28",
4680
+ "parentUUID": "84ad1433-96a6-4702-a22d-a01b4e70b9c1",
4681
4681
  "isHook": false,
4682
4682
  "skipped": false
4683
4683
  }
4684
4684
  ],
4685
4685
  "suites": [],
4686
4686
  "passes": [
4687
- "ad6accea-a133-46d1-80a4-e63650ac180c",
4688
- "24b7a29f-54a9-4283-b4bc-8b4c084c7a88",
4689
- "7a355097-7472-44c4-8b38-a5cdd504c586",
4690
- "eb4615e0-085f-4b07-9520-a6e23a0b1ff9",
4691
- "a20ea8ff-d44c-4bc5-8622-8d87e9df796d",
4692
- "44073109-bc07-4a2f-9f92-b0baa700c659",
4693
- "c9c9125e-d101-4e8f-80df-04cfe9dba06c"
4687
+ "efd5993c-19cb-4328-94d3-008bd3b6002a",
4688
+ "fe11d44b-7944-41d2-85f1-1cd2c0b189d9",
4689
+ "576b827d-6a27-4d9d-b393-e9696605adb1",
4690
+ "7184c0f8-5d0f-450f-a8fa-73d5f77b8934",
4691
+ "fa9e3c73-647c-4a34-b551-9c11bc56f7e3",
4692
+ "55802311-0ae5-4537-9481-e6ec6dcf13c1",
4693
+ "b4bcde1b-47f6-4681-9600-8c807f9d2f28"
4694
4694
  ],
4695
4695
  "failures": [],
4696
4696
  "pending": [],
4697
4697
  "skipped": [],
4698
- "duration": 2,
4698
+ "duration": 1,
4699
4699
  "root": false,
4700
4700
  "rootEmpty": false,
4701
4701
  "_timeout": 2000