@sebbo2002/node-pyatv 5.0.0-develop.1 → 5.0.0

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/.nycrc +1 -0
  2. package/CHANGELOG.md +12 -0
  3. package/docs/coverage/block-navigation.js +8 -0
  4. package/docs/coverage/cobertura-coverage.xml +2696 -7
  5. package/docs/coverage/device-event.ts.html +256 -0
  6. package/docs/coverage/device-events.ts.html +961 -0
  7. package/docs/coverage/device.ts.html +2215 -0
  8. package/docs/coverage/fake-spawn.ts.html +448 -0
  9. package/docs/coverage/favicon.png +0 -0
  10. package/docs/coverage/index.html +132 -22
  11. package/docs/coverage/index.ts.html +41 -36
  12. package/docs/coverage/instance.ts.html +700 -0
  13. package/docs/coverage/sort-arrow-sprite.png +0 -0
  14. package/docs/coverage/sorter.js +26 -0
  15. package/docs/coverage/tools.ts.html +1222 -0
  16. package/docs/coverage/types.ts.html +679 -0
  17. package/docs/reference/classes/NodePyATVDevice.html +4 -4
  18. package/docs/reference/classes/NodePyATVDeviceEvent.html +4 -4
  19. package/docs/reference/classes/default.html +4 -4
  20. package/docs/reference/enums/NodePyATVDeviceState.html +10 -10
  21. package/docs/reference/enums/NodePyATVKeys.html +27 -27
  22. package/docs/reference/enums/NodePyATVListenerState.html +8 -8
  23. package/docs/reference/enums/NodePyATVMediaType.html +8 -8
  24. package/docs/reference/enums/NodePyATVPowerState.html +6 -6
  25. package/docs/reference/enums/NodePyATVProtocol.html +8 -8
  26. package/docs/reference/enums/NodePyATVRepeatState.html +7 -7
  27. package/docs/reference/enums/NodePyATVShuffleState.html +7 -7
  28. package/docs/reference/index.html +4 -4
  29. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +19 -19
  30. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +18 -18
  31. package/docs/reference/interfaces/NodePyATVFindOptions.html +13 -13
  32. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +5 -5
  33. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +9 -9
  34. package/docs/reference/interfaces/NodePyATVState.html +19 -19
  35. package/docs/reference/interfaces/NodePyATVVersionResponse.html +6 -6
  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 +598 -598
  40. package/package.json +4 -4
@@ -5,9 +5,9 @@
5
5
  "passes": 139,
6
6
  "pending": 2,
7
7
  "failures": 0,
8
- "start": "2022-07-17T15:47:17.761Z",
9
- "end": "2022-07-17T15:47:29.763Z",
10
- "duration": 12002,
8
+ "start": "2022-07-25T14:26:48.428Z",
9
+ "end": "2022-07-25T14:27:00.774Z",
10
+ "duration": 12346,
11
11
  "testsRegistered": 141,
12
12
  "passPercent": 100,
13
13
  "pendingPercent": 1.4184397163120568,
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "results": [
20
20
  {
21
- "uuid": "7a0df73c-57f5-4f03-b834-d25190668621",
21
+ "uuid": "dd29e13f-3f6a-4152-a52e-d9b0b449e6de",
22
22
  "title": "",
23
23
  "fullFile": "",
24
24
  "file": "",
@@ -27,7 +27,7 @@
27
27
  "tests": [],
28
28
  "suites": [
29
29
  {
30
- "uuid": "08889676-7c2b-4a65-8a58-40a5f7012384",
30
+ "uuid": "ddb1dbc1-a4c2-4551-ae80-775f12f27667",
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": "935aded8-a14a-4b6c-aced-4da9121a96b7",
39
+ "uuid": "eae7c083-8eaa-4cdb-b168-da65dc0be4cb",
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": 0,
50
+ "duration": 1,
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": "60c655b6-9b76-4306-9fcb-af257aba6a5e",
60
- "parentUUID": "935aded8-a14a-4b6c-aced-4da9121a96b7",
59
+ "uuid": "db24a900-9785-4d78-8f8f-4dd96ed0a95e",
60
+ "parentUUID": "eae7c083-8eaa-4cdb-b168-da65dc0be4cb",
61
61
  "isHook": false,
62
62
  "skipped": false
63
63
  }
64
64
  ],
65
65
  "suites": [],
66
66
  "passes": [
67
- "60c655b6-9b76-4306-9fcb-af257aba6a5e"
67
+ "db24a900-9785-4d78-8f8f-4dd96ed0a95e"
68
68
  ],
69
69
  "failures": [],
70
70
  "pending": [],
71
71
  "skipped": [],
72
- "duration": 0,
72
+ "duration": 1,
73
73
  "root": false,
74
74
  "rootEmpty": false,
75
75
  "_timeout": 2000
76
76
  },
77
77
  {
78
- "uuid": "f1dd0174-e6fe-415f-af62-c903f52ab20d",
78
+ "uuid": "7b8deb5f-c31d-4e24-9f75-d09165a9929a",
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",
@@ -95,15 +95,15 @@
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": "f1fa17e5-cb28-4993-a48d-10e745ead20c",
99
- "parentUUID": "f1dd0174-e6fe-415f-af62-c903f52ab20d",
98
+ "uuid": "929ab47e-8f17-4e6f-9814-30e7da9c41c9",
99
+ "parentUUID": "7b8deb5f-c31d-4e24-9f75-d09165a9929a",
100
100
  "isHook": false,
101
101
  "skipped": false
102
102
  }
103
103
  ],
104
104
  "suites": [],
105
105
  "passes": [
106
- "f1fa17e5-cb28-4993-a48d-10e745ead20c"
106
+ "929ab47e-8f17-4e6f-9814-30e7da9c41c9"
107
107
  ],
108
108
  "failures": [],
109
109
  "pending": [],
@@ -114,7 +114,7 @@
114
114
  "_timeout": 2000
115
115
  },
116
116
  {
117
- "uuid": "e09ff2e6-38cf-45d3-b874-c7f9e8c08b83",
117
+ "uuid": "c01ec9d7-d602-4798-b2b2-fa4dcda40052",
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",
@@ -125,7 +125,7 @@
125
125
  "title": "should work",
126
126
  "fullTitle": "NodePyATVDeviceEvent get newValue() should work",
127
127
  "timedOut": false,
128
- "duration": 1,
128
+ "duration": 0,
129
129
  "state": "passed",
130
130
  "speed": "fast",
131
131
  "pass": true,
@@ -134,26 +134,26 @@
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": "a87ebca0-ef21-4a0e-9069-9150f6b0bfcb",
138
- "parentUUID": "e09ff2e6-38cf-45d3-b874-c7f9e8c08b83",
137
+ "uuid": "b3a43186-5800-4d23-8c1e-f871a7058dbd",
138
+ "parentUUID": "c01ec9d7-d602-4798-b2b2-fa4dcda40052",
139
139
  "isHook": false,
140
140
  "skipped": false
141
141
  }
142
142
  ],
143
143
  "suites": [],
144
144
  "passes": [
145
- "a87ebca0-ef21-4a0e-9069-9150f6b0bfcb"
145
+ "b3a43186-5800-4d23-8c1e-f871a7058dbd"
146
146
  ],
147
147
  "failures": [],
148
148
  "pending": [],
149
149
  "skipped": [],
150
- "duration": 1,
150
+ "duration": 0,
151
151
  "root": false,
152
152
  "rootEmpty": false,
153
153
  "_timeout": 2000
154
154
  },
155
155
  {
156
- "uuid": "ac9c385d-77ec-4da1-932e-4a43ee0a755c",
156
+ "uuid": "8dc58f07-02f9-4433-93cb-03df77374168",
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",
@@ -164,7 +164,7 @@
164
164
  "title": "should work",
165
165
  "fullTitle": "NodePyATVDeviceEvent get value() should work",
166
166
  "timedOut": false,
167
- "duration": 0,
167
+ "duration": 1,
168
168
  "state": "passed",
169
169
  "speed": "fast",
170
170
  "pass": true,
@@ -173,26 +173,26 @@
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": "2732ed40-0fa0-4ad4-8f4a-b5eadb8ee669",
177
- "parentUUID": "ac9c385d-77ec-4da1-932e-4a43ee0a755c",
176
+ "uuid": "d11f51e3-7b19-4170-82a3-fe08d00939bf",
177
+ "parentUUID": "8dc58f07-02f9-4433-93cb-03df77374168",
178
178
  "isHook": false,
179
179
  "skipped": false
180
180
  }
181
181
  ],
182
182
  "suites": [],
183
183
  "passes": [
184
- "2732ed40-0fa0-4ad4-8f4a-b5eadb8ee669"
184
+ "d11f51e3-7b19-4170-82a3-fe08d00939bf"
185
185
  ],
186
186
  "failures": [],
187
187
  "pending": [],
188
188
  "skipped": [],
189
- "duration": 0,
189
+ "duration": 1,
190
190
  "root": false,
191
191
  "rootEmpty": false,
192
192
  "_timeout": 2000
193
193
  },
194
194
  {
195
- "uuid": "3a478514-267b-43c6-a70e-5385c85e0304",
195
+ "uuid": "17688df5-320d-4c0d-a032-c5e6708cfae4",
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": "162e5aa6-0422-4f4b-b5ab-b1c20145e8c0",
216
- "parentUUID": "3a478514-267b-43c6-a70e-5385c85e0304",
215
+ "uuid": "fdc3367a-2677-490b-9801-e0a0a9214303",
216
+ "parentUUID": "17688df5-320d-4c0d-a032-c5e6708cfae4",
217
217
  "isHook": false,
218
218
  "skipped": false
219
219
  }
220
220
  ],
221
221
  "suites": [],
222
222
  "passes": [
223
- "162e5aa6-0422-4f4b-b5ab-b1c20145e8c0"
223
+ "fdc3367a-2677-490b-9801-e0a0a9214303"
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": "d1c93e31-bc31-4892-ae27-8c7da8892ec1",
244
+ "uuid": "40694d53-6eab-4ad5-a07e-73d948393792",
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": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
253
+ "uuid": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
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": 3,
264
+ "duration": 5,
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": "dc9aa1d5-1a84-478e-a835-3e8a729f383a",
274
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
273
+ "uuid": "30c96378-c5d4-4bad-a992-826b3c3df5cd",
274
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
275
275
  "isHook": false,
276
276
  "skipped": false
277
277
  },
@@ -279,7 +279,7 @@
279
279
  "title": "should emit update event",
280
280
  "fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update event",
281
281
  "timedOut": false,
282
- "duration": 2,
282
+ "duration": 3,
283
283
  "state": "passed",
284
284
  "speed": "fast",
285
285
  "pass": true,
@@ -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": "3387f0e7-436f-4b54-94b2-f3e2a1f530e0",
292
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
291
+ "uuid": "caac5b8e-e1ce-49b3-97c0-55d3408ce1a8",
292
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
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": 1,
300
+ "duration": 2,
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": "6ee7547b-6eab-4a90-a1bc-a77da8854789",
310
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
309
+ "uuid": "8e688c0a-28f9-4d65-9d54-99632dc5f2d1",
310
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
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": "267ada84-fc0c-4b27-b9d6-43c94a50faad",
328
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
327
+ "uuid": "06fb2f51-5c28-464a-88e5-771e0bf521b7",
328
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
329
329
  "isHook": false,
330
330
  "skipped": false
331
331
  },
@@ -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": "cfcde59b-0ba6-4508-8bfa-e0f33bc94004",
346
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
345
+ "uuid": "632be728-816f-4406-a297-9d6eb0e8098b",
346
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
347
347
  "isHook": false,
348
348
  "skipped": false
349
349
  },
@@ -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": "0b5d4728-8440-49d9-a0cb-d18581de08cf",
364
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
363
+ "uuid": "87437cb3-6e62-4008-8028-aa74d14e0c7b",
364
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
365
365
  "isHook": false,
366
366
  "skipped": false
367
367
  },
@@ -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": "4bbd00ea-53b0-44e5-a144-f1791aad060b",
382
- "parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
381
+ "uuid": "a9519411-6ba8-426f-accd-c8dd9bd832ac",
382
+ "parentUUID": "7158b1ca-daa9-47c6-85c7-d799f3c80df0",
383
383
  "isHook": false,
384
384
  "skipped": false
385
385
  }
386
386
  ],
387
387
  "suites": [],
388
388
  "passes": [
389
- "dc9aa1d5-1a84-478e-a835-3e8a729f383a",
390
- "3387f0e7-436f-4b54-94b2-f3e2a1f530e0",
391
- "6ee7547b-6eab-4a90-a1bc-a77da8854789",
392
- "267ada84-fc0c-4b27-b9d6-43c94a50faad",
393
- "cfcde59b-0ba6-4508-8bfa-e0f33bc94004",
394
- "0b5d4728-8440-49d9-a0cb-d18581de08cf",
395
- "4bbd00ea-53b0-44e5-a144-f1791aad060b"
389
+ "30c96378-c5d4-4bad-a992-826b3c3df5cd",
390
+ "caac5b8e-e1ce-49b3-97c0-55d3408ce1a8",
391
+ "8e688c0a-28f9-4d65-9d54-99632dc5f2d1",
392
+ "06fb2f51-5c28-464a-88e5-771e0bf521b7",
393
+ "632be728-816f-4406-a297-9d6eb0e8098b",
394
+ "87437cb3-6e62-4008-8028-aa74d14e0c7b",
395
+ "a9519411-6ba8-426f-accd-c8dd9bd832ac"
396
396
  ],
397
397
  "failures": [],
398
398
  "pending": [],
399
399
  "skipped": [],
400
- "duration": 16,
400
+ "duration": 20,
401
401
  "root": false,
402
402
  "rootEmpty": false,
403
403
  "_timeout": 2000
404
404
  },
405
405
  {
406
- "uuid": "94a61962-6904-4285-9561-a6b4c0fa34e9",
406
+ "uuid": "60e89aad-0caf-4c48-bd53-897a92ead49c",
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": "7c00ae5a-2523-4da6-aa55-fc9a8f1bd5c8",
427
- "parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
426
+ "uuid": "3b10bf7a-b00f-4940-8d39-2b895816883e",
427
+ "parentUUID": "60e89aad-0caf-4c48-bd53-897a92ead49c",
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": "ff1793b6-13a3-4695-95e4-5297c65a2293",
445
- "parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
444
+ "uuid": "d0dbc2c2-b7eb-4000-82ef-85c539b67a00",
445
+ "parentUUID": "60e89aad-0caf-4c48-bd53-897a92ead49c",
446
446
  "isHook": false,
447
447
  "skipped": false
448
448
  },
@@ -450,7 +450,7 @@
450
450
  "title": "should emit error if stdout is not valid json",
451
451
  "fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if stdout is not valid json",
452
452
  "timedOut": false,
453
- "duration": 1,
453
+ "duration": 2,
454
454
  "state": "passed",
455
455
  "speed": "fast",
456
456
  "pass": true,
@@ -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": "1b4fa768-d73c-4006-b8ca-64bcdb7f78f0",
463
- "parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
462
+ "uuid": "72b38aae-08aa-49ce-9719-831a36328454",
463
+ "parentUUID": "60e89aad-0caf-4c48-bd53-897a92ead49c",
464
464
  "isHook": false,
465
465
  "skipped": false
466
466
  },
@@ -477,30 +477,30 @@
477
477
  "context": null,
478
478
  "code": "",
479
479
  "err": {},
480
- "uuid": "74a5b2c9-23d9-474e-8b60-01d7d4cdb80c",
481
- "parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
480
+ "uuid": "fc6c2580-02f9-4c2d-bb46-e55971937987",
481
+ "parentUUID": "60e89aad-0caf-4c48-bd53-897a92ead49c",
482
482
  "isHook": false,
483
483
  "skipped": false
484
484
  }
485
485
  ],
486
486
  "suites": [],
487
487
  "passes": [
488
- "7c00ae5a-2523-4da6-aa55-fc9a8f1bd5c8",
489
- "ff1793b6-13a3-4695-95e4-5297c65a2293",
490
- "1b4fa768-d73c-4006-b8ca-64bcdb7f78f0"
488
+ "3b10bf7a-b00f-4940-8d39-2b895816883e",
489
+ "d0dbc2c2-b7eb-4000-82ef-85c539b67a00",
490
+ "72b38aae-08aa-49ce-9719-831a36328454"
491
491
  ],
492
492
  "failures": [],
493
493
  "pending": [
494
- "74a5b2c9-23d9-474e-8b60-01d7d4cdb80c"
494
+ "fc6c2580-02f9-4c2d-bb46-e55971937987"
495
495
  ],
496
496
  "skipped": [],
497
- "duration": 3,
497
+ "duration": 4,
498
498
  "root": false,
499
499
  "rootEmpty": false,
500
500
  "_timeout": 2000
501
501
  },
502
502
  {
503
- "uuid": "88c1ade9-8e0e-46ef-bbcf-4f20d7d34808",
503
+ "uuid": "ec1f8c41-0382-4807-a2c9-9ecae3938900",
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",
@@ -520,15 +520,15 @@
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": "486b5a7e-7a5b-4bcc-bd73-42a67e6e967f",
524
- "parentUUID": "88c1ade9-8e0e-46ef-bbcf-4f20d7d34808",
523
+ "uuid": "35de0910-574e-4c66-9c0d-69a84984633a",
524
+ "parentUUID": "ec1f8c41-0382-4807-a2c9-9ecae3938900",
525
525
  "isHook": false,
526
526
  "skipped": false
527
527
  }
528
528
  ],
529
529
  "suites": [],
530
530
  "passes": [
531
- "486b5a7e-7a5b-4bcc-bd73-42a67e6e967f"
531
+ "35de0910-574e-4c66-9c0d-69a84984633a"
532
532
  ],
533
533
  "failures": [],
534
534
  "pending": [],
@@ -539,7 +539,7 @@
539
539
  "_timeout": 2000
540
540
  },
541
541
  {
542
- "uuid": "b575041b-7ebc-4fd6-b4f6-0baad323fb02",
542
+ "uuid": "a8d9bd4e-5aca-4711-b7ae-0bf67a6e6870",
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": 1,
553
+ "duration": 0,
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": "73d657eb-ad29-4996-98fe-aef529b244d3",
563
- "parentUUID": "b575041b-7ebc-4fd6-b4f6-0baad323fb02",
562
+ "uuid": "d76a086e-7803-46e7-ac1b-4026c9303211",
563
+ "parentUUID": "a8d9bd4e-5aca-4711-b7ae-0bf67a6e6870",
564
564
  "isHook": false,
565
565
  "skipped": false
566
566
  }
567
567
  ],
568
568
  "suites": [],
569
569
  "passes": [
570
- "73d657eb-ad29-4996-98fe-aef529b244d3"
570
+ "d76a086e-7803-46e7-ac1b-4026c9303211"
571
571
  ],
572
572
  "failures": [],
573
573
  "pending": [],
574
574
  "skipped": [],
575
- "duration": 1,
575
+ "duration": 0,
576
576
  "root": false,
577
577
  "rootEmpty": false,
578
578
  "_timeout": 2000
579
579
  },
580
580
  {
581
- "uuid": "6bd6c3d6-cac2-43db-8310-41f924306ee3",
581
+ "uuid": "0bef725a-bd32-417f-8dc6-e7d6c62bfc67",
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",
@@ -598,15 +598,15 @@
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": "5427cfb9-0a3f-4778-9c1e-3feda09878e8",
602
- "parentUUID": "6bd6c3d6-cac2-43db-8310-41f924306ee3",
601
+ "uuid": "55d2587c-bc7f-459a-8294-24338108fa46",
602
+ "parentUUID": "0bef725a-bd32-417f-8dc6-e7d6c62bfc67",
603
603
  "isHook": false,
604
604
  "skipped": false
605
605
  }
606
606
  ],
607
607
  "suites": [],
608
608
  "passes": [
609
- "5427cfb9-0a3f-4778-9c1e-3feda09878e8"
609
+ "55d2587c-bc7f-459a-8294-24338108fa46"
610
610
  ],
611
611
  "failures": [],
612
612
  "pending": [],
@@ -617,7 +617,7 @@
617
617
  "_timeout": 2000
618
618
  },
619
619
  {
620
- "uuid": "189ea1a8-7317-491f-97bc-d46bc0f94c27",
620
+ "uuid": "e2797a04-ca3c-416f-a86d-a9acfcda9fea",
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": "6d6e159f-ccc6-44c3-8951-d232e312868e",
641
- "parentUUID": "189ea1a8-7317-491f-97bc-d46bc0f94c27",
640
+ "uuid": "0a1eb2fb-7c74-4dd9-9632-df0f356a8e90",
641
+ "parentUUID": "e2797a04-ca3c-416f-a86d-a9acfcda9fea",
642
642
  "isHook": false,
643
643
  "skipped": false
644
644
  }
645
645
  ],
646
646
  "suites": [],
647
647
  "passes": [
648
- "6d6e159f-ccc6-44c3-8951-d232e312868e"
648
+ "0a1eb2fb-7c74-4dd9-9632-df0f356a8e90"
649
649
  ],
650
650
  "failures": [],
651
651
  "pending": [],
@@ -656,7 +656,7 @@
656
656
  "_timeout": 2000
657
657
  },
658
658
  {
659
- "uuid": "a113c9c7-e390-480e-94c0-9f9c29efbf33",
659
+ "uuid": "b29ecbf5-09c8-43e5-93a2-d30ce731b2b4",
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": "2cf5d668-0ad9-41de-8c44-11e1afbac925",
680
- "parentUUID": "a113c9c7-e390-480e-94c0-9f9c29efbf33",
679
+ "uuid": "ca860ba4-508d-4e14-85f0-68ebf03a1ba7",
680
+ "parentUUID": "b29ecbf5-09c8-43e5-93a2-d30ce731b2b4",
681
681
  "isHook": false,
682
682
  "skipped": false
683
683
  }
684
684
  ],
685
685
  "suites": [],
686
686
  "passes": [
687
- "2cf5d668-0ad9-41de-8c44-11e1afbac925"
687
+ "ca860ba4-508d-4e14-85f0-68ebf03a1ba7"
688
688
  ],
689
689
  "failures": [],
690
690
  "pending": [],
@@ -695,7 +695,7 @@
695
695
  "_timeout": 2000
696
696
  },
697
697
  {
698
- "uuid": "b06dfa95-7aa9-49a7-bebb-f97473f87ca4",
698
+ "uuid": "c4026188-be6f-43c9-b6c5-bf10c4e7716d",
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",
@@ -706,7 +706,7 @@
706
706
  "title": "should work",
707
707
  "fullTitle": "NodePyATVDeviceEvents listeners() should work",
708
708
  "timedOut": false,
709
- "duration": 1,
709
+ "duration": 0,
710
710
  "state": "passed",
711
711
  "speed": "fast",
712
712
  "pass": true,
@@ -715,26 +715,26 @@
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": "fc7467b7-cd03-4951-8f3d-6f11a950043b",
719
- "parentUUID": "b06dfa95-7aa9-49a7-bebb-f97473f87ca4",
718
+ "uuid": "82f99c68-eee8-4c2f-8b58-2f88c2e02ec1",
719
+ "parentUUID": "c4026188-be6f-43c9-b6c5-bf10c4e7716d",
720
720
  "isHook": false,
721
721
  "skipped": false
722
722
  }
723
723
  ],
724
724
  "suites": [],
725
725
  "passes": [
726
- "fc7467b7-cd03-4951-8f3d-6f11a950043b"
726
+ "82f99c68-eee8-4c2f-8b58-2f88c2e02ec1"
727
727
  ],
728
728
  "failures": [],
729
729
  "pending": [],
730
730
  "skipped": [],
731
- "duration": 1,
731
+ "duration": 0,
732
732
  "root": false,
733
733
  "rootEmpty": false,
734
734
  "_timeout": 2000
735
735
  },
736
736
  {
737
- "uuid": "6fe595f8-5a1d-4679-9d06-50f73e041f7c",
737
+ "uuid": "0e9220f0-2f26-4a28-b1cf-14526c506638",
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": 1,
748
+ "duration": 2,
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": "b566061a-f47a-4ac4-9ebb-fb94f100308f",
758
- "parentUUID": "6fe595f8-5a1d-4679-9d06-50f73e041f7c",
757
+ "uuid": "adf826b4-e197-4885-804f-3a38ffbcffe5",
758
+ "parentUUID": "0e9220f0-2f26-4a28-b1cf-14526c506638",
759
759
  "isHook": false,
760
760
  "skipped": false
761
761
  }
762
762
  ],
763
763
  "suites": [],
764
764
  "passes": [
765
- "b566061a-f47a-4ac4-9ebb-fb94f100308f"
765
+ "adf826b4-e197-4885-804f-3a38ffbcffe5"
766
766
  ],
767
767
  "failures": [],
768
768
  "pending": [],
769
769
  "skipped": [],
770
- "duration": 1,
770
+ "duration": 2,
771
771
  "root": false,
772
772
  "rootEmpty": false,
773
773
  "_timeout": 2000
774
774
  },
775
775
  {
776
- "uuid": "6f5fe99d-34f3-4a06-911d-722c22593ba2",
776
+ "uuid": "47d0eca7-3345-4692-ba52-e3a120693e8b",
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",
@@ -784,7 +784,7 @@
784
784
  "title": "should work",
785
785
  "fullTitle": "NodePyATVDeviceEvents prependOnceListener() should work",
786
786
  "timedOut": false,
787
- "duration": 1,
787
+ "duration": 0,
788
788
  "state": "passed",
789
789
  "speed": "fast",
790
790
  "pass": true,
@@ -793,26 +793,26 @@
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": "a5c3d040-6faa-4c47-a28f-a57a7053ac8b",
797
- "parentUUID": "6f5fe99d-34f3-4a06-911d-722c22593ba2",
796
+ "uuid": "52ee3ea7-5878-40eb-b860-4bc0197c39de",
797
+ "parentUUID": "47d0eca7-3345-4692-ba52-e3a120693e8b",
798
798
  "isHook": false,
799
799
  "skipped": false
800
800
  }
801
801
  ],
802
802
  "suites": [],
803
803
  "passes": [
804
- "a5c3d040-6faa-4c47-a28f-a57a7053ac8b"
804
+ "52ee3ea7-5878-40eb-b860-4bc0197c39de"
805
805
  ],
806
806
  "failures": [],
807
807
  "pending": [],
808
808
  "skipped": [],
809
- "duration": 1,
809
+ "duration": 0,
810
810
  "root": false,
811
811
  "rootEmpty": false,
812
812
  "_timeout": 2000
813
813
  },
814
814
  {
815
- "uuid": "15d49256-76fc-43ad-9cd1-50cc83ca4a90",
815
+ "uuid": "f918c6e3-80fd-4ee0-bb2f-cb67422d15e3",
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",
@@ -832,15 +832,15 @@
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": "6030ba52-bb0a-485e-b14e-63ced263370d",
836
- "parentUUID": "15d49256-76fc-43ad-9cd1-50cc83ca4a90",
835
+ "uuid": "149b2b85-8db1-4ec8-ba0f-700b11c1900c",
836
+ "parentUUID": "f918c6e3-80fd-4ee0-bb2f-cb67422d15e3",
837
837
  "isHook": false,
838
838
  "skipped": false
839
839
  }
840
840
  ],
841
841
  "suites": [],
842
842
  "passes": [
843
- "6030ba52-bb0a-485e-b14e-63ced263370d"
843
+ "149b2b85-8db1-4ec8-ba0f-700b11c1900c"
844
844
  ],
845
845
  "failures": [],
846
846
  "pending": [],
@@ -851,7 +851,7 @@
851
851
  "_timeout": 2000
852
852
  },
853
853
  {
854
- "uuid": "9dfdc43a-0e87-4960-9cc8-46da7b8e92b6",
854
+ "uuid": "ceffe928-1e0a-4a2b-b3cf-1615c4ac873c",
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": "50fac915-a650-4540-b7ad-49fde0c20c56",
875
- "parentUUID": "9dfdc43a-0e87-4960-9cc8-46da7b8e92b6",
874
+ "uuid": "b85e76f3-fcaa-4757-9265-7cfbb489a9f3",
875
+ "parentUUID": "ceffe928-1e0a-4a2b-b3cf-1615c4ac873c",
876
876
  "isHook": false,
877
877
  "skipped": false
878
878
  }
879
879
  ],
880
880
  "suites": [],
881
881
  "passes": [
882
- "50fac915-a650-4540-b7ad-49fde0c20c56"
882
+ "b85e76f3-fcaa-4757-9265-7cfbb489a9f3"
883
883
  ],
884
884
  "failures": [],
885
885
  "pending": [],
@@ -900,7 +900,7 @@
900
900
  "_timeout": 2000
901
901
  },
902
902
  {
903
- "uuid": "0ab029bd-981f-4901-a738-f8fc039a36c4",
903
+ "uuid": "f4094e12-45c6-4658-a69b-e35067f1f69f",
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": "1a0c79f1-4b35-4e02-90ca-87e0d0bf12e5",
912
+ "uuid": "ded76159-e029-49c7-8944-bdff244d59c4",
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": "d10a8f98-ec94-4fbd-a0a7-238af745036a",
933
- "parentUUID": "1a0c79f1-4b35-4e02-90ca-87e0d0bf12e5",
932
+ "uuid": "3a4117c4-27ee-4867-9c52-89ea6c4282e7",
933
+ "parentUUID": "ded76159-e029-49c7-8944-bdff244d59c4",
934
934
  "isHook": false,
935
935
  "skipped": false
936
936
  }
937
937
  ],
938
938
  "suites": [],
939
939
  "passes": [
940
- "d10a8f98-ec94-4fbd-a0a7-238af745036a"
940
+ "3a4117c4-27ee-4867-9c52-89ea6c4282e7"
941
941
  ],
942
942
  "failures": [],
943
943
  "pending": [],
@@ -948,7 +948,7 @@
948
948
  "_timeout": 2000
949
949
  },
950
950
  {
951
- "uuid": "75b7cf76-e21d-44b6-9d50-a1950b5485c1",
951
+ "uuid": "27307faf-2636-41af-b87b-3f2a1fc9ef8d",
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": "77131af8-c4d4-42f1-b2b0-7154c9506f40",
972
- "parentUUID": "75b7cf76-e21d-44b6-9d50-a1950b5485c1",
971
+ "uuid": "d65a45c3-531f-45fa-89fd-4c626a8c99d0",
972
+ "parentUUID": "27307faf-2636-41af-b87b-3f2a1fc9ef8d",
973
973
  "isHook": false,
974
974
  "skipped": false
975
975
  }
976
976
  ],
977
977
  "suites": [],
978
978
  "passes": [
979
- "77131af8-c4d4-42f1-b2b0-7154c9506f40"
979
+ "d65a45c3-531f-45fa-89fd-4c626a8c99d0"
980
980
  ],
981
981
  "failures": [],
982
982
  "pending": [],
@@ -987,7 +987,7 @@
987
987
  "_timeout": 2000
988
988
  },
989
989
  {
990
- "uuid": "f96d84dc-3757-4c7a-8cb3-da16bdc71f12",
990
+ "uuid": "7c11d259-3882-4166-b51c-1c01a2ad66f2",
991
991
  "title": "get id()",
992
992
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
993
993
  "file": "/test/device.ts",
@@ -998,7 +998,7 @@
998
998
  "title": "should return the id",
999
999
  "fullTitle": "NodePyATVDevice get id() should return the id",
1000
1000
  "timedOut": false,
1001
- "duration": 0,
1001
+ "duration": 1,
1002
1002
  "state": "passed",
1003
1003
  "speed": "fast",
1004
1004
  "pass": true,
@@ -1007,26 +1007,26 @@
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": "a4ec52b8-58d5-4fec-9569-f340f0e3a2d4",
1011
- "parentUUID": "f96d84dc-3757-4c7a-8cb3-da16bdc71f12",
1010
+ "uuid": "6f05b623-409b-4455-98fd-3de398ff74d3",
1011
+ "parentUUID": "7c11d259-3882-4166-b51c-1c01a2ad66f2",
1012
1012
  "isHook": false,
1013
1013
  "skipped": false
1014
1014
  }
1015
1015
  ],
1016
1016
  "suites": [],
1017
1017
  "passes": [
1018
- "a4ec52b8-58d5-4fec-9569-f340f0e3a2d4"
1018
+ "6f05b623-409b-4455-98fd-3de398ff74d3"
1019
1019
  ],
1020
1020
  "failures": [],
1021
1021
  "pending": [],
1022
1022
  "skipped": [],
1023
- "duration": 0,
1023
+ "duration": 1,
1024
1024
  "root": false,
1025
1025
  "rootEmpty": false,
1026
1026
  "_timeout": 2000
1027
1027
  },
1028
1028
  {
1029
- "uuid": "2ea77460-6a15-4e30-934c-c0b759e56128",
1029
+ "uuid": "f90bba2b-7b32-4b1c-9a8e-0f7338da2c83",
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": "554a6237-10c5-4319-81df-ea04a2a0a3a9",
1050
- "parentUUID": "2ea77460-6a15-4e30-934c-c0b759e56128",
1049
+ "uuid": "3974e5ec-5412-4c0c-b350-9c36058a8c29",
1050
+ "parentUUID": "f90bba2b-7b32-4b1c-9a8e-0f7338da2c83",
1051
1051
  "isHook": false,
1052
1052
  "skipped": false
1053
1053
  }
1054
1054
  ],
1055
1055
  "suites": [],
1056
1056
  "passes": [
1057
- "554a6237-10c5-4319-81df-ea04a2a0a3a9"
1057
+ "3974e5ec-5412-4c0c-b350-9c36058a8c29"
1058
1058
  ],
1059
1059
  "failures": [],
1060
1060
  "pending": [],
@@ -1065,7 +1065,7 @@
1065
1065
  "_timeout": 2000
1066
1066
  },
1067
1067
  {
1068
- "uuid": "3aaeb21d-6042-461e-841f-e9eeab117371",
1068
+ "uuid": "b71c84e8-8486-4819-8596-588d280ae067",
1069
1069
  "title": "get debug()",
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: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);",
1087
1087
  "err": {},
1088
- "uuid": "f8009fa7-1a87-436a-8902-babba7d22955",
1089
- "parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
1088
+ "uuid": "dcb875cf-04c5-4668-81fa-faf6bfe2c785",
1089
+ "parentUUID": "b71c84e8-8486-4819-8596-588d280ae067",
1090
1090
  "isHook": false,
1091
1091
  "skipped": false
1092
1092
  },
@@ -1103,8 +1103,8 @@
1103
1103
  "context": null,
1104
1104
  "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);",
1105
1105
  "err": {},
1106
- "uuid": "b7654c11-835a-493e-903d-bb19b28acc17",
1107
- "parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
1106
+ "uuid": "fe66d414-d0a5-49b7-a6c1-a1bfb6931da1",
1107
+ "parentUUID": "b71c84e8-8486-4819-8596-588d280ae067",
1108
1108
  "isHook": false,
1109
1109
  "skipped": false
1110
1110
  },
@@ -1121,17 +1121,17 @@
1121
1121
  "context": null,
1122
1122
  "code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);",
1123
1123
  "err": {},
1124
- "uuid": "b7445acd-c79f-4170-b43f-5bf78a0db40f",
1125
- "parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
1124
+ "uuid": "32c0ca7b-f124-4d99-a7cd-108d385ed09b",
1125
+ "parentUUID": "b71c84e8-8486-4819-8596-588d280ae067",
1126
1126
  "isHook": false,
1127
1127
  "skipped": false
1128
1128
  }
1129
1129
  ],
1130
1130
  "suites": [],
1131
1131
  "passes": [
1132
- "f8009fa7-1a87-436a-8902-babba7d22955",
1133
- "b7654c11-835a-493e-903d-bb19b28acc17",
1134
- "b7445acd-c79f-4170-b43f-5bf78a0db40f"
1132
+ "dcb875cf-04c5-4668-81fa-faf6bfe2c785",
1133
+ "fe66d414-d0a5-49b7-a6c1-a1bfb6931da1",
1134
+ "32c0ca7b-f124-4d99-a7cd-108d385ed09b"
1135
1135
  ],
1136
1136
  "failures": [],
1137
1137
  "pending": [],
@@ -1142,7 +1142,7 @@
1142
1142
  "_timeout": 2000
1143
1143
  },
1144
1144
  {
1145
- "uuid": "c2435972-8c60-4ebe-8645-4794258eba42",
1145
+ "uuid": "8b8d6c3a-a3ce-4305-bc1e-b1830ce480b4",
1146
1146
  "title": "set debug()",
1147
1147
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1148
1148
  "file": "/test/device.ts",
@@ -1162,8 +1162,8 @@
1162
1162
  "context": null,
1163
1163
  "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);",
1164
1164
  "err": {},
1165
- "uuid": "baddfe97-3005-4052-9523-474f12e60d49",
1166
- "parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
1165
+ "uuid": "3efa7c07-28ba-4df2-a6e1-5582f04f1846",
1166
+ "parentUUID": "8b8d6c3a-a3ce-4305-bc1e-b1830ce480b4",
1167
1167
  "isHook": false,
1168
1168
  "skipped": false
1169
1169
  },
@@ -1171,7 +1171,7 @@
1171
1171
  "title": "should work for debug = undefined",
1172
1172
  "fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
1173
1173
  "timedOut": false,
1174
- "duration": 1,
1174
+ "duration": 0,
1175
1175
  "state": "passed",
1176
1176
  "speed": "fast",
1177
1177
  "pass": true,
@@ -1180,8 +1180,8 @@
1180
1180
  "context": null,
1181
1181
  "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);",
1182
1182
  "err": {},
1183
- "uuid": "7adb0753-b994-40d5-a32d-3f617e8bbd46",
1184
- "parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
1183
+ "uuid": "aee7b885-bc5a-4281-818b-d59c512277da",
1184
+ "parentUUID": "8b8d6c3a-a3ce-4305-bc1e-b1830ce480b4",
1185
1185
  "isHook": false,
1186
1186
  "skipped": false
1187
1187
  },
@@ -1189,7 +1189,7 @@
1189
1189
  "title": "should work for debug = undefined",
1190
1190
  "fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
1191
1191
  "timedOut": false,
1192
- "duration": 0,
1192
+ "duration": 1,
1193
1193
  "state": "passed",
1194
1194
  "speed": "fast",
1195
1195
  "pass": true,
@@ -1198,8 +1198,8 @@
1198
1198
  "context": null,
1199
1199
  "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);",
1200
1200
  "err": {},
1201
- "uuid": "45d3846c-1a24-4321-b669-ea69e440d281",
1202
- "parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
1201
+ "uuid": "d44366bf-d5d6-4e3b-b983-2284a7a2270a",
1202
+ "parentUUID": "8b8d6c3a-a3ce-4305-bc1e-b1830ce480b4",
1203
1203
  "isHook": false,
1204
1204
  "skipped": false
1205
1205
  },
@@ -1216,18 +1216,18 @@
1216
1216
  "context": null,
1217
1217
  "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);",
1218
1218
  "err": {},
1219
- "uuid": "48b13c67-5428-4bf6-9a32-984d1f4361a0",
1220
- "parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
1219
+ "uuid": "cf0edc15-f327-4152-a411-209d9041c8d8",
1220
+ "parentUUID": "8b8d6c3a-a3ce-4305-bc1e-b1830ce480b4",
1221
1221
  "isHook": false,
1222
1222
  "skipped": false
1223
1223
  }
1224
1224
  ],
1225
1225
  "suites": [],
1226
1226
  "passes": [
1227
- "baddfe97-3005-4052-9523-474f12e60d49",
1228
- "7adb0753-b994-40d5-a32d-3f617e8bbd46",
1229
- "45d3846c-1a24-4321-b669-ea69e440d281",
1230
- "48b13c67-5428-4bf6-9a32-984d1f4361a0"
1227
+ "3efa7c07-28ba-4df2-a6e1-5582f04f1846",
1228
+ "aee7b885-bc5a-4281-818b-d59c512277da",
1229
+ "d44366bf-d5d6-4e3b-b983-2284a7a2270a",
1230
+ "cf0edc15-f327-4152-a411-209d9041c8d8"
1231
1231
  ],
1232
1232
  "failures": [],
1233
1233
  "pending": [],
@@ -1238,7 +1238,7 @@
1238
1238
  "_timeout": 2000
1239
1239
  },
1240
1240
  {
1241
- "uuid": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
1241
+ "uuid": "a226ad37-d68b-4396-a942-9b5af2468a47",
1242
1242
  "title": "toJSON()",
1243
1243
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1244
1244
  "file": "/test/device.ts",
@@ -1258,8 +1258,8 @@
1258
1258
  "context": null,
1259
1259
  "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});",
1260
1260
  "err": {},
1261
- "uuid": "7fcd7610-2149-439e-9ca8-9e9dfa4fdc11",
1262
- "parentUUID": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
1261
+ "uuid": "b2f76aa5-f77b-4c46-baa4-430e9becd544",
1262
+ "parentUUID": "a226ad37-d68b-4396-a942-9b5af2468a47",
1263
1263
  "isHook": false,
1264
1264
  "skipped": false
1265
1265
  },
@@ -1276,16 +1276,16 @@
1276
1276
  "context": null,
1277
1277
  "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);",
1278
1278
  "err": {},
1279
- "uuid": "aa5b8203-75cc-417b-8690-aae43179d336",
1280
- "parentUUID": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
1279
+ "uuid": "94c35ec0-677f-4845-89c8-7598cccd6683",
1280
+ "parentUUID": "a226ad37-d68b-4396-a942-9b5af2468a47",
1281
1281
  "isHook": false,
1282
1282
  "skipped": false
1283
1283
  }
1284
1284
  ],
1285
1285
  "suites": [],
1286
1286
  "passes": [
1287
- "7fcd7610-2149-439e-9ca8-9e9dfa4fdc11",
1288
- "aa5b8203-75cc-417b-8690-aae43179d336"
1287
+ "b2f76aa5-f77b-4c46-baa4-430e9becd544",
1288
+ "94c35ec0-677f-4845-89c8-7598cccd6683"
1289
1289
  ],
1290
1290
  "failures": [],
1291
1291
  "pending": [],
@@ -1296,7 +1296,7 @@
1296
1296
  "_timeout": 2000
1297
1297
  },
1298
1298
  {
1299
- "uuid": "4600f62d-5aa3-4694-952f-9d100565b5b7",
1299
+ "uuid": "8b325847-c85a-41f4-859f-4d1342775f66",
1300
1300
  "title": "toString()",
1301
1301
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1302
1302
  "file": "/test/device.ts",
@@ -1316,15 +1316,15 @@
1316
1316
  "context": null,
1317
1317
  "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)');",
1318
1318
  "err": {},
1319
- "uuid": "f0025cdc-4be8-4f20-9263-e53410d11459",
1320
- "parentUUID": "4600f62d-5aa3-4694-952f-9d100565b5b7",
1319
+ "uuid": "ba8a4cbb-90e6-4175-bb40-79bc2726acc9",
1320
+ "parentUUID": "8b325847-c85a-41f4-859f-4d1342775f66",
1321
1321
  "isHook": false,
1322
1322
  "skipped": false
1323
1323
  }
1324
1324
  ],
1325
1325
  "suites": [],
1326
1326
  "passes": [
1327
- "f0025cdc-4be8-4f20-9263-e53410d11459"
1327
+ "ba8a4cbb-90e6-4175-bb40-79bc2726acc9"
1328
1328
  ],
1329
1329
  "failures": [],
1330
1330
  "pending": [],
@@ -1335,7 +1335,7 @@
1335
1335
  "_timeout": 2000
1336
1336
  },
1337
1337
  {
1338
- "uuid": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1338
+ "uuid": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1339
1339
  "title": "getState()",
1340
1340
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1341
1341
  "file": "/test/device.ts",
@@ -1355,8 +1355,8 @@
1355
1355
  "context": null,
1356
1356
  "code": "",
1357
1357
  "err": {},
1358
- "uuid": "60b939d5-8106-4413-b40d-7610cb67cb67",
1359
- "parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1358
+ "uuid": "0f823f49-daa3-44bd-b996-c5040d6b3679",
1359
+ "parentUUID": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1360
1360
  "isHook": false,
1361
1361
  "skipped": false
1362
1362
  },
@@ -1364,7 +1364,7 @@
1364
1364
  "title": "should work",
1365
1365
  "fullTitle": "NodePyATVDevice getState() should work",
1366
1366
  "timedOut": false,
1367
- "duration": 1,
1367
+ "duration": 2,
1368
1368
  "state": "passed",
1369
1369
  "speed": "fast",
1370
1370
  "pass": true,
@@ -1373,8 +1373,8 @@
1373
1373
  "context": null,
1374
1374
  "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});",
1375
1375
  "err": {},
1376
- "uuid": "f78c1cb5-553b-4f53-97ed-3ba5b74cc484",
1377
- "parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1376
+ "uuid": "0ff949d6-b65c-4bcf-9210-ab5388c7de28",
1377
+ "parentUUID": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1378
1378
  "isHook": false,
1379
1379
  "skipped": false
1380
1380
  },
@@ -1391,8 +1391,8 @@
1391
1391
  "context": null,
1392
1392
  "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});",
1393
1393
  "err": {},
1394
- "uuid": "0eb8a2fa-553a-47de-81ad-cb5798ff3d9a",
1395
- "parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1394
+ "uuid": "9aefae98-7165-4b7b-8fb5-7f921ecb566b",
1395
+ "parentUUID": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1396
1396
  "isHook": false,
1397
1397
  "skipped": false
1398
1398
  },
@@ -1409,8 +1409,8 @@
1409
1409
  "context": null,
1410
1410
  "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});",
1411
1411
  "err": {},
1412
- "uuid": "71fb219b-fa4e-4bb5-819e-a4af142ad417",
1413
- "parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1412
+ "uuid": "abbc5ead-fc66-4d38-8e5f-acd679c4fcf8",
1413
+ "parentUUID": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1414
1414
  "isHook": false,
1415
1415
  "skipped": false
1416
1416
  },
@@ -1418,7 +1418,7 @@
1418
1418
  "title": "should update the position if cache was used",
1419
1419
  "fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
1420
1420
  "timedOut": false,
1421
- "duration": 1,
1421
+ "duration": 2,
1422
1422
  "state": "passed",
1423
1423
  "speed": "fast",
1424
1424
  "pass": true,
@@ -1427,31 +1427,31 @@
1427
1427
  "context": null,
1428
1428
  "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});",
1429
1429
  "err": {},
1430
- "uuid": "8f202c95-17ba-4189-ad02-6ea6bf6a6caa",
1431
- "parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
1430
+ "uuid": "ed4eac82-56c3-413e-8440-660d2830844b",
1431
+ "parentUUID": "40f52dd2-7762-4e39-a06e-d61affdefb7c",
1432
1432
  "isHook": false,
1433
1433
  "skipped": false
1434
1434
  }
1435
1435
  ],
1436
1436
  "suites": [],
1437
1437
  "passes": [
1438
- "f78c1cb5-553b-4f53-97ed-3ba5b74cc484",
1439
- "0eb8a2fa-553a-47de-81ad-cb5798ff3d9a",
1440
- "71fb219b-fa4e-4bb5-819e-a4af142ad417",
1441
- "8f202c95-17ba-4189-ad02-6ea6bf6a6caa"
1438
+ "0ff949d6-b65c-4bcf-9210-ab5388c7de28",
1439
+ "9aefae98-7165-4b7b-8fb5-7f921ecb566b",
1440
+ "abbc5ead-fc66-4d38-8e5f-acd679c4fcf8",
1441
+ "ed4eac82-56c3-413e-8440-660d2830844b"
1442
1442
  ],
1443
1443
  "failures": [],
1444
1444
  "pending": [
1445
- "60b939d5-8106-4413-b40d-7610cb67cb67"
1445
+ "0f823f49-daa3-44bd-b996-c5040d6b3679"
1446
1446
  ],
1447
1447
  "skipped": [],
1448
- "duration": 4,
1448
+ "duration": 6,
1449
1449
  "root": false,
1450
1450
  "rootEmpty": false,
1451
1451
  "_timeout": 2000
1452
1452
  },
1453
1453
  {
1454
- "uuid": "42e6bdf9-f745-43d7-b938-9c081cefc0d4",
1454
+ "uuid": "ce003997-c0f1-4168-9686-46f24d7efc85",
1455
1455
  "title": "clearState()",
1456
1456
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1457
1457
  "file": "/test/device.ts",
@@ -1462,7 +1462,7 @@
1462
1462
  "title": "should work",
1463
1463
  "fullTitle": "NodePyATVDevice clearState() should work",
1464
1464
  "timedOut": false,
1465
- "duration": 2,
1465
+ "duration": 3,
1466
1466
  "state": "passed",
1467
1467
  "speed": "fast",
1468
1468
  "pass": true,
@@ -1471,26 +1471,26 @@
1471
1471
  "context": null,
1472
1472
  "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});",
1473
1473
  "err": {},
1474
- "uuid": "223937a5-c5fa-4b4a-a860-fb693bb00581",
1475
- "parentUUID": "42e6bdf9-f745-43d7-b938-9c081cefc0d4",
1474
+ "uuid": "1640259e-fdf6-404b-84a0-cd6e4bb59d23",
1475
+ "parentUUID": "ce003997-c0f1-4168-9686-46f24d7efc85",
1476
1476
  "isHook": false,
1477
1477
  "skipped": false
1478
1478
  }
1479
1479
  ],
1480
1480
  "suites": [],
1481
1481
  "passes": [
1482
- "223937a5-c5fa-4b4a-a860-fb693bb00581"
1482
+ "1640259e-fdf6-404b-84a0-cd6e4bb59d23"
1483
1483
  ],
1484
1484
  "failures": [],
1485
1485
  "pending": [],
1486
1486
  "skipped": [],
1487
- "duration": 2,
1487
+ "duration": 3,
1488
1488
  "root": false,
1489
1489
  "rootEmpty": false,
1490
1490
  "_timeout": 2000
1491
1491
  },
1492
1492
  {
1493
- "uuid": "3f1efe18-c8e4-4910-b891-be243d5aeb0d",
1493
+ "uuid": "e41fa58f-7bb2-4438-84f1-967b599f726d",
1494
1494
  "title": "getDateTime()",
1495
1495
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1496
1496
  "file": "/test/device.ts",
@@ -1510,15 +1510,15 @@
1510
1510
  "context": null,
1511
1511
  "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});",
1512
1512
  "err": {},
1513
- "uuid": "be6b5fbd-f7de-4389-a9d9-5a34f6e9d916",
1514
- "parentUUID": "3f1efe18-c8e4-4910-b891-be243d5aeb0d",
1513
+ "uuid": "4601664c-99eb-424c-bac1-f498b2a84283",
1514
+ "parentUUID": "e41fa58f-7bb2-4438-84f1-967b599f726d",
1515
1515
  "isHook": false,
1516
1516
  "skipped": false
1517
1517
  }
1518
1518
  ],
1519
1519
  "suites": [],
1520
1520
  "passes": [
1521
- "be6b5fbd-f7de-4389-a9d9-5a34f6e9d916"
1521
+ "4601664c-99eb-424c-bac1-f498b2a84283"
1522
1522
  ],
1523
1523
  "failures": [],
1524
1524
  "pending": [],
@@ -1529,7 +1529,7 @@
1529
1529
  "_timeout": 2000
1530
1530
  },
1531
1531
  {
1532
- "uuid": "95d2432b-c72c-4c66-9a5d-681e3bdf8c77",
1532
+ "uuid": "37144f6c-914b-41f1-963d-4e00c89a895f",
1533
1533
  "title": "getHash()",
1534
1534
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1535
1535
  "file": "/test/device.ts",
@@ -1549,15 +1549,15 @@
1549
1549
  "context": null,
1550
1550
  "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});",
1551
1551
  "err": {},
1552
- "uuid": "48a9042e-ed9c-45b6-8b75-f5c9260845a7",
1553
- "parentUUID": "95d2432b-c72c-4c66-9a5d-681e3bdf8c77",
1552
+ "uuid": "aea889ca-1c6a-4706-a99f-e194ccfa3dd5",
1553
+ "parentUUID": "37144f6c-914b-41f1-963d-4e00c89a895f",
1554
1554
  "isHook": false,
1555
1555
  "skipped": false
1556
1556
  }
1557
1557
  ],
1558
1558
  "suites": [],
1559
1559
  "passes": [
1560
- "48a9042e-ed9c-45b6-8b75-f5c9260845a7"
1560
+ "aea889ca-1c6a-4706-a99f-e194ccfa3dd5"
1561
1561
  ],
1562
1562
  "failures": [],
1563
1563
  "pending": [],
@@ -1568,7 +1568,7 @@
1568
1568
  "_timeout": 2000
1569
1569
  },
1570
1570
  {
1571
- "uuid": "0f3b1773-8a95-41f8-8715-02c285443f67",
1571
+ "uuid": "e7d4b94e-411d-4ea2-b545-0e518093b199",
1572
1572
  "title": "getMediaType()",
1573
1573
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1574
1574
  "file": "/test/device.ts",
@@ -1588,15 +1588,15 @@
1588
1588
  "context": null,
1589
1589
  "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});",
1590
1590
  "err": {},
1591
- "uuid": "ed683468-f2f3-46c6-9f83-7d53ed065417",
1592
- "parentUUID": "0f3b1773-8a95-41f8-8715-02c285443f67",
1591
+ "uuid": "181eaca1-f540-4ba3-9265-aa6083fcc410",
1592
+ "parentUUID": "e7d4b94e-411d-4ea2-b545-0e518093b199",
1593
1593
  "isHook": false,
1594
1594
  "skipped": false
1595
1595
  }
1596
1596
  ],
1597
1597
  "suites": [],
1598
1598
  "passes": [
1599
- "ed683468-f2f3-46c6-9f83-7d53ed065417"
1599
+ "181eaca1-f540-4ba3-9265-aa6083fcc410"
1600
1600
  ],
1601
1601
  "failures": [],
1602
1602
  "pending": [],
@@ -1607,7 +1607,7 @@
1607
1607
  "_timeout": 2000
1608
1608
  },
1609
1609
  {
1610
- "uuid": "54b20fcc-b876-4997-8df2-29f1fa9e4c71",
1610
+ "uuid": "421840d1-8639-4508-9fd9-acbc2f10cf27",
1611
1611
  "title": "getDeviceState()",
1612
1612
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1613
1613
  "file": "/test/device.ts",
@@ -1627,15 +1627,15 @@
1627
1627
  "context": null,
1628
1628
  "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});",
1629
1629
  "err": {},
1630
- "uuid": "106a8a35-b3ea-4a7e-990c-6990b1597980",
1631
- "parentUUID": "54b20fcc-b876-4997-8df2-29f1fa9e4c71",
1630
+ "uuid": "dee1a7a9-2450-44e1-ba01-564cc2da5e13",
1631
+ "parentUUID": "421840d1-8639-4508-9fd9-acbc2f10cf27",
1632
1632
  "isHook": false,
1633
1633
  "skipped": false
1634
1634
  }
1635
1635
  ],
1636
1636
  "suites": [],
1637
1637
  "passes": [
1638
- "106a8a35-b3ea-4a7e-990c-6990b1597980"
1638
+ "dee1a7a9-2450-44e1-ba01-564cc2da5e13"
1639
1639
  ],
1640
1640
  "failures": [],
1641
1641
  "pending": [],
@@ -1646,7 +1646,7 @@
1646
1646
  "_timeout": 2000
1647
1647
  },
1648
1648
  {
1649
- "uuid": "4fab204c-4833-400b-9b07-452926ce0a6e",
1649
+ "uuid": "20211105-0b51-4da0-93bd-73f5141e9287",
1650
1650
  "title": "getTitle()",
1651
1651
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1652
1652
  "file": "/test/device.ts",
@@ -1666,15 +1666,15 @@
1666
1666
  "context": null,
1667
1667
  "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});",
1668
1668
  "err": {},
1669
- "uuid": "7be7ca70-de7e-4e75-93e4-0b1eb17ac854",
1670
- "parentUUID": "4fab204c-4833-400b-9b07-452926ce0a6e",
1669
+ "uuid": "fc12c7f2-2be4-4205-8c27-c72f4ea5341c",
1670
+ "parentUUID": "20211105-0b51-4da0-93bd-73f5141e9287",
1671
1671
  "isHook": false,
1672
1672
  "skipped": false
1673
1673
  }
1674
1674
  ],
1675
1675
  "suites": [],
1676
1676
  "passes": [
1677
- "7be7ca70-de7e-4e75-93e4-0b1eb17ac854"
1677
+ "fc12c7f2-2be4-4205-8c27-c72f4ea5341c"
1678
1678
  ],
1679
1679
  "failures": [],
1680
1680
  "pending": [],
@@ -1685,7 +1685,7 @@
1685
1685
  "_timeout": 2000
1686
1686
  },
1687
1687
  {
1688
- "uuid": "ba28018e-d4c2-40d3-8d63-8e2626a20d17",
1688
+ "uuid": "f33d8973-d3af-4136-abac-79ccce02f369",
1689
1689
  "title": "getArtist()",
1690
1690
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1691
1691
  "file": "/test/device.ts",
@@ -1705,15 +1705,15 @@
1705
1705
  "context": null,
1706
1706
  "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});",
1707
1707
  "err": {},
1708
- "uuid": "4dfdce5a-cae1-4bce-bdf9-4af50300ebea",
1709
- "parentUUID": "ba28018e-d4c2-40d3-8d63-8e2626a20d17",
1708
+ "uuid": "6884e45b-10a0-4644-b38e-34ccf42526ac",
1709
+ "parentUUID": "f33d8973-d3af-4136-abac-79ccce02f369",
1710
1710
  "isHook": false,
1711
1711
  "skipped": false
1712
1712
  }
1713
1713
  ],
1714
1714
  "suites": [],
1715
1715
  "passes": [
1716
- "4dfdce5a-cae1-4bce-bdf9-4af50300ebea"
1716
+ "6884e45b-10a0-4644-b38e-34ccf42526ac"
1717
1717
  ],
1718
1718
  "failures": [],
1719
1719
  "pending": [],
@@ -1724,7 +1724,7 @@
1724
1724
  "_timeout": 2000
1725
1725
  },
1726
1726
  {
1727
- "uuid": "9a0093e0-abc2-4623-b6dd-507023f5012c",
1727
+ "uuid": "60c9f8f8-15b4-459f-b6d1-e2f0a3014ed9",
1728
1728
  "title": "getAlbum()",
1729
1729
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1730
1730
  "file": "/test/device.ts",
@@ -1744,15 +1744,15 @@
1744
1744
  "context": null,
1745
1745
  "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});",
1746
1746
  "err": {},
1747
- "uuid": "80b8a0ec-daca-4d23-ae5f-f2c9dd4478b8",
1748
- "parentUUID": "9a0093e0-abc2-4623-b6dd-507023f5012c",
1747
+ "uuid": "7bb3cc9c-ac60-4901-9601-f3a5108b53fd",
1748
+ "parentUUID": "60c9f8f8-15b4-459f-b6d1-e2f0a3014ed9",
1749
1749
  "isHook": false,
1750
1750
  "skipped": false
1751
1751
  }
1752
1752
  ],
1753
1753
  "suites": [],
1754
1754
  "passes": [
1755
- "80b8a0ec-daca-4d23-ae5f-f2c9dd4478b8"
1755
+ "7bb3cc9c-ac60-4901-9601-f3a5108b53fd"
1756
1756
  ],
1757
1757
  "failures": [],
1758
1758
  "pending": [],
@@ -1763,7 +1763,7 @@
1763
1763
  "_timeout": 2000
1764
1764
  },
1765
1765
  {
1766
- "uuid": "7dcba244-a581-4475-887f-a302e16460d2",
1766
+ "uuid": "50c5b95d-9c98-415f-93d0-5b57499b84d2",
1767
1767
  "title": "getGenre()",
1768
1768
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1769
1769
  "file": "/test/device.ts",
@@ -1783,15 +1783,15 @@
1783
1783
  "context": null,
1784
1784
  "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});",
1785
1785
  "err": {},
1786
- "uuid": "9826950c-447b-4631-83bd-c1075af75361",
1787
- "parentUUID": "7dcba244-a581-4475-887f-a302e16460d2",
1786
+ "uuid": "1f903f73-19dc-4ba9-834d-1204bee31b81",
1787
+ "parentUUID": "50c5b95d-9c98-415f-93d0-5b57499b84d2",
1788
1788
  "isHook": false,
1789
1789
  "skipped": false
1790
1790
  }
1791
1791
  ],
1792
1792
  "suites": [],
1793
1793
  "passes": [
1794
- "9826950c-447b-4631-83bd-c1075af75361"
1794
+ "1f903f73-19dc-4ba9-834d-1204bee31b81"
1795
1795
  ],
1796
1796
  "failures": [],
1797
1797
  "pending": [],
@@ -1802,7 +1802,7 @@
1802
1802
  "_timeout": 2000
1803
1803
  },
1804
1804
  {
1805
- "uuid": "b4516254-7eb7-4b76-b15d-6d37045bd6b9",
1805
+ "uuid": "a4b1902c-171e-43ac-8662-ed66f816693f",
1806
1806
  "title": "getTotalTime()",
1807
1807
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1808
1808
  "file": "/test/device.ts",
@@ -1813,7 +1813,7 @@
1813
1813
  "title": "should work",
1814
1814
  "fullTitle": "NodePyATVDevice getTotalTime() should work",
1815
1815
  "timedOut": false,
1816
- "duration": 1,
1816
+ "duration": 0,
1817
1817
  "state": "passed",
1818
1818
  "speed": "fast",
1819
1819
  "pass": true,
@@ -1822,26 +1822,26 @@
1822
1822
  "context": null,
1823
1823
  "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});",
1824
1824
  "err": {},
1825
- "uuid": "a20c9ead-5d1c-4e3c-9882-7d0d97f7f2f1",
1826
- "parentUUID": "b4516254-7eb7-4b76-b15d-6d37045bd6b9",
1825
+ "uuid": "665d1d50-c44c-4226-9259-0976ca5b649b",
1826
+ "parentUUID": "a4b1902c-171e-43ac-8662-ed66f816693f",
1827
1827
  "isHook": false,
1828
1828
  "skipped": false
1829
1829
  }
1830
1830
  ],
1831
1831
  "suites": [],
1832
1832
  "passes": [
1833
- "a20c9ead-5d1c-4e3c-9882-7d0d97f7f2f1"
1833
+ "665d1d50-c44c-4226-9259-0976ca5b649b"
1834
1834
  ],
1835
1835
  "failures": [],
1836
1836
  "pending": [],
1837
1837
  "skipped": [],
1838
- "duration": 1,
1838
+ "duration": 0,
1839
1839
  "root": false,
1840
1840
  "rootEmpty": false,
1841
1841
  "_timeout": 2000
1842
1842
  },
1843
1843
  {
1844
- "uuid": "700cf326-b213-45c8-aa46-806975fe4cf9",
1844
+ "uuid": "6bae371f-4724-4f0e-90ed-5d14a01827f8",
1845
1845
  "title": "getPosition()",
1846
1846
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1847
1847
  "file": "/test/device.ts",
@@ -1852,7 +1852,7 @@
1852
1852
  "title": "should work",
1853
1853
  "fullTitle": "NodePyATVDevice getPosition() should work",
1854
1854
  "timedOut": false,
1855
- "duration": 1,
1855
+ "duration": 0,
1856
1856
  "state": "passed",
1857
1857
  "speed": "fast",
1858
1858
  "pass": true,
@@ -1861,26 +1861,26 @@
1861
1861
  "context": null,
1862
1862
  "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});",
1863
1863
  "err": {},
1864
- "uuid": "8476d428-0c6d-49e2-8f42-962ae4bb5b4d",
1865
- "parentUUID": "700cf326-b213-45c8-aa46-806975fe4cf9",
1864
+ "uuid": "4635de02-dad3-4e9b-b2e8-281b5303661c",
1865
+ "parentUUID": "6bae371f-4724-4f0e-90ed-5d14a01827f8",
1866
1866
  "isHook": false,
1867
1867
  "skipped": false
1868
1868
  }
1869
1869
  ],
1870
1870
  "suites": [],
1871
1871
  "passes": [
1872
- "8476d428-0c6d-49e2-8f42-962ae4bb5b4d"
1872
+ "4635de02-dad3-4e9b-b2e8-281b5303661c"
1873
1873
  ],
1874
1874
  "failures": [],
1875
1875
  "pending": [],
1876
1876
  "skipped": [],
1877
- "duration": 1,
1877
+ "duration": 0,
1878
1878
  "root": false,
1879
1879
  "rootEmpty": false,
1880
1880
  "_timeout": 2000
1881
1881
  },
1882
1882
  {
1883
- "uuid": "45a5e6a4-5369-43d9-84d6-bdbcc076311f",
1883
+ "uuid": "eb6ee3bb-3576-4bcb-8388-f31efc3f28d3",
1884
1884
  "title": "getShuffle()",
1885
1885
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1886
1886
  "file": "/test/device.ts",
@@ -1900,15 +1900,15 @@
1900
1900
  "context": null,
1901
1901
  "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});",
1902
1902
  "err": {},
1903
- "uuid": "93576dbd-bf84-4631-b61b-f4b6e5d87646",
1904
- "parentUUID": "45a5e6a4-5369-43d9-84d6-bdbcc076311f",
1903
+ "uuid": "bb820044-4ed5-4967-9a3f-ae5152946480",
1904
+ "parentUUID": "eb6ee3bb-3576-4bcb-8388-f31efc3f28d3",
1905
1905
  "isHook": false,
1906
1906
  "skipped": false
1907
1907
  }
1908
1908
  ],
1909
1909
  "suites": [],
1910
1910
  "passes": [
1911
- "93576dbd-bf84-4631-b61b-f4b6e5d87646"
1911
+ "bb820044-4ed5-4967-9a3f-ae5152946480"
1912
1912
  ],
1913
1913
  "failures": [],
1914
1914
  "pending": [],
@@ -1919,7 +1919,7 @@
1919
1919
  "_timeout": 2000
1920
1920
  },
1921
1921
  {
1922
- "uuid": "0a8dafc4-005a-4b17-83e0-28d361583509",
1922
+ "uuid": "b68e0a14-7cf2-4158-b690-05fc11905498",
1923
1923
  "title": "getRepeat()",
1924
1924
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1925
1925
  "file": "/test/device.ts",
@@ -1939,15 +1939,15 @@
1939
1939
  "context": null,
1940
1940
  "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});",
1941
1941
  "err": {},
1942
- "uuid": "8d2dfaa9-e662-4745-9228-67524a2b96a2",
1943
- "parentUUID": "0a8dafc4-005a-4b17-83e0-28d361583509",
1942
+ "uuid": "38d8f4ae-700f-466b-a23a-24729490c213",
1943
+ "parentUUID": "b68e0a14-7cf2-4158-b690-05fc11905498",
1944
1944
  "isHook": false,
1945
1945
  "skipped": false
1946
1946
  }
1947
1947
  ],
1948
1948
  "suites": [],
1949
1949
  "passes": [
1950
- "8d2dfaa9-e662-4745-9228-67524a2b96a2"
1950
+ "38d8f4ae-700f-466b-a23a-24729490c213"
1951
1951
  ],
1952
1952
  "failures": [],
1953
1953
  "pending": [],
@@ -1958,7 +1958,7 @@
1958
1958
  "_timeout": 2000
1959
1959
  },
1960
1960
  {
1961
- "uuid": "914ed1c5-d185-4401-b207-0a14da239594",
1961
+ "uuid": "91fb5aa1-d4be-446d-a2a2-06097bfda498",
1962
1962
  "title": "getApp()",
1963
1963
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
1964
1964
  "file": "/test/device.ts",
@@ -1969,7 +1969,7 @@
1969
1969
  "title": "should work",
1970
1970
  "fullTitle": "NodePyATVDevice getApp() should work",
1971
1971
  "timedOut": false,
1972
- "duration": 2,
1972
+ "duration": 1,
1973
1973
  "state": "passed",
1974
1974
  "speed": "fast",
1975
1975
  "pass": true,
@@ -1978,26 +1978,26 @@
1978
1978
  "context": null,
1979
1979
  "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});",
1980
1980
  "err": {},
1981
- "uuid": "7cb12aff-9b79-4cbb-8edb-961280faf788",
1982
- "parentUUID": "914ed1c5-d185-4401-b207-0a14da239594",
1981
+ "uuid": "25a318bb-dd24-48fc-b69e-018e74e43d75",
1982
+ "parentUUID": "91fb5aa1-d4be-446d-a2a2-06097bfda498",
1983
1983
  "isHook": false,
1984
1984
  "skipped": false
1985
1985
  }
1986
1986
  ],
1987
1987
  "suites": [],
1988
1988
  "passes": [
1989
- "7cb12aff-9b79-4cbb-8edb-961280faf788"
1989
+ "25a318bb-dd24-48fc-b69e-018e74e43d75"
1990
1990
  ],
1991
1991
  "failures": [],
1992
1992
  "pending": [],
1993
1993
  "skipped": [],
1994
- "duration": 2,
1994
+ "duration": 1,
1995
1995
  "root": false,
1996
1996
  "rootEmpty": false,
1997
1997
  "_timeout": 2000
1998
1998
  },
1999
1999
  {
2000
- "uuid": "8dca9012-9820-4349-9190-d7116fbf6c4d",
2000
+ "uuid": "7e126e75-62ab-4caa-beb6-118278b92ce8",
2001
2001
  "title": "getAppId()",
2002
2002
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2003
2003
  "file": "/test/device.ts",
@@ -2008,7 +2008,7 @@
2008
2008
  "title": "should work",
2009
2009
  "fullTitle": "NodePyATVDevice getAppId() should work",
2010
2010
  "timedOut": false,
2011
- "duration": 2,
2011
+ "duration": 1,
2012
2012
  "state": "passed",
2013
2013
  "speed": "fast",
2014
2014
  "pass": true,
@@ -2017,26 +2017,26 @@
2017
2017
  "context": null,
2018
2018
  "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});",
2019
2019
  "err": {},
2020
- "uuid": "a772983f-e383-451e-b79e-f341dbc1f03a",
2021
- "parentUUID": "8dca9012-9820-4349-9190-d7116fbf6c4d",
2020
+ "uuid": "56775df8-53da-4bd9-ad00-b6f196681aef",
2021
+ "parentUUID": "7e126e75-62ab-4caa-beb6-118278b92ce8",
2022
2022
  "isHook": false,
2023
2023
  "skipped": false
2024
2024
  }
2025
2025
  ],
2026
2026
  "suites": [],
2027
2027
  "passes": [
2028
- "a772983f-e383-451e-b79e-f341dbc1f03a"
2028
+ "56775df8-53da-4bd9-ad00-b6f196681aef"
2029
2029
  ],
2030
2030
  "failures": [],
2031
2031
  "pending": [],
2032
2032
  "skipped": [],
2033
- "duration": 2,
2033
+ "duration": 1,
2034
2034
  "root": false,
2035
2035
  "rootEmpty": false,
2036
2036
  "_timeout": 2000
2037
2037
  },
2038
2038
  {
2039
- "uuid": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
2039
+ "uuid": "8ee61ee0-0153-4941-95ad-108931d838d4",
2040
2040
  "title": "pressKey()",
2041
2041
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2042
2042
  "file": "/test/device.ts",
@@ -2047,7 +2047,7 @@
2047
2047
  "title": "should work with valid key",
2048
2048
  "fullTitle": "NodePyATVDevice pressKey() should work with valid key",
2049
2049
  "timedOut": false,
2050
- "duration": 2,
2050
+ "duration": 1,
2051
2051
  "state": "passed",
2052
2052
  "speed": "fast",
2053
2053
  "pass": true,
@@ -2056,8 +2056,8 @@
2056
2056
  "context": null,
2057
2057
  "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});",
2058
2058
  "err": {},
2059
- "uuid": "c660620d-5f77-40de-b891-0c64b66b828f",
2060
- "parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
2059
+ "uuid": "88306b09-499c-4bbc-a543-d00b4b87ad4f",
2060
+ "parentUUID": "8ee61ee0-0153-4941-95ad-108931d838d4",
2061
2061
  "isHook": false,
2062
2062
  "skipped": false
2063
2063
  },
@@ -2065,7 +2065,7 @@
2065
2065
  "title": "should throw error with invalid key",
2066
2066
  "fullTitle": "NodePyATVDevice pressKey() should throw error with invalid key",
2067
2067
  "timedOut": false,
2068
- "duration": 1,
2068
+ "duration": 0,
2069
2069
  "state": "passed",
2070
2070
  "speed": "fast",
2071
2071
  "pass": true,
@@ -2074,8 +2074,8 @@
2074
2074
  "context": null,
2075
2075
  "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});",
2076
2076
  "err": {},
2077
- "uuid": "dd4c9f67-5f64-40c1-9c5b-2e30d2d93b71",
2078
- "parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
2077
+ "uuid": "132d3fec-a5d5-4b66-ae2f-eb3f07923ad5",
2078
+ "parentUUID": "8ee61ee0-0153-4941-95ad-108931d838d4",
2079
2079
  "isHook": false,
2080
2080
  "skipped": false
2081
2081
  },
@@ -2083,7 +2083,7 @@
2083
2083
  "title": "should throw error if pyatv result is not success",
2084
2084
  "fullTitle": "NodePyATVDevice pressKey() should throw error if pyatv result is not success",
2085
2085
  "timedOut": false,
2086
- "duration": 1,
2086
+ "duration": 2,
2087
2087
  "state": "passed",
2088
2088
  "speed": "fast",
2089
2089
  "pass": true,
@@ -2092,28 +2092,28 @@
2092
2092
  "context": null,
2093
2093
  "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});",
2094
2094
  "err": {},
2095
- "uuid": "3444d94a-f435-45e8-9669-f93c5b16ccec",
2096
- "parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
2095
+ "uuid": "aa61d126-29ec-4750-8ffc-f7901a1540cf",
2096
+ "parentUUID": "8ee61ee0-0153-4941-95ad-108931d838d4",
2097
2097
  "isHook": false,
2098
2098
  "skipped": false
2099
2099
  }
2100
2100
  ],
2101
2101
  "suites": [],
2102
2102
  "passes": [
2103
- "c660620d-5f77-40de-b891-0c64b66b828f",
2104
- "dd4c9f67-5f64-40c1-9c5b-2e30d2d93b71",
2105
- "3444d94a-f435-45e8-9669-f93c5b16ccec"
2103
+ "88306b09-499c-4bbc-a543-d00b4b87ad4f",
2104
+ "132d3fec-a5d5-4b66-ae2f-eb3f07923ad5",
2105
+ "aa61d126-29ec-4750-8ffc-f7901a1540cf"
2106
2106
  ],
2107
2107
  "failures": [],
2108
2108
  "pending": [],
2109
2109
  "skipped": [],
2110
- "duration": 4,
2110
+ "duration": 3,
2111
2111
  "root": false,
2112
2112
  "rootEmpty": false,
2113
2113
  "_timeout": 2000
2114
2114
  },
2115
2115
  {
2116
- "uuid": "a31dbffc-9811-4772-8c07-6cb3acfcb1e0",
2116
+ "uuid": "b030ddc7-50e4-4674-92c2-1c9e94a65cc8",
2117
2117
  "title": "down()",
2118
2118
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2119
2119
  "file": "/test/device.ts",
@@ -2124,7 +2124,7 @@
2124
2124
  "title": "should work",
2125
2125
  "fullTitle": "NodePyATVDevice down() should work",
2126
2126
  "timedOut": false,
2127
- "duration": 1,
2127
+ "duration": 2,
2128
2128
  "state": "passed",
2129
2129
  "speed": "fast",
2130
2130
  "pass": true,
@@ -2133,26 +2133,26 @@
2133
2133
  "context": null,
2134
2134
  "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});",
2135
2135
  "err": {},
2136
- "uuid": "92ad1ca8-ecdc-41f4-b6da-d262f8bdf706",
2137
- "parentUUID": "a31dbffc-9811-4772-8c07-6cb3acfcb1e0",
2136
+ "uuid": "61c047c1-8c0d-4d1e-88ae-3fba5fdc827b",
2137
+ "parentUUID": "b030ddc7-50e4-4674-92c2-1c9e94a65cc8",
2138
2138
  "isHook": false,
2139
2139
  "skipped": false
2140
2140
  }
2141
2141
  ],
2142
2142
  "suites": [],
2143
2143
  "passes": [
2144
- "92ad1ca8-ecdc-41f4-b6da-d262f8bdf706"
2144
+ "61c047c1-8c0d-4d1e-88ae-3fba5fdc827b"
2145
2145
  ],
2146
2146
  "failures": [],
2147
2147
  "pending": [],
2148
2148
  "skipped": [],
2149
- "duration": 1,
2149
+ "duration": 2,
2150
2150
  "root": false,
2151
2151
  "rootEmpty": false,
2152
2152
  "_timeout": 2000
2153
2153
  },
2154
2154
  {
2155
- "uuid": "36d14f5d-a02e-42a2-9d4c-de86e1c33f3c",
2155
+ "uuid": "5fb0f1fe-4e12-4ae4-bf3c-6b447f7b6cda",
2156
2156
  "title": "home()",
2157
2157
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2158
2158
  "file": "/test/device.ts",
@@ -2163,7 +2163,7 @@
2163
2163
  "title": "should work",
2164
2164
  "fullTitle": "NodePyATVDevice home() should work",
2165
2165
  "timedOut": false,
2166
- "duration": 1,
2166
+ "duration": 2,
2167
2167
  "state": "passed",
2168
2168
  "speed": "fast",
2169
2169
  "pass": true,
@@ -2172,26 +2172,26 @@
2172
2172
  "context": null,
2173
2173
  "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});",
2174
2174
  "err": {},
2175
- "uuid": "811efeb8-4ef9-435d-8749-2b7c40928dc1",
2176
- "parentUUID": "36d14f5d-a02e-42a2-9d4c-de86e1c33f3c",
2175
+ "uuid": "b5119016-00fe-4cc2-9ead-30e4db8961ec",
2176
+ "parentUUID": "5fb0f1fe-4e12-4ae4-bf3c-6b447f7b6cda",
2177
2177
  "isHook": false,
2178
2178
  "skipped": false
2179
2179
  }
2180
2180
  ],
2181
2181
  "suites": [],
2182
2182
  "passes": [
2183
- "811efeb8-4ef9-435d-8749-2b7c40928dc1"
2183
+ "b5119016-00fe-4cc2-9ead-30e4db8961ec"
2184
2184
  ],
2185
2185
  "failures": [],
2186
2186
  "pending": [],
2187
2187
  "skipped": [],
2188
- "duration": 1,
2188
+ "duration": 2,
2189
2189
  "root": false,
2190
2190
  "rootEmpty": false,
2191
2191
  "_timeout": 2000
2192
2192
  },
2193
2193
  {
2194
- "uuid": "c1ca1553-479d-4829-aaa0-b6e796c6ef6c",
2194
+ "uuid": "0bf0d2df-9f9a-49a0-8745-fd2d54b38619",
2195
2195
  "title": "homeHold()",
2196
2196
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2197
2197
  "file": "/test/device.ts",
@@ -2202,7 +2202,7 @@
2202
2202
  "title": "should work",
2203
2203
  "fullTitle": "NodePyATVDevice homeHold() should work",
2204
2204
  "timedOut": false,
2205
- "duration": 1,
2205
+ "duration": 2,
2206
2206
  "state": "passed",
2207
2207
  "speed": "fast",
2208
2208
  "pass": true,
@@ -2211,26 +2211,26 @@
2211
2211
  "context": null,
2212
2212
  "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});",
2213
2213
  "err": {},
2214
- "uuid": "8c2c6698-6fc6-4424-b3b9-d5cc429bf466",
2215
- "parentUUID": "c1ca1553-479d-4829-aaa0-b6e796c6ef6c",
2214
+ "uuid": "4637d6c9-5fd3-447c-aaa2-46c2d14380e0",
2215
+ "parentUUID": "0bf0d2df-9f9a-49a0-8745-fd2d54b38619",
2216
2216
  "isHook": false,
2217
2217
  "skipped": false
2218
2218
  }
2219
2219
  ],
2220
2220
  "suites": [],
2221
2221
  "passes": [
2222
- "8c2c6698-6fc6-4424-b3b9-d5cc429bf466"
2222
+ "4637d6c9-5fd3-447c-aaa2-46c2d14380e0"
2223
2223
  ],
2224
2224
  "failures": [],
2225
2225
  "pending": [],
2226
2226
  "skipped": [],
2227
- "duration": 1,
2227
+ "duration": 2,
2228
2228
  "root": false,
2229
2229
  "rootEmpty": false,
2230
2230
  "_timeout": 2000
2231
2231
  },
2232
2232
  {
2233
- "uuid": "73085272-53e9-4aaa-8688-5574d39ee57b",
2233
+ "uuid": "2269d42d-d13b-46c2-80e6-24e04b53a76e",
2234
2234
  "title": "left()",
2235
2235
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2236
2236
  "file": "/test/device.ts",
@@ -2241,7 +2241,7 @@
2241
2241
  "title": "should work",
2242
2242
  "fullTitle": "NodePyATVDevice left() should work",
2243
2243
  "timedOut": false,
2244
- "duration": 2,
2244
+ "duration": 1,
2245
2245
  "state": "passed",
2246
2246
  "speed": "fast",
2247
2247
  "pass": true,
@@ -2250,26 +2250,26 @@
2250
2250
  "context": null,
2251
2251
  "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});",
2252
2252
  "err": {},
2253
- "uuid": "8be752c9-0b1e-4988-ad29-a64e3902e724",
2254
- "parentUUID": "73085272-53e9-4aaa-8688-5574d39ee57b",
2253
+ "uuid": "b64a65c0-02e5-4c42-b98d-60210b4e215c",
2254
+ "parentUUID": "2269d42d-d13b-46c2-80e6-24e04b53a76e",
2255
2255
  "isHook": false,
2256
2256
  "skipped": false
2257
2257
  }
2258
2258
  ],
2259
2259
  "suites": [],
2260
2260
  "passes": [
2261
- "8be752c9-0b1e-4988-ad29-a64e3902e724"
2261
+ "b64a65c0-02e5-4c42-b98d-60210b4e215c"
2262
2262
  ],
2263
2263
  "failures": [],
2264
2264
  "pending": [],
2265
2265
  "skipped": [],
2266
- "duration": 2,
2266
+ "duration": 1,
2267
2267
  "root": false,
2268
2268
  "rootEmpty": false,
2269
2269
  "_timeout": 2000
2270
2270
  },
2271
2271
  {
2272
- "uuid": "508af029-4bbd-4b7d-b30c-d5c2dd27d981",
2272
+ "uuid": "a826abaf-cbb6-47d6-bc20-b1064666cd84",
2273
2273
  "title": "menu()",
2274
2274
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2275
2275
  "file": "/test/device.ts",
@@ -2289,15 +2289,15 @@
2289
2289
  "context": null,
2290
2290
  "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});",
2291
2291
  "err": {},
2292
- "uuid": "2cfae7e6-0f6b-4978-a344-569e41f433a9",
2293
- "parentUUID": "508af029-4bbd-4b7d-b30c-d5c2dd27d981",
2292
+ "uuid": "f72358a9-d4a5-4625-a635-0fa3f9cbcf5e",
2293
+ "parentUUID": "a826abaf-cbb6-47d6-bc20-b1064666cd84",
2294
2294
  "isHook": false,
2295
2295
  "skipped": false
2296
2296
  }
2297
2297
  ],
2298
2298
  "suites": [],
2299
2299
  "passes": [
2300
- "2cfae7e6-0f6b-4978-a344-569e41f433a9"
2300
+ "f72358a9-d4a5-4625-a635-0fa3f9cbcf5e"
2301
2301
  ],
2302
2302
  "failures": [],
2303
2303
  "pending": [],
@@ -2308,7 +2308,7 @@
2308
2308
  "_timeout": 2000
2309
2309
  },
2310
2310
  {
2311
- "uuid": "3794b582-c8b6-4501-90ad-ae365e5714e8",
2311
+ "uuid": "48718a16-28be-42d1-9723-ec4a99bd8543",
2312
2312
  "title": "next()",
2313
2313
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2314
2314
  "file": "/test/device.ts",
@@ -2328,15 +2328,15 @@
2328
2328
  "context": null,
2329
2329
  "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});",
2330
2330
  "err": {},
2331
- "uuid": "c112c036-90d8-47ed-bbf1-136516c4ed4c",
2332
- "parentUUID": "3794b582-c8b6-4501-90ad-ae365e5714e8",
2331
+ "uuid": "6e622b58-0496-4025-8af3-e128d6fce34a",
2332
+ "parentUUID": "48718a16-28be-42d1-9723-ec4a99bd8543",
2333
2333
  "isHook": false,
2334
2334
  "skipped": false
2335
2335
  }
2336
2336
  ],
2337
2337
  "suites": [],
2338
2338
  "passes": [
2339
- "c112c036-90d8-47ed-bbf1-136516c4ed4c"
2339
+ "6e622b58-0496-4025-8af3-e128d6fce34a"
2340
2340
  ],
2341
2341
  "failures": [],
2342
2342
  "pending": [],
@@ -2347,7 +2347,7 @@
2347
2347
  "_timeout": 2000
2348
2348
  },
2349
2349
  {
2350
- "uuid": "42cef966-2026-45e0-82dc-b112930369bd",
2350
+ "uuid": "a9b71845-0074-4dcf-b899-3bca2e98fb36",
2351
2351
  "title": "pause()",
2352
2352
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2353
2353
  "file": "/test/device.ts",
@@ -2367,15 +2367,15 @@
2367
2367
  "context": null,
2368
2368
  "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});",
2369
2369
  "err": {},
2370
- "uuid": "ecb71cb7-29bf-458e-8d44-f84f3f84e05e",
2371
- "parentUUID": "42cef966-2026-45e0-82dc-b112930369bd",
2370
+ "uuid": "eacbde27-183a-4abc-b948-3fb9aa9156b8",
2371
+ "parentUUID": "a9b71845-0074-4dcf-b899-3bca2e98fb36",
2372
2372
  "isHook": false,
2373
2373
  "skipped": false
2374
2374
  }
2375
2375
  ],
2376
2376
  "suites": [],
2377
2377
  "passes": [
2378
- "ecb71cb7-29bf-458e-8d44-f84f3f84e05e"
2378
+ "eacbde27-183a-4abc-b948-3fb9aa9156b8"
2379
2379
  ],
2380
2380
  "failures": [],
2381
2381
  "pending": [],
@@ -2386,7 +2386,7 @@
2386
2386
  "_timeout": 2000
2387
2387
  },
2388
2388
  {
2389
- "uuid": "07090721-dd44-4f67-9c63-a13e20333088",
2389
+ "uuid": "86947f44-415b-41cf-8760-f2ecb085c391",
2390
2390
  "title": "play()",
2391
2391
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2392
2392
  "file": "/test/device.ts",
@@ -2406,15 +2406,15 @@
2406
2406
  "context": null,
2407
2407
  "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});",
2408
2408
  "err": {},
2409
- "uuid": "abfdd5d8-5223-4c16-a62d-8d1a5b81ee06",
2410
- "parentUUID": "07090721-dd44-4f67-9c63-a13e20333088",
2409
+ "uuid": "656d7e26-7b80-4dc4-b41c-69822c12fc63",
2410
+ "parentUUID": "86947f44-415b-41cf-8760-f2ecb085c391",
2411
2411
  "isHook": false,
2412
2412
  "skipped": false
2413
2413
  }
2414
2414
  ],
2415
2415
  "suites": [],
2416
2416
  "passes": [
2417
- "abfdd5d8-5223-4c16-a62d-8d1a5b81ee06"
2417
+ "656d7e26-7b80-4dc4-b41c-69822c12fc63"
2418
2418
  ],
2419
2419
  "failures": [],
2420
2420
  "pending": [],
@@ -2425,7 +2425,7 @@
2425
2425
  "_timeout": 2000
2426
2426
  },
2427
2427
  {
2428
- "uuid": "310cfed7-d80c-40a4-a026-a18b98b4eb08",
2428
+ "uuid": "508018a1-aa64-421e-9c29-8845478a02b4",
2429
2429
  "title": "playPause()",
2430
2430
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2431
2431
  "file": "/test/device.ts",
@@ -2436,7 +2436,7 @@
2436
2436
  "title": "should work",
2437
2437
  "fullTitle": "NodePyATVDevice playPause() should work",
2438
2438
  "timedOut": false,
2439
- "duration": 1,
2439
+ "duration": 2,
2440
2440
  "state": "passed",
2441
2441
  "speed": "fast",
2442
2442
  "pass": true,
@@ -2445,26 +2445,26 @@
2445
2445
  "context": null,
2446
2446
  "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});",
2447
2447
  "err": {},
2448
- "uuid": "e1b40e6f-a2af-44e9-89fd-adc91d208781",
2449
- "parentUUID": "310cfed7-d80c-40a4-a026-a18b98b4eb08",
2448
+ "uuid": "fdd5da7b-d45f-4dc0-9347-67998f8f4f3b",
2449
+ "parentUUID": "508018a1-aa64-421e-9c29-8845478a02b4",
2450
2450
  "isHook": false,
2451
2451
  "skipped": false
2452
2452
  }
2453
2453
  ],
2454
2454
  "suites": [],
2455
2455
  "passes": [
2456
- "e1b40e6f-a2af-44e9-89fd-adc91d208781"
2456
+ "fdd5da7b-d45f-4dc0-9347-67998f8f4f3b"
2457
2457
  ],
2458
2458
  "failures": [],
2459
2459
  "pending": [],
2460
2460
  "skipped": [],
2461
- "duration": 1,
2461
+ "duration": 2,
2462
2462
  "root": false,
2463
2463
  "rootEmpty": false,
2464
2464
  "_timeout": 2000
2465
2465
  },
2466
2466
  {
2467
- "uuid": "b40ed1e1-89a9-4c55-8861-1e813ad87716",
2467
+ "uuid": "402a2885-d021-4c8c-acaa-44243d58a880",
2468
2468
  "title": "previous()",
2469
2469
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2470
2470
  "file": "/test/device.ts",
@@ -2484,15 +2484,15 @@
2484
2484
  "context": null,
2485
2485
  "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});",
2486
2486
  "err": {},
2487
- "uuid": "0c08d6e2-52a6-4180-8029-82bc46034198",
2488
- "parentUUID": "b40ed1e1-89a9-4c55-8861-1e813ad87716",
2487
+ "uuid": "e667bced-ea49-48bd-af88-a89b9b8b8e49",
2488
+ "parentUUID": "402a2885-d021-4c8c-acaa-44243d58a880",
2489
2489
  "isHook": false,
2490
2490
  "skipped": false
2491
2491
  }
2492
2492
  ],
2493
2493
  "suites": [],
2494
2494
  "passes": [
2495
- "0c08d6e2-52a6-4180-8029-82bc46034198"
2495
+ "e667bced-ea49-48bd-af88-a89b9b8b8e49"
2496
2496
  ],
2497
2497
  "failures": [],
2498
2498
  "pending": [],
@@ -2503,7 +2503,7 @@
2503
2503
  "_timeout": 2000
2504
2504
  },
2505
2505
  {
2506
- "uuid": "edf20a07-a327-419a-a22c-3b8b792c574b",
2506
+ "uuid": "9c5e4a3c-d1ce-4e66-a289-b3a3299f413a",
2507
2507
  "title": "right()",
2508
2508
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2509
2509
  "file": "/test/device.ts",
@@ -2514,7 +2514,7 @@
2514
2514
  "title": "should work",
2515
2515
  "fullTitle": "NodePyATVDevice right() should work",
2516
2516
  "timedOut": false,
2517
- "duration": 1,
2517
+ "duration": 0,
2518
2518
  "state": "passed",
2519
2519
  "speed": "fast",
2520
2520
  "pass": true,
@@ -2523,26 +2523,26 @@
2523
2523
  "context": null,
2524
2524
  "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});",
2525
2525
  "err": {},
2526
- "uuid": "06f55604-47e1-440b-aef3-d174f8ebf7e9",
2527
- "parentUUID": "edf20a07-a327-419a-a22c-3b8b792c574b",
2526
+ "uuid": "e13c647d-c066-4936-b761-c05843d249f6",
2527
+ "parentUUID": "9c5e4a3c-d1ce-4e66-a289-b3a3299f413a",
2528
2528
  "isHook": false,
2529
2529
  "skipped": false
2530
2530
  }
2531
2531
  ],
2532
2532
  "suites": [],
2533
2533
  "passes": [
2534
- "06f55604-47e1-440b-aef3-d174f8ebf7e9"
2534
+ "e13c647d-c066-4936-b761-c05843d249f6"
2535
2535
  ],
2536
2536
  "failures": [],
2537
2537
  "pending": [],
2538
2538
  "skipped": [],
2539
- "duration": 1,
2539
+ "duration": 0,
2540
2540
  "root": false,
2541
2541
  "rootEmpty": false,
2542
2542
  "_timeout": 2000
2543
2543
  },
2544
2544
  {
2545
- "uuid": "fb6271a2-dadf-43c1-90e0-8c37d0f98627",
2545
+ "uuid": "745865c3-4da4-4432-a675-435bf53e1f8d",
2546
2546
  "title": "select()",
2547
2547
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2548
2548
  "file": "/test/device.ts",
@@ -2562,15 +2562,15 @@
2562
2562
  "context": null,
2563
2563
  "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});",
2564
2564
  "err": {},
2565
- "uuid": "0d2fbadd-22ec-4568-99ba-9c84f08052cc",
2566
- "parentUUID": "fb6271a2-dadf-43c1-90e0-8c37d0f98627",
2565
+ "uuid": "c3df8683-a9b9-4c8b-a15a-fa1b4294564e",
2566
+ "parentUUID": "745865c3-4da4-4432-a675-435bf53e1f8d",
2567
2567
  "isHook": false,
2568
2568
  "skipped": false
2569
2569
  }
2570
2570
  ],
2571
2571
  "suites": [],
2572
2572
  "passes": [
2573
- "0d2fbadd-22ec-4568-99ba-9c84f08052cc"
2573
+ "c3df8683-a9b9-4c8b-a15a-fa1b4294564e"
2574
2574
  ],
2575
2575
  "failures": [],
2576
2576
  "pending": [],
@@ -2581,7 +2581,7 @@
2581
2581
  "_timeout": 2000
2582
2582
  },
2583
2583
  {
2584
- "uuid": "e2d85f1d-bf27-4b5d-bd7d-3a75ea54892a",
2584
+ "uuid": "8baacd39-c741-4ea3-b83f-fbc3ee7b0ee6",
2585
2585
  "title": "skipBackward()",
2586
2586
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2587
2587
  "file": "/test/device.ts",
@@ -2601,15 +2601,15 @@
2601
2601
  "context": null,
2602
2602
  "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});",
2603
2603
  "err": {},
2604
- "uuid": "e9385cba-b313-49e4-8be6-87867eaf9254",
2605
- "parentUUID": "e2d85f1d-bf27-4b5d-bd7d-3a75ea54892a",
2604
+ "uuid": "988ec041-22b4-4621-a51f-092bed6ff6a3",
2605
+ "parentUUID": "8baacd39-c741-4ea3-b83f-fbc3ee7b0ee6",
2606
2606
  "isHook": false,
2607
2607
  "skipped": false
2608
2608
  }
2609
2609
  ],
2610
2610
  "suites": [],
2611
2611
  "passes": [
2612
- "e9385cba-b313-49e4-8be6-87867eaf9254"
2612
+ "988ec041-22b4-4621-a51f-092bed6ff6a3"
2613
2613
  ],
2614
2614
  "failures": [],
2615
2615
  "pending": [],
@@ -2620,7 +2620,7 @@
2620
2620
  "_timeout": 2000
2621
2621
  },
2622
2622
  {
2623
- "uuid": "5367773e-3568-4bba-860c-370850d4b458",
2623
+ "uuid": "7b55928c-3f79-41ac-a419-653b8a8f29b2",
2624
2624
  "title": "skipForward()",
2625
2625
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2626
2626
  "file": "/test/device.ts",
@@ -2640,15 +2640,15 @@
2640
2640
  "context": null,
2641
2641
  "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});",
2642
2642
  "err": {},
2643
- "uuid": "9d7499b2-6771-4312-bf41-b93ef9e794c8",
2644
- "parentUUID": "5367773e-3568-4bba-860c-370850d4b458",
2643
+ "uuid": "de218702-2418-4277-bfa1-0f67202e8877",
2644
+ "parentUUID": "7b55928c-3f79-41ac-a419-653b8a8f29b2",
2645
2645
  "isHook": false,
2646
2646
  "skipped": false
2647
2647
  }
2648
2648
  ],
2649
2649
  "suites": [],
2650
2650
  "passes": [
2651
- "9d7499b2-6771-4312-bf41-b93ef9e794c8"
2651
+ "de218702-2418-4277-bfa1-0f67202e8877"
2652
2652
  ],
2653
2653
  "failures": [],
2654
2654
  "pending": [],
@@ -2659,7 +2659,7 @@
2659
2659
  "_timeout": 2000
2660
2660
  },
2661
2661
  {
2662
- "uuid": "7028f9d6-d4b7-4b78-9973-f4bc424db650",
2662
+ "uuid": "39f55e93-9a0a-4cee-ab8e-fc8b580690bc",
2663
2663
  "title": "stop()",
2664
2664
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2665
2665
  "file": "/test/device.ts",
@@ -2670,7 +2670,7 @@
2670
2670
  "title": "should work",
2671
2671
  "fullTitle": "NodePyATVDevice stop() should work",
2672
2672
  "timedOut": false,
2673
- "duration": 1,
2673
+ "duration": 2,
2674
2674
  "state": "passed",
2675
2675
  "speed": "fast",
2676
2676
  "pass": true,
@@ -2679,26 +2679,26 @@
2679
2679
  "context": null,
2680
2680
  "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});",
2681
2681
  "err": {},
2682
- "uuid": "0c39ce43-f98a-4f2a-9e9a-2c65151cc8f8",
2683
- "parentUUID": "7028f9d6-d4b7-4b78-9973-f4bc424db650",
2682
+ "uuid": "e366bb2d-70bf-4402-8993-3bf6323ddbb4",
2683
+ "parentUUID": "39f55e93-9a0a-4cee-ab8e-fc8b580690bc",
2684
2684
  "isHook": false,
2685
2685
  "skipped": false
2686
2686
  }
2687
2687
  ],
2688
2688
  "suites": [],
2689
2689
  "passes": [
2690
- "0c39ce43-f98a-4f2a-9e9a-2c65151cc8f8"
2690
+ "e366bb2d-70bf-4402-8993-3bf6323ddbb4"
2691
2691
  ],
2692
2692
  "failures": [],
2693
2693
  "pending": [],
2694
2694
  "skipped": [],
2695
- "duration": 1,
2695
+ "duration": 2,
2696
2696
  "root": false,
2697
2697
  "rootEmpty": false,
2698
2698
  "_timeout": 2000
2699
2699
  },
2700
2700
  {
2701
- "uuid": "3bf9c790-4112-42ca-bb94-d954e5336b2d",
2701
+ "uuid": "d38a2eef-b0c0-4956-b400-392778910b6c",
2702
2702
  "title": "suspend()",
2703
2703
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2704
2704
  "file": "/test/device.ts",
@@ -2718,15 +2718,15 @@
2718
2718
  "context": null,
2719
2719
  "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});",
2720
2720
  "err": {},
2721
- "uuid": "a339b8cd-a681-402b-8577-0cf36052e898",
2722
- "parentUUID": "3bf9c790-4112-42ca-bb94-d954e5336b2d",
2721
+ "uuid": "3b96b47f-729e-4713-a809-61e5038d0eae",
2722
+ "parentUUID": "d38a2eef-b0c0-4956-b400-392778910b6c",
2723
2723
  "isHook": false,
2724
2724
  "skipped": false
2725
2725
  }
2726
2726
  ],
2727
2727
  "suites": [],
2728
2728
  "passes": [
2729
- "a339b8cd-a681-402b-8577-0cf36052e898"
2729
+ "3b96b47f-729e-4713-a809-61e5038d0eae"
2730
2730
  ],
2731
2731
  "failures": [],
2732
2732
  "pending": [],
@@ -2737,7 +2737,7 @@
2737
2737
  "_timeout": 2000
2738
2738
  },
2739
2739
  {
2740
- "uuid": "f40df66d-d8bf-4831-909f-bf6cca8104b8",
2740
+ "uuid": "d281cadf-fcb6-45f4-ad48-b2c0c812b1b7",
2741
2741
  "title": "topMenu()",
2742
2742
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2743
2743
  "file": "/test/device.ts",
@@ -2748,7 +2748,7 @@
2748
2748
  "title": "should work",
2749
2749
  "fullTitle": "NodePyATVDevice topMenu() should work",
2750
2750
  "timedOut": false,
2751
- "duration": 2,
2751
+ "duration": 1,
2752
2752
  "state": "passed",
2753
2753
  "speed": "fast",
2754
2754
  "pass": true,
@@ -2757,26 +2757,26 @@
2757
2757
  "context": null,
2758
2758
  "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});",
2759
2759
  "err": {},
2760
- "uuid": "9d39feaa-5ca8-48ae-b727-dc4c5810ff9a",
2761
- "parentUUID": "f40df66d-d8bf-4831-909f-bf6cca8104b8",
2760
+ "uuid": "6e91ec51-ee90-4a12-a812-c7c44f98dc69",
2761
+ "parentUUID": "d281cadf-fcb6-45f4-ad48-b2c0c812b1b7",
2762
2762
  "isHook": false,
2763
2763
  "skipped": false
2764
2764
  }
2765
2765
  ],
2766
2766
  "suites": [],
2767
2767
  "passes": [
2768
- "9d39feaa-5ca8-48ae-b727-dc4c5810ff9a"
2768
+ "6e91ec51-ee90-4a12-a812-c7c44f98dc69"
2769
2769
  ],
2770
2770
  "failures": [],
2771
2771
  "pending": [],
2772
2772
  "skipped": [],
2773
- "duration": 2,
2773
+ "duration": 1,
2774
2774
  "root": false,
2775
2775
  "rootEmpty": false,
2776
2776
  "_timeout": 2000
2777
2777
  },
2778
2778
  {
2779
- "uuid": "472d5ef2-9848-48d7-9879-c92e10062e0c",
2779
+ "uuid": "e0b77d25-00fe-44d5-9afa-8e2580468131",
2780
2780
  "title": "up()",
2781
2781
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2782
2782
  "file": "/test/device.ts",
@@ -2796,15 +2796,15 @@
2796
2796
  "context": null,
2797
2797
  "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});",
2798
2798
  "err": {},
2799
- "uuid": "6b6af312-106e-49a5-b4e1-c0661e81a867",
2800
- "parentUUID": "472d5ef2-9848-48d7-9879-c92e10062e0c",
2799
+ "uuid": "bf4a7baf-3361-4f47-8431-31b3158a444b",
2800
+ "parentUUID": "e0b77d25-00fe-44d5-9afa-8e2580468131",
2801
2801
  "isHook": false,
2802
2802
  "skipped": false
2803
2803
  }
2804
2804
  ],
2805
2805
  "suites": [],
2806
2806
  "passes": [
2807
- "6b6af312-106e-49a5-b4e1-c0661e81a867"
2807
+ "bf4a7baf-3361-4f47-8431-31b3158a444b"
2808
2808
  ],
2809
2809
  "failures": [],
2810
2810
  "pending": [],
@@ -2815,7 +2815,7 @@
2815
2815
  "_timeout": 2000
2816
2816
  },
2817
2817
  {
2818
- "uuid": "179bdcbe-778c-4705-a47c-736799ba981c",
2818
+ "uuid": "c9a3b06c-9908-4887-b2c5-071ed18e150f",
2819
2819
  "title": "volumeDown()",
2820
2820
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2821
2821
  "file": "/test/device.ts",
@@ -2835,15 +2835,15 @@
2835
2835
  "context": null,
2836
2836
  "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});",
2837
2837
  "err": {},
2838
- "uuid": "76e0554e-968e-4543-a6f4-5ca93e9109ce",
2839
- "parentUUID": "179bdcbe-778c-4705-a47c-736799ba981c",
2838
+ "uuid": "a849b8b3-88f6-42dd-827d-1ec7d08167b3",
2839
+ "parentUUID": "c9a3b06c-9908-4887-b2c5-071ed18e150f",
2840
2840
  "isHook": false,
2841
2841
  "skipped": false
2842
2842
  }
2843
2843
  ],
2844
2844
  "suites": [],
2845
2845
  "passes": [
2846
- "76e0554e-968e-4543-a6f4-5ca93e9109ce"
2846
+ "a849b8b3-88f6-42dd-827d-1ec7d08167b3"
2847
2847
  ],
2848
2848
  "failures": [],
2849
2849
  "pending": [],
@@ -2854,7 +2854,7 @@
2854
2854
  "_timeout": 2000
2855
2855
  },
2856
2856
  {
2857
- "uuid": "6be18a09-51a1-4356-8489-6c9a5409d30b",
2857
+ "uuid": "2f30fdd6-58ce-40bb-b509-f6bc0abe6390",
2858
2858
  "title": "volumeUp()",
2859
2859
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2860
2860
  "file": "/test/device.ts",
@@ -2874,15 +2874,15 @@
2874
2874
  "context": null,
2875
2875
  "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});",
2876
2876
  "err": {},
2877
- "uuid": "2461345a-f8ec-46a8-8995-30a9f848ad26",
2878
- "parentUUID": "6be18a09-51a1-4356-8489-6c9a5409d30b",
2877
+ "uuid": "b52ef3a4-3299-4239-be08-e4e00ce3bb32",
2878
+ "parentUUID": "2f30fdd6-58ce-40bb-b509-f6bc0abe6390",
2879
2879
  "isHook": false,
2880
2880
  "skipped": false
2881
2881
  }
2882
2882
  ],
2883
2883
  "suites": [],
2884
2884
  "passes": [
2885
- "2461345a-f8ec-46a8-8995-30a9f848ad26"
2885
+ "b52ef3a4-3299-4239-be08-e4e00ce3bb32"
2886
2886
  ],
2887
2887
  "failures": [],
2888
2888
  "pending": [],
@@ -2893,7 +2893,7 @@
2893
2893
  "_timeout": 2000
2894
2894
  },
2895
2895
  {
2896
- "uuid": "fe6e5c5e-322e-4c9e-9924-e46459d142f4",
2896
+ "uuid": "9dc73ddb-cbab-45cf-b226-0920031c1a21",
2897
2897
  "title": "wakeup()",
2898
2898
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2899
2899
  "file": "/test/device.ts",
@@ -2904,7 +2904,7 @@
2904
2904
  "title": "should work",
2905
2905
  "fullTitle": "NodePyATVDevice wakeup() should work",
2906
2906
  "timedOut": false,
2907
- "duration": 1,
2907
+ "duration": 2,
2908
2908
  "state": "passed",
2909
2909
  "speed": "fast",
2910
2910
  "pass": true,
@@ -2913,26 +2913,26 @@
2913
2913
  "context": null,
2914
2914
  "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});",
2915
2915
  "err": {},
2916
- "uuid": "2c4635b3-06d9-416a-a344-02227a796ad8",
2917
- "parentUUID": "fe6e5c5e-322e-4c9e-9924-e46459d142f4",
2916
+ "uuid": "cf0a9877-320c-4e5e-99b7-ce4985b39298",
2917
+ "parentUUID": "9dc73ddb-cbab-45cf-b226-0920031c1a21",
2918
2918
  "isHook": false,
2919
2919
  "skipped": false
2920
2920
  }
2921
2921
  ],
2922
2922
  "suites": [],
2923
2923
  "passes": [
2924
- "2c4635b3-06d9-416a-a344-02227a796ad8"
2924
+ "cf0a9877-320c-4e5e-99b7-ce4985b39298"
2925
2925
  ],
2926
2926
  "failures": [],
2927
2927
  "pending": [],
2928
2928
  "skipped": [],
2929
- "duration": 1,
2929
+ "duration": 2,
2930
2930
  "root": false,
2931
2931
  "rootEmpty": false,
2932
2932
  "_timeout": 2000
2933
2933
  },
2934
2934
  {
2935
- "uuid": "14b3feb3-bc1f-468c-8165-42e5a5240f87",
2935
+ "uuid": "df9805b7-a332-497b-a06e-460ca55fd4f6",
2936
2936
  "title": "turnOff()",
2937
2937
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2938
2938
  "file": "/test/device.ts",
@@ -2952,15 +2952,15 @@
2952
2952
  "context": null,
2953
2953
  "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});",
2954
2954
  "err": {},
2955
- "uuid": "02d0f312-2dbb-4a10-9711-61ffb9c1bf76",
2956
- "parentUUID": "14b3feb3-bc1f-468c-8165-42e5a5240f87",
2955
+ "uuid": "5c87d3d0-0a59-42a3-8966-d8c5c7d9efe0",
2956
+ "parentUUID": "df9805b7-a332-497b-a06e-460ca55fd4f6",
2957
2957
  "isHook": false,
2958
2958
  "skipped": false
2959
2959
  }
2960
2960
  ],
2961
2961
  "suites": [],
2962
2962
  "passes": [
2963
- "02d0f312-2dbb-4a10-9711-61ffb9c1bf76"
2963
+ "5c87d3d0-0a59-42a3-8966-d8c5c7d9efe0"
2964
2964
  ],
2965
2965
  "failures": [],
2966
2966
  "pending": [],
@@ -2971,7 +2971,7 @@
2971
2971
  "_timeout": 2000
2972
2972
  },
2973
2973
  {
2974
- "uuid": "c73711bf-abd1-457e-9b18-6a2483d0b87b",
2974
+ "uuid": "64a617e5-5a15-4408-94de-276a1969363b",
2975
2975
  "title": "turnOn()",
2976
2976
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
2977
2977
  "file": "/test/device.ts",
@@ -2991,15 +2991,15 @@
2991
2991
  "context": null,
2992
2992
  "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});",
2993
2993
  "err": {},
2994
- "uuid": "d7f261b8-8425-4b3f-9417-2f8bcdbe323e",
2995
- "parentUUID": "c73711bf-abd1-457e-9b18-6a2483d0b87b",
2994
+ "uuid": "44293958-ce07-4593-bccb-374de2e16c41",
2995
+ "parentUUID": "64a617e5-5a15-4408-94de-276a1969363b",
2996
2996
  "isHook": false,
2997
2997
  "skipped": false
2998
2998
  }
2999
2999
  ],
3000
3000
  "suites": [],
3001
3001
  "passes": [
3002
- "d7f261b8-8425-4b3f-9417-2f8bcdbe323e"
3002
+ "44293958-ce07-4593-bccb-374de2e16c41"
3003
3003
  ],
3004
3004
  "failures": [],
3005
3005
  "pending": [],
@@ -3020,7 +3020,7 @@
3020
3020
  "_timeout": 2000
3021
3021
  },
3022
3022
  {
3023
- "uuid": "e445d5ad-f495-4f53-919b-e7ad6ab78597",
3023
+ "uuid": "f9200ee5-c175-470b-a030-72c38cb2e580",
3024
3024
  "title": "NodePyATVInstance",
3025
3025
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3026
3026
  "file": "/test/instance.ts",
@@ -3029,7 +3029,7 @@
3029
3029
  "tests": [],
3030
3030
  "suites": [
3031
3031
  {
3032
- "uuid": "28a0367d-591e-4162-be98-ee501c7f5e33",
3032
+ "uuid": "e9c39d19-769c-4b49-9040-0748323a7068",
3033
3033
  "title": "static version()",
3034
3034
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3035
3035
  "file": "/test/instance.ts",
@@ -3040,7 +3040,7 @@
3040
3040
  "title": "should work with pyatv [L]",
3041
3041
  "fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
3042
3042
  "timedOut": false,
3043
- "duration": 525,
3043
+ "duration": 784,
3044
3044
  "state": "passed",
3045
3045
  "speed": "slow",
3046
3046
  "pass": true,
@@ -3049,8 +3049,8 @@
3049
3049
  "context": null,
3050
3050
  "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});",
3051
3051
  "err": {},
3052
- "uuid": "fe4dad7b-6843-4c10-8135-61cce7f3968c",
3053
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3052
+ "uuid": "f35d59a4-3999-44dc-b9d4-a6425e2de98c",
3053
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3054
3054
  "isHook": false,
3055
3055
  "skipped": false
3056
3056
  },
@@ -3067,8 +3067,8 @@
3067
3067
  "context": null,
3068
3068
  "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});",
3069
3069
  "err": {},
3070
- "uuid": "533a8e82-403a-4948-9018-a968b9869f08",
3071
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3070
+ "uuid": "6d2acfd9-8386-481e-95b3-014235131336",
3071
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3072
3072
  "isHook": false,
3073
3073
  "skipped": false
3074
3074
  },
@@ -3085,8 +3085,8 @@
3085
3085
  "context": null,
3086
3086
  "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});",
3087
3087
  "err": {},
3088
- "uuid": "1df0cc1d-3976-4923-9c3a-072bf3d2d09d",
3089
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3088
+ "uuid": "4a4ee74f-972a-4f48-8694-47c0e4432081",
3089
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3090
3090
  "isHook": false,
3091
3091
  "skipped": false
3092
3092
  },
@@ -3103,8 +3103,8 @@
3103
3103
  "context": null,
3104
3104
  "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});",
3105
3105
  "err": {},
3106
- "uuid": "fb0f8626-b706-4df9-a2f3-20544d47a240",
3107
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3106
+ "uuid": "92be38ce-e586-4105-bcc6-c69b402c1227",
3107
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3108
3108
  "isHook": false,
3109
3109
  "skipped": false
3110
3110
  },
@@ -3112,7 +3112,7 @@
3112
3112
  "title": "should work with option.debug = true",
3113
3113
  "fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
3114
3114
  "timedOut": false,
3115
- "duration": 3,
3115
+ "duration": 1,
3116
3116
  "state": "passed",
3117
3117
  "speed": "fast",
3118
3118
  "pass": true,
@@ -3121,8 +3121,8 @@
3121
3121
  "context": null,
3122
3122
  "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});",
3123
3123
  "err": {},
3124
- "uuid": "8efaa8e2-562e-40bd-83cc-54d8b6b4c1c7",
3125
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3124
+ "uuid": "64c57a26-6dd7-49ef-90fb-c49cf47696b2",
3125
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3126
3126
  "isHook": false,
3127
3127
  "skipped": false
3128
3128
  },
@@ -3130,7 +3130,7 @@
3130
3130
  "title": "should work with option.noColors",
3131
3131
  "fullTitle": "NodePyATVInstance static version() should work with option.noColors",
3132
3132
  "timedOut": false,
3133
- "duration": 2,
3133
+ "duration": 1,
3134
3134
  "state": "passed",
3135
3135
  "speed": "fast",
3136
3136
  "pass": true,
@@ -3139,8 +3139,8 @@
3139
3139
  "context": null,
3140
3140
  "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});",
3141
3141
  "err": {},
3142
- "uuid": "b2cedddd-77b0-48d9-8446-58c6abb9ea98",
3143
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3142
+ "uuid": "c0c84d63-4fc9-4971-930e-e70e95e6b380",
3143
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3144
3144
  "isHook": false,
3145
3145
  "skipped": false
3146
3146
  },
@@ -3148,7 +3148,7 @@
3148
3148
  "title": "should return null on pyatv stderr output",
3149
3149
  "fullTitle": "NodePyATVInstance static version() should return null on pyatv stderr output",
3150
3150
  "timedOut": false,
3151
- "duration": 2,
3151
+ "duration": 1,
3152
3152
  "state": "passed",
3153
3153
  "speed": "fast",
3154
3154
  "pass": true,
@@ -3157,8 +3157,8 @@
3157
3157
  "context": null,
3158
3158
  "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});",
3159
3159
  "err": {},
3160
- "uuid": "a449cf3b-109f-40d2-9db6-e873fc8c8aa2",
3161
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3160
+ "uuid": "01706946-bc92-49cd-b141-398fd52d54d8",
3161
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3162
3162
  "isHook": false,
3163
3163
  "skipped": false
3164
3164
  },
@@ -3166,7 +3166,7 @@
3166
3166
  "title": "should return null on pyatv error",
3167
3167
  "fullTitle": "NodePyATVInstance static version() should return null on pyatv error",
3168
3168
  "timedOut": false,
3169
- "duration": 2,
3169
+ "duration": 1,
3170
3170
  "state": "passed",
3171
3171
  "speed": "fast",
3172
3172
  "pass": true,
@@ -3175,8 +3175,8 @@
3175
3175
  "context": null,
3176
3176
  "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});",
3177
3177
  "err": {},
3178
- "uuid": "c999012c-e9f6-4093-9d90-2968f91cbb13",
3179
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3178
+ "uuid": "0b7157c7-5bbe-4e26-ae80-09b9e235f2bc",
3179
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3180
3180
  "isHook": false,
3181
3181
  "skipped": false
3182
3182
  },
@@ -3193,34 +3193,34 @@
3193
3193
  "context": null,
3194
3194
  "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});",
3195
3195
  "err": {},
3196
- "uuid": "f74ec60e-0c58-4503-83fa-0618f7b4531f",
3197
- "parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
3196
+ "uuid": "7b7c11b8-2de0-4383-aec9-7b8cec84986c",
3197
+ "parentUUID": "e9c39d19-769c-4b49-9040-0748323a7068",
3198
3198
  "isHook": false,
3199
3199
  "skipped": false
3200
3200
  }
3201
3201
  ],
3202
3202
  "suites": [],
3203
3203
  "passes": [
3204
- "fe4dad7b-6843-4c10-8135-61cce7f3968c",
3205
- "533a8e82-403a-4948-9018-a968b9869f08",
3206
- "1df0cc1d-3976-4923-9c3a-072bf3d2d09d",
3207
- "fb0f8626-b706-4df9-a2f3-20544d47a240",
3208
- "8efaa8e2-562e-40bd-83cc-54d8b6b4c1c7",
3209
- "b2cedddd-77b0-48d9-8446-58c6abb9ea98",
3210
- "a449cf3b-109f-40d2-9db6-e873fc8c8aa2",
3211
- "c999012c-e9f6-4093-9d90-2968f91cbb13",
3212
- "f74ec60e-0c58-4503-83fa-0618f7b4531f"
3204
+ "f35d59a4-3999-44dc-b9d4-a6425e2de98c",
3205
+ "6d2acfd9-8386-481e-95b3-014235131336",
3206
+ "4a4ee74f-972a-4f48-8694-47c0e4432081",
3207
+ "92be38ce-e586-4105-bcc6-c69b402c1227",
3208
+ "64c57a26-6dd7-49ef-90fb-c49cf47696b2",
3209
+ "c0c84d63-4fc9-4971-930e-e70e95e6b380",
3210
+ "01706946-bc92-49cd-b141-398fd52d54d8",
3211
+ "0b7157c7-5bbe-4e26-ae80-09b9e235f2bc",
3212
+ "7b7c11b8-2de0-4383-aec9-7b8cec84986c"
3213
3213
  ],
3214
3214
  "failures": [],
3215
3215
  "pending": [],
3216
3216
  "skipped": [],
3217
- "duration": 541,
3217
+ "duration": 795,
3218
3218
  "root": false,
3219
3219
  "rootEmpty": false,
3220
3220
  "_timeout": 2000
3221
3221
  },
3222
3222
  {
3223
- "uuid": "52935579-d604-4798-9f59-5eb7888c99c1",
3223
+ "uuid": "4c6dc800-8ee7-4ea7-8d33-a25e6f44dc8e",
3224
3224
  "title": "static check()",
3225
3225
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3226
3226
  "file": "/test/instance.ts",
@@ -3231,7 +3231,7 @@
3231
3231
  "title": "should resolve in test environment [L]",
3232
3232
  "fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
3233
3233
  "timedOut": false,
3234
- "duration": 5854,
3234
+ "duration": 5919,
3235
3235
  "state": "passed",
3236
3236
  "speed": "slow",
3237
3237
  "pass": true,
@@ -3240,8 +3240,8 @@
3240
3240
  "context": null,
3241
3241
  "code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield NodePyATVInstance.check();\n});",
3242
3242
  "err": {},
3243
- "uuid": "92633b01-fecc-4ead-baf9-af884bf7e477",
3244
- "parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
3243
+ "uuid": "f0e7a89c-88cf-4cbf-b920-56378740fb2c",
3244
+ "parentUUID": "4c6dc800-8ee7-4ea7-8d33-a25e6f44dc8e",
3245
3245
  "isHook": false,
3246
3246
  "skipped": false
3247
3247
  },
@@ -3249,7 +3249,7 @@
3249
3249
  "title": "should return nice error message if pyatv was not found",
3250
3250
  "fullTitle": "NodePyATVInstance static check() should return nice error message if pyatv was not found",
3251
3251
  "timedOut": false,
3252
- "duration": 2,
3252
+ "duration": 3,
3253
3253
  "state": "passed",
3254
3254
  "speed": "fast",
3255
3255
  "pass": true,
@@ -3258,8 +3258,8 @@
3258
3258
  "context": null,
3259
3259
  "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});",
3260
3260
  "err": {},
3261
- "uuid": "2c56409d-78b5-46f9-92ea-dd7de1116f91",
3262
- "parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
3261
+ "uuid": "6ab3782e-a7fe-4369-8af3-ca1bcd08dc8f",
3262
+ "parentUUID": "4c6dc800-8ee7-4ea7-8d33-a25e6f44dc8e",
3263
3263
  "isHook": false,
3264
3264
  "skipped": false
3265
3265
  },
@@ -3276,8 +3276,8 @@
3276
3276
  "context": null,
3277
3277
  "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});",
3278
3278
  "err": {},
3279
- "uuid": "f616e273-fc50-4819-85dd-0f38e80bd6d6",
3280
- "parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
3279
+ "uuid": "fc358bcc-d55a-46b1-b3c5-e06828b962e3",
3280
+ "parentUUID": "4c6dc800-8ee7-4ea7-8d33-a25e6f44dc8e",
3281
3281
  "isHook": false,
3282
3282
  "skipped": false
3283
3283
  },
@@ -3294,29 +3294,29 @@
3294
3294
  "context": null,
3295
3295
  "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});",
3296
3296
  "err": {},
3297
- "uuid": "1d15c0f3-1e44-46ea-822e-77771bf50487",
3298
- "parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
3297
+ "uuid": "0b0ce079-dab2-4734-b611-da1a38882df2",
3298
+ "parentUUID": "4c6dc800-8ee7-4ea7-8d33-a25e6f44dc8e",
3299
3299
  "isHook": false,
3300
3300
  "skipped": false
3301
3301
  }
3302
3302
  ],
3303
3303
  "suites": [],
3304
3304
  "passes": [
3305
- "92633b01-fecc-4ead-baf9-af884bf7e477",
3306
- "2c56409d-78b5-46f9-92ea-dd7de1116f91",
3307
- "f616e273-fc50-4819-85dd-0f38e80bd6d6",
3308
- "1d15c0f3-1e44-46ea-822e-77771bf50487"
3305
+ "f0e7a89c-88cf-4cbf-b920-56378740fb2c",
3306
+ "6ab3782e-a7fe-4369-8af3-ca1bcd08dc8f",
3307
+ "fc358bcc-d55a-46b1-b3c5-e06828b962e3",
3308
+ "0b0ce079-dab2-4734-b611-da1a38882df2"
3309
3309
  ],
3310
3310
  "failures": [],
3311
3311
  "pending": [],
3312
3312
  "skipped": [],
3313
- "duration": 5861,
3313
+ "duration": 5927,
3314
3314
  "root": false,
3315
3315
  "rootEmpty": false,
3316
3316
  "_timeout": 2000
3317
3317
  },
3318
3318
  {
3319
- "uuid": "798dca0f-9844-4736-b844-11d171e5866f",
3319
+ "uuid": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3320
3320
  "title": "static find()",
3321
3321
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3322
3322
  "file": "/test/instance.ts",
@@ -3327,7 +3327,7 @@
3327
3327
  "title": "should work [L]",
3328
3328
  "fullTitle": "NodePyATVInstance static find() should work [L]",
3329
3329
  "timedOut": false,
3330
- "duration": 5424,
3330
+ "duration": 5439,
3331
3331
  "state": "passed",
3332
3332
  "speed": "slow",
3333
3333
  "pass": true,
@@ -3336,8 +3336,8 @@
3336
3336
  "context": null,
3337
3337
  "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});",
3338
3338
  "err": {},
3339
- "uuid": "44f0a3a2-a552-4911-b01a-5c7f60869027",
3340
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3339
+ "uuid": "871ba256-aeab-4ee9-ae03-ba48506220d0",
3340
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3341
3341
  "isHook": false,
3342
3342
  "skipped": false
3343
3343
  },
@@ -3354,8 +3354,8 @@
3354
3354
  "context": null,
3355
3355
  "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});",
3356
3356
  "err": {},
3357
- "uuid": "eab6256e-3f20-4f56-a190-61c1c0a90665",
3358
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3357
+ "uuid": "ab7a7e9c-31e2-4928-a9e9-e3258fc67b8f",
3358
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3359
3359
  "isHook": false,
3360
3360
  "skipped": false
3361
3361
  },
@@ -3372,8 +3372,8 @@
3372
3372
  "context": null,
3373
3373
  "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});",
3374
3374
  "err": {},
3375
- "uuid": "df21b8df-db76-41c2-8890-118f0c5af57b",
3376
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3375
+ "uuid": "64a10e18-79bf-4865-9d74-c23c2689125e",
3376
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3377
3377
  "isHook": false,
3378
3378
  "skipped": false
3379
3379
  },
@@ -3381,7 +3381,7 @@
3381
3381
  "title": "should throw error on error",
3382
3382
  "fullTitle": "NodePyATVInstance static find() should throw error on error",
3383
3383
  "timedOut": false,
3384
- "duration": 1,
3384
+ "duration": 2,
3385
3385
  "state": "passed",
3386
3386
  "speed": "fast",
3387
3387
  "pass": true,
@@ -3390,8 +3390,8 @@
3390
3390
  "context": null,
3391
3391
  "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});",
3392
3392
  "err": {},
3393
- "uuid": "50864df2-0c5a-4c41-84b4-34b3dd6e62ad",
3394
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3393
+ "uuid": "b0000b9a-2d45-42ae-9b3c-c6fba21b1766",
3394
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3395
3395
  "isHook": false,
3396
3396
  "skipped": false
3397
3397
  },
@@ -3399,7 +3399,7 @@
3399
3399
  "title": "should throw error if atvscript result is not valid json",
3400
3400
  "fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not valid json",
3401
3401
  "timedOut": false,
3402
- "duration": 2,
3402
+ "duration": 1,
3403
3403
  "state": "passed",
3404
3404
  "speed": "fast",
3405
3405
  "pass": true,
@@ -3408,8 +3408,8 @@
3408
3408
  "context": null,
3409
3409
  "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});",
3410
3410
  "err": {},
3411
- "uuid": "280b65a3-04c1-4759-95a5-19cf6bc4d6b2",
3412
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3411
+ "uuid": "084b77a9-f343-4cf6-8d48-1471f236d732",
3412
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3413
3413
  "isHook": false,
3414
3414
  "skipped": false
3415
3415
  },
@@ -3417,7 +3417,7 @@
3417
3417
  "title": "should throw error if atvscript result is not successfull",
3418
3418
  "fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
3419
3419
  "timedOut": false,
3420
- "duration": 1,
3420
+ "duration": 2,
3421
3421
  "state": "passed",
3422
3422
  "speed": "fast",
3423
3423
  "pass": true,
@@ -3426,8 +3426,8 @@
3426
3426
  "context": null,
3427
3427
  "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});",
3428
3428
  "err": {},
3429
- "uuid": "5d527843-65a1-4592-a9f5-f381f67a3b41",
3430
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3429
+ "uuid": "822a4855-b6c5-4bc4-9065-52a3bedff7d2",
3430
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3431
3431
  "isHook": false,
3432
3432
  "skipped": false
3433
3433
  },
@@ -3435,7 +3435,7 @@
3435
3435
  "title": "should throw error if atvscript result is without device array",
3436
3436
  "fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
3437
3437
  "timedOut": false,
3438
- "duration": 2,
3438
+ "duration": 0,
3439
3439
  "state": "passed",
3440
3440
  "speed": "fast",
3441
3441
  "pass": true,
@@ -3444,32 +3444,32 @@
3444
3444
  "context": null,
3445
3445
  "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});",
3446
3446
  "err": {},
3447
- "uuid": "0bdfba43-1fce-4574-ad2b-2a6a19159d9b",
3448
- "parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
3447
+ "uuid": "136c7589-409b-4b80-8fbb-bbe45ad33adc",
3448
+ "parentUUID": "365a4c53-e9ad-4b53-9328-21a5183baa54",
3449
3449
  "isHook": false,
3450
3450
  "skipped": false
3451
3451
  }
3452
3452
  ],
3453
3453
  "suites": [],
3454
3454
  "passes": [
3455
- "44f0a3a2-a552-4911-b01a-5c7f60869027",
3456
- "eab6256e-3f20-4f56-a190-61c1c0a90665",
3457
- "df21b8df-db76-41c2-8890-118f0c5af57b",
3458
- "50864df2-0c5a-4c41-84b4-34b3dd6e62ad",
3459
- "280b65a3-04c1-4759-95a5-19cf6bc4d6b2",
3460
- "5d527843-65a1-4592-a9f5-f381f67a3b41",
3461
- "0bdfba43-1fce-4574-ad2b-2a6a19159d9b"
3455
+ "871ba256-aeab-4ee9-ae03-ba48506220d0",
3456
+ "ab7a7e9c-31e2-4928-a9e9-e3258fc67b8f",
3457
+ "64a10e18-79bf-4865-9d74-c23c2689125e",
3458
+ "b0000b9a-2d45-42ae-9b3c-c6fba21b1766",
3459
+ "084b77a9-f343-4cf6-8d48-1471f236d732",
3460
+ "822a4855-b6c5-4bc4-9065-52a3bedff7d2",
3461
+ "136c7589-409b-4b80-8fbb-bbe45ad33adc"
3462
3462
  ],
3463
3463
  "failures": [],
3464
3464
  "pending": [],
3465
3465
  "skipped": [],
3466
- "duration": 5433,
3466
+ "duration": 5447,
3467
3467
  "root": false,
3468
3468
  "rootEmpty": false,
3469
3469
  "_timeout": 2000
3470
3470
  },
3471
3471
  {
3472
- "uuid": "6bc0b399-68d7-4a58-a4fb-15e474d912f0",
3472
+ "uuid": "5ffef56b-03f3-4c46-8820-37d7cea792db",
3473
3473
  "title": "static device()",
3474
3474
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3475
3475
  "file": "/test/instance.ts",
@@ -3489,15 +3489,15 @@
3489
3489
  "context": null,
3490
3490
  "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');",
3491
3491
  "err": {},
3492
- "uuid": "a071502d-5ed0-41aa-8980-6fb7caad2b71",
3493
- "parentUUID": "6bc0b399-68d7-4a58-a4fb-15e474d912f0",
3492
+ "uuid": "b725b74f-7b80-4a5c-85b8-9fcfebd3fad5",
3493
+ "parentUUID": "5ffef56b-03f3-4c46-8820-37d7cea792db",
3494
3494
  "isHook": false,
3495
3495
  "skipped": false
3496
3496
  }
3497
3497
  ],
3498
3498
  "suites": [],
3499
3499
  "passes": [
3500
- "a071502d-5ed0-41aa-8980-6fb7caad2b71"
3500
+ "b725b74f-7b80-4a5c-85b8-9fcfebd3fad5"
3501
3501
  ],
3502
3502
  "failures": [],
3503
3503
  "pending": [],
@@ -3508,7 +3508,7 @@
3508
3508
  "_timeout": 2000
3509
3509
  },
3510
3510
  {
3511
- "uuid": "57ae574a-1f72-44d4-90a1-4c68c3f0859b",
3511
+ "uuid": "23da45fc-6f18-4b6f-bc30-6165c380f048",
3512
3512
  "title": "version()",
3513
3513
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3514
3514
  "file": "/test/instance.ts",
@@ -3528,15 +3528,15 @@
3528
3528
  "context": null,
3529
3529
  "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});",
3530
3530
  "err": {},
3531
- "uuid": "571087c9-a3d2-4916-b6eb-ad0f2ce7c949",
3532
- "parentUUID": "57ae574a-1f72-44d4-90a1-4c68c3f0859b",
3531
+ "uuid": "ebf4bb9e-db58-461a-8882-95734cf185c1",
3532
+ "parentUUID": "23da45fc-6f18-4b6f-bc30-6165c380f048",
3533
3533
  "isHook": false,
3534
3534
  "skipped": false
3535
3535
  }
3536
3536
  ],
3537
3537
  "suites": [],
3538
3538
  "passes": [
3539
- "571087c9-a3d2-4916-b6eb-ad0f2ce7c949"
3539
+ "ebf4bb9e-db58-461a-8882-95734cf185c1"
3540
3540
  ],
3541
3541
  "failures": [],
3542
3542
  "pending": [],
@@ -3547,7 +3547,7 @@
3547
3547
  "_timeout": 2000
3548
3548
  },
3549
3549
  {
3550
- "uuid": "800d28dd-174d-4cd3-8479-4ab4d85cfb84",
3550
+ "uuid": "8efe4569-9ebd-4324-b47d-ab2cf179d7e3",
3551
3551
  "title": "check()",
3552
3552
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3553
3553
  "file": "/test/instance.ts",
@@ -3567,15 +3567,15 @@
3567
3567
  "context": null,
3568
3568
  "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});",
3569
3569
  "err": {},
3570
- "uuid": "6850c38c-9ad2-4b91-916a-3b1c37391146",
3571
- "parentUUID": "800d28dd-174d-4cd3-8479-4ab4d85cfb84",
3570
+ "uuid": "03fbd701-1e87-434a-93c8-cd0b447d9a5d",
3571
+ "parentUUID": "8efe4569-9ebd-4324-b47d-ab2cf179d7e3",
3572
3572
  "isHook": false,
3573
3573
  "skipped": false
3574
3574
  }
3575
3575
  ],
3576
3576
  "suites": [],
3577
3577
  "passes": [
3578
- "6850c38c-9ad2-4b91-916a-3b1c37391146"
3578
+ "03fbd701-1e87-434a-93c8-cd0b447d9a5d"
3579
3579
  ],
3580
3580
  "failures": [],
3581
3581
  "pending": [],
@@ -3586,7 +3586,7 @@
3586
3586
  "_timeout": 2000
3587
3587
  },
3588
3588
  {
3589
- "uuid": "baf3cbd9-3a6c-470e-be87-bcc0be530436",
3589
+ "uuid": "08d47edd-d0ac-41ef-8d12-be394eb556de",
3590
3590
  "title": "find()",
3591
3591
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3592
3592
  "file": "/test/instance.ts",
@@ -3597,7 +3597,7 @@
3597
3597
  "title": "should merge options from constructor",
3598
3598
  "fullTitle": "NodePyATVInstance find() should merge options from constructor",
3599
3599
  "timedOut": false,
3600
- "duration": 2,
3600
+ "duration": 1,
3601
3601
  "state": "passed",
3602
3602
  "speed": "fast",
3603
3603
  "pass": true,
@@ -3606,26 +3606,26 @@
3606
3606
  "context": null,
3607
3607
  "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});",
3608
3608
  "err": {},
3609
- "uuid": "64777cdb-fb53-4793-994d-3a5b7ef94941",
3610
- "parentUUID": "baf3cbd9-3a6c-470e-be87-bcc0be530436",
3609
+ "uuid": "65e54c7f-13fa-4a16-820a-312796793c73",
3610
+ "parentUUID": "08d47edd-d0ac-41ef-8d12-be394eb556de",
3611
3611
  "isHook": false,
3612
3612
  "skipped": false
3613
3613
  }
3614
3614
  ],
3615
3615
  "suites": [],
3616
3616
  "passes": [
3617
- "64777cdb-fb53-4793-994d-3a5b7ef94941"
3617
+ "65e54c7f-13fa-4a16-820a-312796793c73"
3618
3618
  ],
3619
3619
  "failures": [],
3620
3620
  "pending": [],
3621
3621
  "skipped": [],
3622
- "duration": 2,
3622
+ "duration": 1,
3623
3623
  "root": false,
3624
3624
  "rootEmpty": false,
3625
3625
  "_timeout": 2000
3626
3626
  },
3627
3627
  {
3628
- "uuid": "f4f3c18d-0ca9-4bb5-996f-8926b44e68f8",
3628
+ "uuid": "dd2b7c93-465f-48a7-9765-6fdcbb68c8ed",
3629
3629
  "title": "device()",
3630
3630
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3631
3631
  "file": "/test/instance.ts",
@@ -3645,15 +3645,15 @@
3645
3645
  "context": null,
3646
3646
  "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});",
3647
3647
  "err": {},
3648
- "uuid": "de31ffa5-8058-43cf-93e0-d1606c4d9855",
3649
- "parentUUID": "f4f3c18d-0ca9-4bb5-996f-8926b44e68f8",
3648
+ "uuid": "980b11e4-02fe-4846-b2c5-1b5b5835139a",
3649
+ "parentUUID": "dd2b7c93-465f-48a7-9765-6fdcbb68c8ed",
3650
3650
  "isHook": false,
3651
3651
  "skipped": false
3652
3652
  }
3653
3653
  ],
3654
3654
  "suites": [],
3655
3655
  "passes": [
3656
- "de31ffa5-8058-43cf-93e0-d1606c4d9855"
3656
+ "980b11e4-02fe-4846-b2c5-1b5b5835139a"
3657
3657
  ],
3658
3658
  "failures": [],
3659
3659
  "pending": [],
@@ -3664,7 +3664,7 @@
3664
3664
  "_timeout": 2000
3665
3665
  },
3666
3666
  {
3667
- "uuid": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3667
+ "uuid": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3668
3668
  "title": "Type Exports",
3669
3669
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
3670
3670
  "file": "/test/instance.ts",
@@ -3684,8 +3684,8 @@
3684
3684
  "context": null,
3685
3685
  "code": "assert.ok(NodePyATVProtocol);",
3686
3686
  "err": {},
3687
- "uuid": "09973a79-7155-434f-b9bb-04669d0f8094",
3688
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3687
+ "uuid": "aedc1f97-1495-4ea8-8245-14dc8cc7551a",
3688
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3689
3689
  "isHook": false,
3690
3690
  "skipped": false
3691
3691
  },
@@ -3702,8 +3702,8 @@
3702
3702
  "context": null,
3703
3703
  "code": "assert.ok(NodePyATVMediaType);",
3704
3704
  "err": {},
3705
- "uuid": "f6f0f8de-e625-4d59-82ee-6b88f39108d5",
3706
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3705
+ "uuid": "ef401fbc-d937-4dd1-bb98-9c00d251c59a",
3706
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3707
3707
  "isHook": false,
3708
3708
  "skipped": false
3709
3709
  },
@@ -3720,8 +3720,8 @@
3720
3720
  "context": null,
3721
3721
  "code": "assert.ok(NodePyATVDeviceEvent);",
3722
3722
  "err": {},
3723
- "uuid": "976885f7-1c8b-437d-9bbf-9fc6f229e096",
3724
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3723
+ "uuid": "afd2dc21-049d-4d72-907f-c32aed3a875a",
3724
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3725
3725
  "isHook": false,
3726
3726
  "skipped": false
3727
3727
  },
@@ -3738,8 +3738,8 @@
3738
3738
  "context": null,
3739
3739
  "code": "assert.ok(NodePyATVDeviceState);",
3740
3740
  "err": {},
3741
- "uuid": "88905b6e-d56a-49e7-b96d-5639344674fa",
3742
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3741
+ "uuid": "d42df1b1-68e1-49fa-a641-476e2a06d5df",
3742
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3743
3743
  "isHook": false,
3744
3744
  "skipped": false
3745
3745
  },
@@ -3756,8 +3756,8 @@
3756
3756
  "context": null,
3757
3757
  "code": "assert.ok(NodePyATVRepeatState);",
3758
3758
  "err": {},
3759
- "uuid": "3cec1943-e19c-4db7-9a08-a503b1308a53",
3760
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3759
+ "uuid": "fbd36b08-d9bc-4ca4-85ca-b75521ee2ea0",
3760
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3761
3761
  "isHook": false,
3762
3762
  "skipped": false
3763
3763
  },
@@ -3774,8 +3774,8 @@
3774
3774
  "context": null,
3775
3775
  "code": "assert.ok(NodePyATVShuffleState);",
3776
3776
  "err": {},
3777
- "uuid": "0655d3ed-3d5b-42d2-8d5f-57799441b5cf",
3778
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3777
+ "uuid": "c0668b92-575e-46ca-b493-253330cc57f4",
3778
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3779
3779
  "isHook": false,
3780
3780
  "skipped": false
3781
3781
  },
@@ -3792,8 +3792,8 @@
3792
3792
  "context": null,
3793
3793
  "code": "assert.ok(NodePyATVKeys);",
3794
3794
  "err": {},
3795
- "uuid": "3239d6c7-1f71-4218-9fd7-a4795356e63e",
3796
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3795
+ "uuid": "3c300c3e-2015-4673-af61-7f4d3635aefd",
3796
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3797
3797
  "isHook": false,
3798
3798
  "skipped": false
3799
3799
  },
@@ -3801,7 +3801,7 @@
3801
3801
  "title": "Type NodePyATVInstanceOptions should be exported",
3802
3802
  "fullTitle": "NodePyATVInstance Type Exports Type NodePyATVInstanceOptions should be exported",
3803
3803
  "timedOut": false,
3804
- "duration": 0,
3804
+ "duration": 1,
3805
3805
  "state": "passed",
3806
3806
  "speed": "fast",
3807
3807
  "pass": true,
@@ -3810,8 +3810,8 @@
3810
3810
  "context": null,
3811
3811
  "code": "assert.ok(NodePyATVListenerState);",
3812
3812
  "err": {},
3813
- "uuid": "f1a23b8a-283f-4f8f-b64a-005da6eb6763",
3814
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3813
+ "uuid": "b3689777-8721-4056-a50c-6ae30ea8e2b8",
3814
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3815
3815
  "isHook": false,
3816
3816
  "skipped": false
3817
3817
  },
@@ -3828,28 +3828,28 @@
3828
3828
  "context": null,
3829
3829
  "code": "assert.ok(NodePyATVPowerState);",
3830
3830
  "err": {},
3831
- "uuid": "443a9cf7-46a3-41fd-9106-4ce1e707e6aa",
3832
- "parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
3831
+ "uuid": "6e4f5b98-41a9-433d-b749-8df15f74ae24",
3832
+ "parentUUID": "ac68770f-d4cc-4752-97a2-bf02eea9b8f8",
3833
3833
  "isHook": false,
3834
3834
  "skipped": false
3835
3835
  }
3836
3836
  ],
3837
3837
  "suites": [],
3838
3838
  "passes": [
3839
- "09973a79-7155-434f-b9bb-04669d0f8094",
3840
- "f6f0f8de-e625-4d59-82ee-6b88f39108d5",
3841
- "976885f7-1c8b-437d-9bbf-9fc6f229e096",
3842
- "88905b6e-d56a-49e7-b96d-5639344674fa",
3843
- "3cec1943-e19c-4db7-9a08-a503b1308a53",
3844
- "0655d3ed-3d5b-42d2-8d5f-57799441b5cf",
3845
- "3239d6c7-1f71-4218-9fd7-a4795356e63e",
3846
- "f1a23b8a-283f-4f8f-b64a-005da6eb6763",
3847
- "443a9cf7-46a3-41fd-9106-4ce1e707e6aa"
3839
+ "aedc1f97-1495-4ea8-8245-14dc8cc7551a",
3840
+ "ef401fbc-d937-4dd1-bb98-9c00d251c59a",
3841
+ "afd2dc21-049d-4d72-907f-c32aed3a875a",
3842
+ "d42df1b1-68e1-49fa-a641-476e2a06d5df",
3843
+ "fbd36b08-d9bc-4ca4-85ca-b75521ee2ea0",
3844
+ "c0668b92-575e-46ca-b493-253330cc57f4",
3845
+ "3c300c3e-2015-4673-af61-7f4d3635aefd",
3846
+ "b3689777-8721-4056-a50c-6ae30ea8e2b8",
3847
+ "6e4f5b98-41a9-433d-b749-8df15f74ae24"
3848
3848
  ],
3849
3849
  "failures": [],
3850
3850
  "pending": [],
3851
3851
  "skipped": [],
3852
- "duration": 0,
3852
+ "duration": 1,
3853
3853
  "root": false,
3854
3854
  "rootEmpty": false,
3855
3855
  "_timeout": 2000
@@ -3865,7 +3865,7 @@
3865
3865
  "_timeout": 2000
3866
3866
  },
3867
3867
  {
3868
- "uuid": "9e12233c-a7a6-4ef1-8434-d9f9c4d150a0",
3868
+ "uuid": "586f9c71-4275-4867-830b-c76b91e948f3",
3869
3869
  "title": "Tools",
3870
3870
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
3871
3871
  "file": "/test/tools.ts",
@@ -3874,7 +3874,7 @@
3874
3874
  "tests": [],
3875
3875
  "suites": [
3876
3876
  {
3877
- "uuid": "a535b40f-243e-450b-9377-65f7331601bc",
3877
+ "uuid": "40c89ef4-5e57-4e9c-96b5-08a8cf01bf6c",
3878
3878
  "title": "addRequestId() / removeRequestId()",
3879
3879
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
3880
3880
  "file": "/test/tools.ts",
@@ -3894,8 +3894,8 @@
3894
3894
  "context": null,
3895
3895
  "code": "const id = addRequestId();\nassert.strictEqual(typeof id, 'string');\nremoveRequestId(id);",
3896
3896
  "err": {},
3897
- "uuid": "d3cdb6ab-1440-4877-9227-bbfba0918318",
3898
- "parentUUID": "a535b40f-243e-450b-9377-65f7331601bc",
3897
+ "uuid": "c53e0ab5-9b61-4c9d-b237-e3dad7e3acbc",
3898
+ "parentUUID": "40c89ef4-5e57-4e9c-96b5-08a8cf01bf6c",
3899
3899
  "isHook": false,
3900
3900
  "skipped": false
3901
3901
  },
@@ -3912,16 +3912,16 @@
3912
3912
  "context": null,
3913
3913
  "code": "removeRequestId('FOO');",
3914
3914
  "err": {},
3915
- "uuid": "fbea40a3-b408-45b4-a323-02dbe5738db8",
3916
- "parentUUID": "a535b40f-243e-450b-9377-65f7331601bc",
3915
+ "uuid": "21f32a1b-f5b4-498c-9208-35b6ba4ff6b0",
3916
+ "parentUUID": "40c89ef4-5e57-4e9c-96b5-08a8cf01bf6c",
3917
3917
  "isHook": false,
3918
3918
  "skipped": false
3919
3919
  }
3920
3920
  ],
3921
3921
  "suites": [],
3922
3922
  "passes": [
3923
- "d3cdb6ab-1440-4877-9227-bbfba0918318",
3924
- "fbea40a3-b408-45b4-a323-02dbe5738db8"
3923
+ "c53e0ab5-9b61-4c9d-b237-e3dad7e3acbc",
3924
+ "21f32a1b-f5b4-498c-9208-35b6ba4ff6b0"
3925
3925
  ],
3926
3926
  "failures": [],
3927
3927
  "pending": [],
@@ -3932,7 +3932,7 @@
3932
3932
  "_timeout": 2000
3933
3933
  },
3934
3934
  {
3935
- "uuid": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
3935
+ "uuid": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
3936
3936
  "title": "debug()",
3937
3937
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
3938
3938
  "file": "/test/tools.ts",
@@ -3952,8 +3952,8 @@
3952
3952
  "context": null,
3953
3953
  "code": "debug('TEST', 'Hello World.', {});",
3954
3954
  "err": {},
3955
- "uuid": "66547de3-a9bb-4c1e-be6b-356b20b9e75b",
3956
- "parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
3955
+ "uuid": "228d1ac5-96b8-4405-8456-1bdc13012fe3",
3956
+ "parentUUID": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
3957
3957
  "isHook": false,
3958
3958
  "skipped": false
3959
3959
  },
@@ -3970,8 +3970,8 @@
3970
3970
  "context": null,
3971
3971
  "code": "debug('TEST', 'Hello World.', { debug: true });",
3972
3972
  "err": {},
3973
- "uuid": "79a04044-004b-414d-b426-38ef17da58d1",
3974
- "parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
3973
+ "uuid": "a6860a86-eb2c-4b27-8579-0abaeba1b54f",
3974
+ "parentUUID": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
3975
3975
  "isHook": false,
3976
3976
  "skipped": false
3977
3977
  },
@@ -3988,8 +3988,8 @@
3988
3988
  "context": null,
3989
3989
  "code": "debug('TEST', 'Hello World.', {\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.ok(msg.includes('Hello World'));\n }\n});",
3990
3990
  "err": {},
3991
- "uuid": "a93a67d9-bff0-4f2d-ab38-c41ad08ee40a",
3992
- "parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
3991
+ "uuid": "347b88b9-37d6-4bc9-b33d-20b44b988047",
3992
+ "parentUUID": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
3993
3993
  "isHook": false,
3994
3994
  "skipped": false
3995
3995
  },
@@ -4006,8 +4006,8 @@
4006
4006
  "context": null,
4007
4007
  "code": "debug('TEST', 'Hello World.', { noColors: true });",
4008
4008
  "err": {},
4009
- "uuid": "d4a2c5aa-7fea-4497-806e-2a41925ec750",
4010
- "parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
4009
+ "uuid": "28d25d3a-99a4-41ff-ac23-bdd45c83f5f1",
4010
+ "parentUUID": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
4011
4011
  "isHook": false,
4012
4012
  "skipped": false
4013
4013
  },
@@ -4024,19 +4024,19 @@
4024
4024
  "context": null,
4025
4025
  "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});",
4026
4026
  "err": {},
4027
- "uuid": "4d20a3fa-62af-4f5e-9236-a52f612cebf0",
4028
- "parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
4027
+ "uuid": "8e76c99e-c979-490a-a1fe-6ddb0c65e4fb",
4028
+ "parentUUID": "4a225b60-12c5-4efa-939f-a6652e90d8e4",
4029
4029
  "isHook": false,
4030
4030
  "skipped": false
4031
4031
  }
4032
4032
  ],
4033
4033
  "suites": [],
4034
4034
  "passes": [
4035
- "66547de3-a9bb-4c1e-be6b-356b20b9e75b",
4036
- "79a04044-004b-414d-b426-38ef17da58d1",
4037
- "a93a67d9-bff0-4f2d-ab38-c41ad08ee40a",
4038
- "d4a2c5aa-7fea-4497-806e-2a41925ec750",
4039
- "4d20a3fa-62af-4f5e-9236-a52f612cebf0"
4035
+ "228d1ac5-96b8-4405-8456-1bdc13012fe3",
4036
+ "a6860a86-eb2c-4b27-8579-0abaeba1b54f",
4037
+ "347b88b9-37d6-4bc9-b33d-20b44b988047",
4038
+ "28d25d3a-99a4-41ff-ac23-bdd45c83f5f1",
4039
+ "8e76c99e-c979-490a-a1fe-6ddb0c65e4fb"
4040
4040
  ],
4041
4041
  "failures": [],
4042
4042
  "pending": [],
@@ -4047,7 +4047,7 @@
4047
4047
  "_timeout": 2000
4048
4048
  },
4049
4049
  {
4050
- "uuid": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
4050
+ "uuid": "8af5cad0-f38b-4d95-9754-830b81fdd1a6",
4051
4051
  "title": "getExecutable()",
4052
4052
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4053
4053
  "file": "/test/tools.ts",
@@ -4067,8 +4067,8 @@
4067
4067
  "context": null,
4068
4068
  "code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/1');",
4069
4069
  "err": {},
4070
- "uuid": "62ad12a9-8219-4b48-9a63-0f1a1ccccb65",
4071
- "parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
4070
+ "uuid": "e79ce043-641d-455d-8744-55903082a14b",
4071
+ "parentUUID": "8af5cad0-f38b-4d95-9754-830b81fdd1a6",
4072
4072
  "isHook": false,
4073
4073
  "skipped": false
4074
4074
  },
@@ -4076,7 +4076,7 @@
4076
4076
  "title": "should handle atvscriptPath if set",
4077
4077
  "fullTitle": "Tools getExecutable() should handle atvscriptPath if set",
4078
4078
  "timedOut": false,
4079
- "duration": 0,
4079
+ "duration": 1,
4080
4080
  "state": "passed",
4081
4081
  "speed": "fast",
4082
4082
  "pass": true,
@@ -4085,8 +4085,8 @@
4085
4085
  "context": null,
4086
4086
  "code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/2');",
4087
4087
  "err": {},
4088
- "uuid": "38a1eb90-93db-47b4-b365-adc2e414f3fd",
4089
- "parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
4088
+ "uuid": "ad840fe8-c84f-44e6-9df0-e6aa77013630",
4089
+ "parentUUID": "8af5cad0-f38b-4d95-9754-830b81fdd1a6",
4090
4090
  "isHook": false,
4091
4091
  "skipped": false
4092
4092
  },
@@ -4103,8 +4103,8 @@
4103
4103
  "context": null,
4104
4104
  "code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert.strictEqual(result, 'atvremote');",
4105
4105
  "err": {},
4106
- "uuid": "dd76b2b0-587b-4b67-81b0-bfd00e0d26df",
4107
- "parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
4106
+ "uuid": "8d87c226-d104-40c3-b6f0-f8e1a378e684",
4107
+ "parentUUID": "8af5cad0-f38b-4d95-9754-830b81fdd1a6",
4108
4108
  "isHook": false,
4109
4109
  "skipped": false
4110
4110
  },
@@ -4121,29 +4121,29 @@
4121
4121
  "context": null,
4122
4122
  "code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert.strictEqual(result, 'atvscript');",
4123
4123
  "err": {},
4124
- "uuid": "a5706891-5829-41be-841f-44d1876595f7",
4125
- "parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
4124
+ "uuid": "87a9cb57-3f96-4780-adc0-fdaf1c9ae038",
4125
+ "parentUUID": "8af5cad0-f38b-4d95-9754-830b81fdd1a6",
4126
4126
  "isHook": false,
4127
4127
  "skipped": false
4128
4128
  }
4129
4129
  ],
4130
4130
  "suites": [],
4131
4131
  "passes": [
4132
- "62ad12a9-8219-4b48-9a63-0f1a1ccccb65",
4133
- "38a1eb90-93db-47b4-b365-adc2e414f3fd",
4134
- "dd76b2b0-587b-4b67-81b0-bfd00e0d26df",
4135
- "a5706891-5829-41be-841f-44d1876595f7"
4132
+ "e79ce043-641d-455d-8744-55903082a14b",
4133
+ "ad840fe8-c84f-44e6-9df0-e6aa77013630",
4134
+ "8d87c226-d104-40c3-b6f0-f8e1a378e684",
4135
+ "87a9cb57-3f96-4780-adc0-fdaf1c9ae038"
4136
4136
  ],
4137
4137
  "failures": [],
4138
4138
  "pending": [],
4139
4139
  "skipped": [],
4140
- "duration": 0,
4140
+ "duration": 1,
4141
4141
  "root": false,
4142
4142
  "rootEmpty": false,
4143
4143
  "_timeout": 2000
4144
4144
  },
4145
4145
  {
4146
- "uuid": "d6420e47-26a2-4a62-86a4-6630017b520b",
4146
+ "uuid": "f29233d4-3a81-40dd-8c77-4f0ac42dab54",
4147
4147
  "title": "getParameters()",
4148
4148
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4149
4149
  "file": "/test/tools.ts",
@@ -4154,7 +4154,7 @@
4154
4154
  "title": "empty case",
4155
4155
  "fullTitle": "Tools getParameters() empty case",
4156
4156
  "timedOut": false,
4157
- "duration": 0,
4157
+ "duration": 1,
4158
4158
  "state": "passed",
4159
4159
  "speed": "fast",
4160
4160
  "pass": true,
@@ -4163,8 +4163,8 @@
4163
4163
  "context": null,
4164
4164
  "code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters();\n assert.deepEqual(result, []);\n});",
4165
4165
  "err": {},
4166
- "uuid": "3f98fac0-89fa-4c56-aec7-88eb6b9a698d",
4167
- "parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
4166
+ "uuid": "e0b27445-aea5-4187-a525-05c12875f612",
4167
+ "parentUUID": "f29233d4-3a81-40dd-8c77-4f0ac42dab54",
4168
4168
  "isHook": false,
4169
4169
  "skipped": false
4170
4170
  },
@@ -4181,8 +4181,8 @@
4181
4181
  "context": null,
4182
4182
  "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});",
4183
4183
  "err": {},
4184
- "uuid": "1c6f02cd-4e13-4820-9325-febcef3c53ca",
4185
- "parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
4184
+ "uuid": "60f3f4da-feab-4ca4-8c1d-428c82eaea0a",
4185
+ "parentUUID": "f29233d4-3a81-40dd-8c77-4f0ac42dab54",
4186
4186
  "isHook": false,
4187
4187
  "skipped": false
4188
4188
  },
@@ -4190,7 +4190,7 @@
4190
4190
  "title": "full case",
4191
4191
  "fullTitle": "Tools getParameters() full case",
4192
4192
  "timedOut": false,
4193
- "duration": 0,
4193
+ "duration": 1,
4194
4194
  "state": "passed",
4195
4195
  "speed": "fast",
4196
4196
  "pass": true,
@@ -4199,28 +4199,28 @@
4199
4199
  "context": null,
4200
4200
  "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});",
4201
4201
  "err": {},
4202
- "uuid": "fe4690ce-7c02-4470-b3d0-470631361af9",
4203
- "parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
4202
+ "uuid": "0841601c-c2fa-4b15-88e4-c790d5d35406",
4203
+ "parentUUID": "f29233d4-3a81-40dd-8c77-4f0ac42dab54",
4204
4204
  "isHook": false,
4205
4205
  "skipped": false
4206
4206
  }
4207
4207
  ],
4208
4208
  "suites": [],
4209
4209
  "passes": [
4210
- "3f98fac0-89fa-4c56-aec7-88eb6b9a698d",
4211
- "1c6f02cd-4e13-4820-9325-febcef3c53ca",
4212
- "fe4690ce-7c02-4470-b3d0-470631361af9"
4210
+ "e0b27445-aea5-4187-a525-05c12875f612",
4211
+ "60f3f4da-feab-4ca4-8c1d-428c82eaea0a",
4212
+ "0841601c-c2fa-4b15-88e4-c790d5d35406"
4213
4213
  ],
4214
4214
  "failures": [],
4215
4215
  "pending": [],
4216
4216
  "skipped": [],
4217
- "duration": 0,
4217
+ "duration": 2,
4218
4218
  "root": false,
4219
4219
  "rootEmpty": false,
4220
4220
  "_timeout": 2000
4221
4221
  },
4222
4222
  {
4223
- "uuid": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4223
+ "uuid": "41891573-72ad-4342-9f99-108980caed03",
4224
4224
  "title": "parseState()",
4225
4225
  "fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
4226
4226
  "file": "/test/tools.ts",
@@ -4231,7 +4231,7 @@
4231
4231
  "title": "should work with empty data",
4232
4232
  "fullTitle": "Tools parseState() should work with empty data",
4233
4233
  "timedOut": false,
4234
- "duration": 1,
4234
+ "duration": 0,
4235
4235
  "state": "passed",
4236
4236
  "speed": "fast",
4237
4237
  "pass": true,
@@ -4240,8 +4240,8 @@
4240
4240
  "context": null,
4241
4241
  "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});",
4242
4242
  "err": {},
4243
- "uuid": "345b3ece-0553-43fa-99cc-e87141b90f67",
4244
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4243
+ "uuid": "a4cdc770-d9db-42be-a4bf-0aa743e55987",
4244
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4245
4245
  "isHook": false,
4246
4246
  "skipped": false
4247
4247
  },
@@ -4258,8 +4258,8 @@
4258
4258
  "context": null,
4259
4259
  "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});",
4260
4260
  "err": {},
4261
- "uuid": "a6484bbc-1a71-4a6a-b4a8-cefdddaa1e59",
4262
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4261
+ "uuid": "35455a43-b353-4d63-91c6-4d5a2ac39385",
4262
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4263
4263
  "isHook": false,
4264
4264
  "skipped": false
4265
4265
  },
@@ -4276,8 +4276,8 @@
4276
4276
  "context": null,
4277
4277
  "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});",
4278
4278
  "err": {},
4279
- "uuid": "5f2228cf-8505-40f5-a5eb-2ae75f2e19b0",
4280
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4279
+ "uuid": "cc0061b9-a747-445d-82da-684471991cec",
4280
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4281
4281
  "isHook": false,
4282
4282
  "skipped": false
4283
4283
  },
@@ -4294,8 +4294,8 @@
4294
4294
  "context": null,
4295
4295
  "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/);",
4296
4296
  "err": {},
4297
- "uuid": "63228bef-b169-44b3-873d-b3fec2561813",
4298
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4297
+ "uuid": "5b32445e-ac1b-430f-908e-eb493e9dd091",
4298
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4299
4299
  "isHook": false,
4300
4300
  "skipped": false
4301
4301
  },
@@ -4303,7 +4303,7 @@
4303
4303
  "title": "should ignore date if it's an invalid date",
4304
4304
  "fullTitle": "Tools parseState() should ignore date if it's an invalid date",
4305
4305
  "timedOut": false,
4306
- "duration": 0,
4306
+ "duration": 1,
4307
4307
  "state": "passed",
4308
4308
  "speed": "fast",
4309
4309
  "pass": true,
@@ -4312,8 +4312,8 @@
4312
4312
  "context": null,
4313
4313
  "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});",
4314
4314
  "err": {},
4315
- "uuid": "56d0dc3f-d29d-4e22-aae9-256d99f06570",
4316
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4315
+ "uuid": "d5290047-610d-4b9d-8833-2bf9c57e5d6a",
4316
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4317
4317
  "isHook": false,
4318
4318
  "skipped": false
4319
4319
  },
@@ -4330,8 +4330,8 @@
4330
4330
  "context": null,
4331
4331
  "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});",
4332
4332
  "err": {},
4333
- "uuid": "0c4d33b1-6a49-44c2-9791-e2afe23f57ec",
4334
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4333
+ "uuid": "f65a5713-7186-4c4d-9fa6-7fd9c3073e0e",
4334
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4335
4335
  "isHook": false,
4336
4336
  "skipped": false
4337
4337
  },
@@ -4348,21 +4348,21 @@
4348
4348
  "context": null,
4349
4349
  "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});",
4350
4350
  "err": {},
4351
- "uuid": "c7b211a8-c984-479e-a941-1ab906525cfd",
4352
- "parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
4351
+ "uuid": "28d9d121-903e-492b-8a95-f6cdd1b12d81",
4352
+ "parentUUID": "41891573-72ad-4342-9f99-108980caed03",
4353
4353
  "isHook": false,
4354
4354
  "skipped": false
4355
4355
  }
4356
4356
  ],
4357
4357
  "suites": [],
4358
4358
  "passes": [
4359
- "345b3ece-0553-43fa-99cc-e87141b90f67",
4360
- "a6484bbc-1a71-4a6a-b4a8-cefdddaa1e59",
4361
- "5f2228cf-8505-40f5-a5eb-2ae75f2e19b0",
4362
- "63228bef-b169-44b3-873d-b3fec2561813",
4363
- "56d0dc3f-d29d-4e22-aae9-256d99f06570",
4364
- "0c4d33b1-6a49-44c2-9791-e2afe23f57ec",
4365
- "c7b211a8-c984-479e-a941-1ab906525cfd"
4359
+ "a4cdc770-d9db-42be-a4bf-0aa743e55987",
4360
+ "35455a43-b353-4d63-91c6-4d5a2ac39385",
4361
+ "cc0061b9-a747-445d-82da-684471991cec",
4362
+ "5b32445e-ac1b-430f-908e-eb493e9dd091",
4363
+ "d5290047-610d-4b9d-8833-2bf9c57e5d6a",
4364
+ "f65a5713-7186-4c4d-9fa6-7fd9c3073e0e",
4365
+ "28d9d121-903e-492b-8a95-f6cdd1b12d81"
4366
4366
  ],
4367
4367
  "failures": [],
4368
4368
  "pending": [],