@sebbo2002/node-pyatv 4.3.4-develop.1 → 4.3.4-develop.2
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.
- package/CHANGELOG.md +2 -0
- package/docs/coverage/cobertura-coverage.xml +3 -3
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +1 -1
- package/docs/coverage/device.ts.html +1 -1
- package/docs/coverage/fake-spawn.ts.html +1 -1
- package/docs/coverage/index.html +1 -1
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +3 -3
- package/docs/coverage/types.ts.html +1 -1
- package/docs/reference/classes/NodePyATVDevice.html +60 -60
- package/docs/reference/classes/NodePyATVDeviceEvent.html +5 -5
- package/docs/reference/classes/default.html +10 -10
- package/docs/reference/enums/NodePyATVDeviceState.html +1 -1
- package/docs/reference/enums/NodePyATVKeys.html +1 -1
- package/docs/reference/enums/NodePyATVListenerState.html +1 -1
- package/docs/reference/enums/NodePyATVMediaType.html +1 -1
- package/docs/reference/enums/NodePyATVPowerState.html +1 -1
- package/docs/reference/enums/NodePyATVProtocol.html +1 -1
- package/docs/reference/enums/NodePyATVRepeatState.html +1 -1
- package/docs/reference/enums/NodePyATVShuffleState.html +1 -1
- package/docs/reference/index.html +1 -1
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVState.html +1 -1
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +1 -1
- package/docs/reference/modules.html +1 -1
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +601 -601
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"passes": 141,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2022-06-
|
|
9
|
-
"end": "2022-06-
|
|
10
|
-
"duration":
|
|
8
|
+
"start": "2022-06-05T21:34:11.462Z",
|
|
9
|
+
"end": "2022-06-05T21:34:23.356Z",
|
|
10
|
+
"duration": 11894,
|
|
11
11
|
"testsRegistered": 143,
|
|
12
12
|
"passPercent": 100,
|
|
13
13
|
"pendingPercent": 1.3986013986013985,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"results": [
|
|
20
20
|
{
|
|
21
|
-
"uuid": "
|
|
21
|
+
"uuid": "c135b633-27bd-4d14-a4ac-0cd3f2472906",
|
|
22
22
|
"title": "",
|
|
23
23
|
"fullFile": "",
|
|
24
24
|
"file": "",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"tests": [],
|
|
28
28
|
"suites": [
|
|
29
29
|
{
|
|
30
|
-
"uuid": "
|
|
30
|
+
"uuid": "cdea01db-fced-49db-83ce-a62ab5810a25",
|
|
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": "
|
|
39
|
+
"uuid": "2945f787-88fa-42b3-9d4f-925a9b1f9c40",
|
|
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":
|
|
50
|
+
"duration": 0,
|
|
51
51
|
"state": "passed",
|
|
52
52
|
"speed": "fast",
|
|
53
53
|
"pass": true,
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
"context": null,
|
|
57
57
|
"code": "const event = new device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert_1.default.strictEqual(event.key, 'genre');",
|
|
58
58
|
"err": {},
|
|
59
|
-
"uuid": "
|
|
60
|
-
"parentUUID": "
|
|
59
|
+
"uuid": "269d1faa-c2e0-4c67-854b-58fc6716e669",
|
|
60
|
+
"parentUUID": "2945f787-88fa-42b3-9d4f-925a9b1f9c40",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"269d1faa-c2e0-4c67-854b-58fc6716e669"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
71
71
|
"skipped": [],
|
|
72
|
-
"duration":
|
|
72
|
+
"duration": 0,
|
|
73
73
|
"root": false,
|
|
74
74
|
"rootEmpty": false,
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "af9dfb2b-2f5b-438f-a676-0aa5db9c0b4d",
|
|
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 device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert_1.default.strictEqual(event.oldValue, 'Jazz');",
|
|
97
97
|
"err": {},
|
|
98
|
-
"uuid": "
|
|
99
|
-
"parentUUID": "
|
|
98
|
+
"uuid": "aa284c1b-827f-4325-86f0-6a0e0b297533",
|
|
99
|
+
"parentUUID": "af9dfb2b-2f5b-438f-a676-0aa5db9c0b4d",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"aa284c1b-827f-4325-86f0-6a0e0b297533"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "0ca68041-437b-4901-850a-7739bf777a86",
|
|
118
118
|
"title": "get newValue()",
|
|
119
119
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
120
120
|
"file": "/test/device-event.ts",
|
|
@@ -134,15 +134,15 @@
|
|
|
134
134
|
"context": null,
|
|
135
135
|
"code": "const event = new device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert_1.default.strictEqual(event.newValue, 'Rock');",
|
|
136
136
|
"err": {},
|
|
137
|
-
"uuid": "
|
|
138
|
-
"parentUUID": "
|
|
137
|
+
"uuid": "fde0f866-04a7-4256-9d9a-f329a76ddc37",
|
|
138
|
+
"parentUUID": "0ca68041-437b-4901-850a-7739bf777a86",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"fde0f866-04a7-4256-9d9a-f329a76ddc37"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "2e485a7d-6cd1-446d-b8fa-4caac6e1221c",
|
|
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":
|
|
167
|
+
"duration": 0,
|
|
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 device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert_1.default.strictEqual(event.value, 'Rock');",
|
|
175
175
|
"err": {},
|
|
176
|
-
"uuid": "
|
|
177
|
-
"parentUUID": "
|
|
176
|
+
"uuid": "7d88ce4c-1c16-4f0f-b52a-f99020cbeabd",
|
|
177
|
+
"parentUUID": "2e485a7d-6cd1-446d-b8fa-4caac6e1221c",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"7d88ce4c-1c16-4f0f-b52a-f99020cbeabd"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
188
188
|
"skipped": [],
|
|
189
|
-
"duration":
|
|
189
|
+
"duration": 0,
|
|
190
190
|
"root": false,
|
|
191
191
|
"rootEmpty": false,
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "d600a30e-70ad-4f54-8e10-de0494da3e98",
|
|
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":
|
|
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 device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n});\nconst event = new device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device\n});\nassert_1.default.deepEqual(event.device, device);",
|
|
214
214
|
"err": {},
|
|
215
|
-
"uuid": "
|
|
216
|
-
"parentUUID": "
|
|
215
|
+
"uuid": "268da684-8ba9-41d0-a33b-02ba71657f90",
|
|
216
|
+
"parentUUID": "d600a30e-70ad-4f54-8e10-de0494da3e98",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"268da684-8ba9-41d0-a33b-02ba71657f90"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
227
227
|
"skipped": [],
|
|
228
|
-
"duration":
|
|
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": "
|
|
244
|
+
"uuid": "5ad46c19-bc14-478e-84d6-596887f7f887",
|
|
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": "
|
|
253
|
+
"uuid": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
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":
|
|
264
|
+
"duration": 3,
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(event instanceof lib_1.NodePyATVDeviceEvent);\n assert_1.default.strictEqual(event.key, 'title');\n assert_1.default.strictEqual(event.oldValue, null);\n assert_1.default.strictEqual(event.newValue, 'My Movie');\n assert_1.default.strictEqual(event.value, 'My Movie');\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
272
272
|
"err": {},
|
|
273
|
-
"uuid": "
|
|
274
|
-
"parentUUID": "
|
|
273
|
+
"uuid": "40cfb429-ba03-4f38-80e3-fd6cb3980159",
|
|
274
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
"context": null,
|
|
289
289
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(event instanceof lib_1.NodePyATVDeviceEvent);\n assert_1.default.strictEqual(event.key, 'title');\n assert_1.default.strictEqual(event.oldValue, null);\n assert_1.default.strictEqual(event.newValue, 'My Movie');\n assert_1.default.strictEqual(event.value, 'My Movie');\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
290
290
|
"err": {},
|
|
291
|
-
"uuid": "
|
|
292
|
-
"parentUUID": "
|
|
291
|
+
"uuid": "712237b1-eb73-49a8-b7bd-fa5581a2e910",
|
|
292
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
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":
|
|
300
|
+
"duration": 1,
|
|
301
301
|
"state": "passed",
|
|
302
302
|
"speed": "fast",
|
|
303
303
|
"pass": true,
|
|
@@ -306,8 +306,8 @@
|
|
|
306
306
|
"context": null,
|
|
307
307
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.deepStrictEqual(sort, ['update:title', 'update']);\n});",
|
|
308
308
|
"err": {},
|
|
309
|
-
"uuid": "
|
|
310
|
-
"parentUUID": "
|
|
309
|
+
"uuid": "98b96777-dcaf-404d-b16c-b609d80d5983",
|
|
310
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(error instanceof Error);\n assert_1.default.ok(error.toString().includes('invalid credentials: 321'));\n cb(undefined);\n });\n });\n});",
|
|
326
326
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
327
|
+
"uuid": "1f387c26-8fd8-40ba-88a3-e97cd8024e29",
|
|
328
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.strictEqual(spawnCounter, 2);\n assert_1.default.strictEqual(eventCounter, 1);\n});",
|
|
344
344
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "1cd63bb8-3100-4425-8dda-d1365eb80f60",
|
|
346
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.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_1.default.strictEqual(callCounter, 1);\n});",
|
|
362
362
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "afd2972b-fb0f-4ade-b5d3-0b08d1855add",
|
|
364
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
365
365
|
"isHook": false,
|
|
366
366
|
"skipped": false
|
|
367
367
|
},
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "should also work with powerState",
|
|
370
370
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should also work with powerState",
|
|
371
371
|
"timedOut": false,
|
|
372
|
-
"duration":
|
|
372
|
+
"duration": 1,
|
|
373
373
|
"state": "passed",
|
|
374
374
|
"speed": "fast",
|
|
375
375
|
"pass": true,
|
|
@@ -378,32 +378,32 @@
|
|
|
378
378
|
"context": null,
|
|
379
379
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(event instanceof lib_1.NodePyATVDeviceEvent);\n assert_1.default.strictEqual(event.key, 'powerState');\n assert_1.default.strictEqual(event.oldValue, null);\n assert_1.default.strictEqual(event.newValue, 'off');\n assert_1.default.strictEqual(event.newValue, lib_1.NodePyATVPowerState.off);\n assert_1.default.strictEqual(event.value, 'off');\n assert_1.default.strictEqual(event.value, lib_1.NodePyATVPowerState.off);\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
380
380
|
"err": {},
|
|
381
|
-
"uuid": "
|
|
382
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "60fc9dba-2ad6-4cbd-bc2f-774119f69d9a",
|
|
382
|
+
"parentUUID": "0e7f783a-5764-4781-b87c-cde3d5fd3087",
|
|
383
383
|
"isHook": false,
|
|
384
384
|
"skipped": false
|
|
385
385
|
}
|
|
386
386
|
],
|
|
387
387
|
"suites": [],
|
|
388
388
|
"passes": [
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
389
|
+
"40cfb429-ba03-4f38-80e3-fd6cb3980159",
|
|
390
|
+
"712237b1-eb73-49a8-b7bd-fa5581a2e910",
|
|
391
|
+
"98b96777-dcaf-404d-b16c-b609d80d5983",
|
|
392
|
+
"1f387c26-8fd8-40ba-88a3-e97cd8024e29",
|
|
393
|
+
"1cd63bb8-3100-4425-8dda-d1365eb80f60",
|
|
394
|
+
"afd2972b-fb0f-4ade-b5d3-0b08d1855add",
|
|
395
|
+
"60fc9dba-2ad6-4cbd-bc2f-774119f69d9a"
|
|
396
396
|
],
|
|
397
397
|
"failures": [],
|
|
398
398
|
"pending": [],
|
|
399
399
|
"skipped": [],
|
|
400
|
-
"duration":
|
|
400
|
+
"duration": 14,
|
|
401
401
|
"root": false,
|
|
402
402
|
"rootEmpty": false,
|
|
403
403
|
"_timeout": 2000
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"uuid": "
|
|
406
|
+
"uuid": "bc763380-dd18-49f1-a260-2d72cd9c0232",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
425
425
|
"err": {},
|
|
426
|
-
"uuid": "
|
|
427
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "a2652359-155c-4dd1-b513-07f2743eaa1f",
|
|
427
|
+
"parentUUID": "bc763380-dd18-49f1-a260-2d72cd9c0232",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(err instanceof Error);\n assert_1.default.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": "
|
|
445
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "da08ffad-59cd-422f-b97c-7eb00b634cac",
|
|
445
|
+
"parentUUID": "bc763380-dd18-49f1-a260-2d72cd9c0232",
|
|
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":
|
|
453
|
+
"duration": 0,
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.ok(err instanceof Error);\n assert_1.default.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": "
|
|
463
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "c1098a5a-21ca-49eb-aded-6b80a723af9d",
|
|
463
|
+
"parentUUID": "bc763380-dd18-49f1-a260-2d72cd9c0232",
|
|
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": "
|
|
481
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "5a093a59-1688-48c1-a3c4-1d9d42bbf98d",
|
|
481
|
+
"parentUUID": "bc763380-dd18-49f1-a260-2d72cd9c0232",
|
|
482
482
|
"isHook": false,
|
|
483
483
|
"skipped": false
|
|
484
484
|
}
|
|
485
485
|
],
|
|
486
486
|
"suites": [],
|
|
487
487
|
"passes": [
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
488
|
+
"a2652359-155c-4dd1-b513-07f2743eaa1f",
|
|
489
|
+
"da08ffad-59cd-422f-b97c-7eb00b634cac",
|
|
490
|
+
"c1098a5a-21ca-49eb-aded-6b80a723af9d"
|
|
491
491
|
],
|
|
492
492
|
"failures": [],
|
|
493
493
|
"pending": [
|
|
494
|
-
"
|
|
494
|
+
"5a093a59-1688-48c1-a3c4-1d9d42bbf98d"
|
|
495
495
|
],
|
|
496
496
|
"skipped": [],
|
|
497
|
-
"duration":
|
|
497
|
+
"duration": 4,
|
|
498
498
|
"root": false,
|
|
499
499
|
"rootEmpty": false,
|
|
500
500
|
"_timeout": 2000
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
"uuid": "
|
|
503
|
+
"uuid": "41637f75-57f3-445b-bc82-dc1ccdfbfb90",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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": "
|
|
524
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "5ef0ac67-1222-4f34-96dc-4f4b45e0b0b2",
|
|
524
|
+
"parentUUID": "41637f75-57f3-445b-bc82-dc1ccdfbfb90",
|
|
525
525
|
"isHook": false,
|
|
526
526
|
"skipped": false
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
529
|
"suites": [],
|
|
530
530
|
"passes": [
|
|
531
|
-
"
|
|
531
|
+
"5ef0ac67-1222-4f34-96dc-4f4b45e0b0b2"
|
|
532
532
|
],
|
|
533
533
|
"failures": [],
|
|
534
534
|
"pending": [],
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
"_timeout": 2000
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
"uuid": "
|
|
542
|
+
"uuid": "ebad7edd-91ca-407d-a667-9f5a7cb4f5e1",
|
|
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":
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst event = new lib_1.NodePyATVDeviceEvent({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert_1.default.strictEqual(e, event);\n assert_1.default.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
|
|
561
561
|
"err": {},
|
|
562
|
-
"uuid": "
|
|
563
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "882ad4f6-124f-4667-8ccb-8778734ac63b",
|
|
563
|
+
"parentUUID": "ebad7edd-91ca-407d-a667-9f5a7cb4f5e1",
|
|
564
564
|
"isHook": false,
|
|
565
565
|
"skipped": false
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"suites": [],
|
|
569
569
|
"passes": [
|
|
570
|
-
"
|
|
570
|
+
"882ad4f6-124f-4667-8ccb-8778734ac63b"
|
|
571
571
|
],
|
|
572
572
|
"failures": [],
|
|
573
573
|
"pending": [],
|
|
574
574
|
"skipped": [],
|
|
575
|
-
"duration":
|
|
575
|
+
"duration": 0,
|
|
576
576
|
"root": false,
|
|
577
577
|
"rootEmpty": false,
|
|
578
578
|
"_timeout": 2000
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
"uuid": "
|
|
581
|
+
"uuid": "7b5a6ba1-343f-4ddd-9463-5e4a390fa273",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
|
|
600
600
|
"err": {},
|
|
601
|
-
"uuid": "
|
|
602
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "4965acd6-0465-4dc0-b089-a30f692b2f7f",
|
|
602
|
+
"parentUUID": "7b5a6ba1-343f-4ddd-9463-5e4a390fa273",
|
|
603
603
|
"isHook": false,
|
|
604
604
|
"skipped": false
|
|
605
605
|
}
|
|
606
606
|
],
|
|
607
607
|
"suites": [],
|
|
608
608
|
"passes": [
|
|
609
|
-
"
|
|
609
|
+
"4965acd6-0465-4dc0-b089-a30f692b2f7f"
|
|
610
610
|
],
|
|
611
611
|
"failures": [],
|
|
612
612
|
"pending": [],
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"_timeout": 2000
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"uuid": "
|
|
620
|
+
"uuid": "dff7440e-91a9-406e-8fa6-c31870a05154",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert_1.default.ok(typeof result, 'number');\nassert_1.default.ok(result >= 10);",
|
|
639
639
|
"err": {},
|
|
640
|
-
"uuid": "
|
|
641
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "bf493aae-006b-491f-940a-04a2da2d1218",
|
|
641
|
+
"parentUUID": "dff7440e-91a9-406e-8fa6-c31870a05154",
|
|
642
642
|
"isHook": false,
|
|
643
643
|
"skipped": false
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
646
|
"suites": [],
|
|
647
647
|
"passes": [
|
|
648
|
-
"
|
|
648
|
+
"bf493aae-006b-491f-940a-04a2da2d1218"
|
|
649
649
|
],
|
|
650
650
|
"failures": [],
|
|
651
651
|
"pending": [],
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"_timeout": 2000
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"uuid": "
|
|
659
|
+
"uuid": "ad5fc627-1ab5-4e03-aaf9-a09dfb98951d",
|
|
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",
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
"title": "should work",
|
|
668
668
|
"fullTitle": "NodePyATVDeviceEvents listenerCount() should work",
|
|
669
669
|
"timedOut": false,
|
|
670
|
-
"duration":
|
|
670
|
+
"duration": 0,
|
|
671
671
|
"state": "passed",
|
|
672
672
|
"speed": "fast",
|
|
673
673
|
"pass": true,
|
|
@@ -676,26 +676,26 @@
|
|
|
676
676
|
"context": null,
|
|
677
677
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
|
|
678
678
|
"err": {},
|
|
679
|
-
"uuid": "
|
|
680
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "d447b956-5e23-406f-81f2-32807cbb61d7",
|
|
680
|
+
"parentUUID": "ad5fc627-1ab5-4e03-aaf9-a09dfb98951d",
|
|
681
681
|
"isHook": false,
|
|
682
682
|
"skipped": false
|
|
683
683
|
}
|
|
684
684
|
],
|
|
685
685
|
"suites": [],
|
|
686
686
|
"passes": [
|
|
687
|
-
"
|
|
687
|
+
"d447b956-5e23-406f-81f2-32807cbb61d7"
|
|
688
688
|
],
|
|
689
689
|
"failures": [],
|
|
690
690
|
"pending": [],
|
|
691
691
|
"skipped": [],
|
|
692
|
-
"duration":
|
|
692
|
+
"duration": 0,
|
|
693
693
|
"root": false,
|
|
694
694
|
"rootEmpty": false,
|
|
695
695
|
"_timeout": 2000
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
"uuid": "
|
|
698
|
+
"uuid": "93a04b8b-1135-4e48-85b8-af406e769832",
|
|
699
699
|
"title": "listeners()",
|
|
700
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
701
701
|
"file": "/test/device-events.ts",
|
|
@@ -715,15 +715,15 @@
|
|
|
715
715
|
"context": null,
|
|
716
716
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
717
717
|
"err": {},
|
|
718
|
-
"uuid": "
|
|
719
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "599b4bcb-5b5d-45c7-96d1-d33a85ff4acf",
|
|
719
|
+
"parentUUID": "93a04b8b-1135-4e48-85b8-af406e769832",
|
|
720
720
|
"isHook": false,
|
|
721
721
|
"skipped": false
|
|
722
722
|
}
|
|
723
723
|
],
|
|
724
724
|
"suites": [],
|
|
725
725
|
"passes": [
|
|
726
|
-
"
|
|
726
|
+
"599b4bcb-5b5d-45c7-96d1-d33a85ff4acf"
|
|
727
727
|
],
|
|
728
728
|
"failures": [],
|
|
729
729
|
"pending": [],
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
"_timeout": 2000
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
"uuid": "
|
|
737
|
+
"uuid": "df6d2e9e-be65-461f-90b2-5aad90fae6ae",
|
|
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":
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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": "
|
|
758
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "255cf308-1d57-4d4e-a4b0-ee8ae413442d",
|
|
758
|
+
"parentUUID": "df6d2e9e-be65-461f-90b2-5aad90fae6ae",
|
|
759
759
|
"isHook": false,
|
|
760
760
|
"skipped": false
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"suites": [],
|
|
764
764
|
"passes": [
|
|
765
|
-
"
|
|
765
|
+
"255cf308-1d57-4d4e-a4b0-ee8ae413442d"
|
|
766
766
|
],
|
|
767
767
|
"failures": [],
|
|
768
768
|
"pending": [],
|
|
769
769
|
"skipped": [],
|
|
770
|
-
"duration":
|
|
770
|
+
"duration": 2,
|
|
771
771
|
"root": false,
|
|
772
772
|
"rootEmpty": false,
|
|
773
773
|
"_timeout": 2000
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
|
-
"uuid": "
|
|
776
|
+
"uuid": "ccd51c94-da2a-4c7c-a4e4-72fd6062f6f1",
|
|
777
777
|
"title": "prependOnceListener()",
|
|
778
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
779
779
|
"file": "/test/device-events.ts",
|
|
@@ -793,15 +793,15 @@
|
|
|
793
793
|
"context": null,
|
|
794
794
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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": "
|
|
797
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "5114b8b2-05d7-4b55-970d-16875c7e7b33",
|
|
797
|
+
"parentUUID": "ccd51c94-da2a-4c7c-a4e4-72fd6062f6f1",
|
|
798
798
|
"isHook": false,
|
|
799
799
|
"skipped": false
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"suites": [],
|
|
803
803
|
"passes": [
|
|
804
|
-
"
|
|
804
|
+
"5114b8b2-05d7-4b55-970d-16875c7e7b33"
|
|
805
805
|
],
|
|
806
806
|
"failures": [],
|
|
807
807
|
"pending": [],
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
"_timeout": 2000
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"uuid": "
|
|
815
|
+
"uuid": "e06530da-671e-4826-a2a0-7fff90188b38",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
834
834
|
"err": {},
|
|
835
|
-
"uuid": "
|
|
836
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "53d30df5-e7a6-455a-a9d6-9bad48268e4c",
|
|
836
|
+
"parentUUID": "e06530da-671e-4826-a2a0-7fff90188b38",
|
|
837
837
|
"isHook": false,
|
|
838
838
|
"skipped": false
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
841
|
"suites": [],
|
|
842
842
|
"passes": [
|
|
843
|
-
"
|
|
843
|
+
"53d30df5-e7a6-455a-a9d6-9bad48268e4c"
|
|
844
844
|
],
|
|
845
845
|
"failures": [],
|
|
846
846
|
"pending": [],
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
"_timeout": 2000
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
|
-
"uuid": "
|
|
854
|
+
"uuid": "2cd8943a-9e67-495c-a260-dd3445a69d69",
|
|
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 lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert_1.default.deepStrictEqual(device.listenerCount('update'), 0);\n});",
|
|
873
873
|
"err": {},
|
|
874
|
-
"uuid": "
|
|
875
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "40526ac5-6f8f-4734-829c-321045bfd096",
|
|
875
|
+
"parentUUID": "2cd8943a-9e67-495c-a260-dd3445a69d69",
|
|
876
876
|
"isHook": false,
|
|
877
877
|
"skipped": false
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
880
|
"suites": [],
|
|
881
881
|
"passes": [
|
|
882
|
-
"
|
|
882
|
+
"40526ac5-6f8f-4734-829c-321045bfd096"
|
|
883
883
|
],
|
|
884
884
|
"failures": [],
|
|
885
885
|
"pending": [],
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"_timeout": 2000
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
"uuid": "
|
|
903
|
+
"uuid": "dcce2dfe-cf2c-4cf2-88aa-c42ec666de86",
|
|
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": "
|
|
912
|
+
"uuid": "a0c1f12f-ef4b-4a62-907e-fcb0d71de9b2",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
931
931
|
"err": {},
|
|
932
|
-
"uuid": "
|
|
933
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "d49b9c5a-78de-4a59-b5cc-c530d6c826d0",
|
|
933
|
+
"parentUUID": "a0c1f12f-ef4b-4a62-907e-fcb0d71de9b2",
|
|
934
934
|
"isHook": false,
|
|
935
935
|
"skipped": false
|
|
936
936
|
}
|
|
937
937
|
],
|
|
938
938
|
"suites": [],
|
|
939
939
|
"passes": [
|
|
940
|
-
"
|
|
940
|
+
"d49b9c5a-78de-4a59-b5cc-c530d6c826d0"
|
|
941
941
|
],
|
|
942
942
|
"failures": [],
|
|
943
943
|
"pending": [],
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"_timeout": 2000
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
"uuid": "
|
|
951
|
+
"uuid": "606f6dc9-fb4f-4fb3-8342-f49acf59000f",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.host, '192.168.178.2');",
|
|
970
970
|
"err": {},
|
|
971
|
-
"uuid": "
|
|
972
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "f0a202b6-9085-497f-807f-1739d3d61439",
|
|
972
|
+
"parentUUID": "606f6dc9-fb4f-4fb3-8342-f49acf59000f",
|
|
973
973
|
"isHook": false,
|
|
974
974
|
"skipped": false
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
977
|
"suites": [],
|
|
978
978
|
"passes": [
|
|
979
|
-
"
|
|
979
|
+
"f0a202b6-9085-497f-807f-1739d3d61439"
|
|
980
980
|
],
|
|
981
981
|
"failures": [],
|
|
982
982
|
"pending": [],
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
"_timeout": 2000
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
"uuid": "
|
|
990
|
+
"uuid": "9f4451f2-d9b8-48c5-9de7-ac81d79d47eb",
|
|
991
991
|
"title": "get id()",
|
|
992
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
993
993
|
"file": "/test/device.ts",
|
|
@@ -1007,15 +1007,15 @@
|
|
|
1007
1007
|
"context": null,
|
|
1008
1008
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert_1.default.strictEqual(device.id, '*****');",
|
|
1009
1009
|
"err": {},
|
|
1010
|
-
"uuid": "
|
|
1011
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "543b3569-5f0f-4a6a-96db-8a5033e200a9",
|
|
1011
|
+
"parentUUID": "9f4451f2-d9b8-48c5-9de7-ac81d79d47eb",
|
|
1012
1012
|
"isHook": false,
|
|
1013
1013
|
"skipped": false
|
|
1014
1014
|
}
|
|
1015
1015
|
],
|
|
1016
1016
|
"suites": [],
|
|
1017
1017
|
"passes": [
|
|
1018
|
-
"
|
|
1018
|
+
"543b3569-5f0f-4a6a-96db-8a5033e200a9"
|
|
1019
1019
|
],
|
|
1020
1020
|
"failures": [],
|
|
1021
1021
|
"pending": [],
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"_timeout": 2000
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"uuid": "
|
|
1029
|
+
"uuid": "39ed7de8-d5bc-4bec-b67c-0f739decc88c",
|
|
1030
1030
|
"title": "get protocol()",
|
|
1031
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1032
1032
|
"file": "/test/device.ts",
|
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
"title": "should return the protocol",
|
|
1038
1038
|
"fullTitle": "NodePyATVDevice get protocol() should return the protocol",
|
|
1039
1039
|
"timedOut": false,
|
|
1040
|
-
"duration":
|
|
1040
|
+
"duration": 0,
|
|
1041
1041
|
"state": "passed",
|
|
1042
1042
|
"speed": "fast",
|
|
1043
1043
|
"pass": true,
|
|
@@ -1046,26 +1046,26 @@
|
|
|
1046
1046
|
"context": null,
|
|
1047
1047
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.strictEqual(device.protocol, types_1.NodePyATVProtocol.airplay);",
|
|
1048
1048
|
"err": {},
|
|
1049
|
-
"uuid": "
|
|
1050
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "2c025119-fffc-4d33-bca1-7f91c8d641f6",
|
|
1050
|
+
"parentUUID": "39ed7de8-d5bc-4bec-b67c-0f739decc88c",
|
|
1051
1051
|
"isHook": false,
|
|
1052
1052
|
"skipped": false
|
|
1053
1053
|
}
|
|
1054
1054
|
],
|
|
1055
1055
|
"suites": [],
|
|
1056
1056
|
"passes": [
|
|
1057
|
-
"
|
|
1057
|
+
"2c025119-fffc-4d33-bca1-7f91c8d641f6"
|
|
1058
1058
|
],
|
|
1059
1059
|
"failures": [],
|
|
1060
1060
|
"pending": [],
|
|
1061
1061
|
"skipped": [],
|
|
1062
|
-
"duration":
|
|
1062
|
+
"duration": 0,
|
|
1063
1063
|
"root": false,
|
|
1064
1064
|
"rootEmpty": false,
|
|
1065
1065
|
"_timeout": 2000
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
|
-
"uuid": "
|
|
1068
|
+
"uuid": "186accdc-ae99-47bb-b000-52679f21aee4",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);",
|
|
1087
1087
|
"err": {},
|
|
1088
|
-
"uuid": "
|
|
1089
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "cfe6f5ed-ba59-46f4-ba01-ce482e78b8a6",
|
|
1089
|
+
"parentUUID": "186accdc-ae99-47bb-b000-52679f21aee4",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1105
1105
|
"err": {},
|
|
1106
|
-
"uuid": "
|
|
1107
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "8e2237f9-cfc9-44d4-b23d-781259b2ba40",
|
|
1107
|
+
"parentUUID": "186accdc-ae99-47bb-b000-52679f21aee4",
|
|
1108
1108
|
"isHook": false,
|
|
1109
1109
|
"skipped": false
|
|
1110
1110
|
},
|
|
@@ -1121,17 +1121,17 @@
|
|
|
1121
1121
|
"context": null,
|
|
1122
1122
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1123
1123
|
"err": {},
|
|
1124
|
-
"uuid": "
|
|
1125
|
-
"parentUUID": "
|
|
1124
|
+
"uuid": "997119bf-7dbc-4f54-87f1-7f8a16b9adbb",
|
|
1125
|
+
"parentUUID": "186accdc-ae99-47bb-b000-52679f21aee4",
|
|
1126
1126
|
"isHook": false,
|
|
1127
1127
|
"skipped": false
|
|
1128
1128
|
}
|
|
1129
1129
|
],
|
|
1130
1130
|
"suites": [],
|
|
1131
1131
|
"passes": [
|
|
1132
|
-
"
|
|
1133
|
-
"
|
|
1134
|
-
"
|
|
1132
|
+
"cfe6f5ed-ba59-46f4-ba01-ce482e78b8a6",
|
|
1133
|
+
"8e2237f9-cfc9-44d4-b23d-781259b2ba40",
|
|
1134
|
+
"997119bf-7dbc-4f54-87f1-7f8a16b9adbb"
|
|
1135
1135
|
],
|
|
1136
1136
|
"failures": [],
|
|
1137
1137
|
"pending": [],
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
"_timeout": 2000
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
|
-
"uuid": "
|
|
1145
|
+
"uuid": "60821314-5bd0-4cbe-990d-ea8c41969de3",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert_1.default.strictEqual(device.debug, true);",
|
|
1164
1164
|
"err": {},
|
|
1165
|
-
"uuid": "
|
|
1166
|
-
"parentUUID": "
|
|
1165
|
+
"uuid": "a98d1c78-623a-41f6-9039-e5d5d87937fb",
|
|
1166
|
+
"parentUUID": "60821314-5bd0-4cbe-990d-ea8c41969de3",
|
|
1167
1167
|
"isHook": false,
|
|
1168
1168
|
"skipped": false
|
|
1169
1169
|
},
|
|
@@ -1180,8 +1180,8 @@
|
|
|
1180
1180
|
"context": null,
|
|
1181
1181
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1182
1182
|
"err": {},
|
|
1183
|
-
"uuid": "
|
|
1184
|
-
"parentUUID": "
|
|
1183
|
+
"uuid": "23dc8140-5c4d-49b6-a26d-da45b5904a3d",
|
|
1184
|
+
"parentUUID": "60821314-5bd0-4cbe-990d-ea8c41969de3",
|
|
1185
1185
|
"isHook": false,
|
|
1186
1186
|
"skipped": false
|
|
1187
1187
|
},
|
|
@@ -1198,8 +1198,8 @@
|
|
|
1198
1198
|
"context": null,
|
|
1199
1199
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1200
1200
|
"err": {},
|
|
1201
|
-
"uuid": "
|
|
1202
|
-
"parentUUID": "
|
|
1201
|
+
"uuid": "639d1660-83e5-4097-847a-8768556a29a0",
|
|
1202
|
+
"parentUUID": "60821314-5bd0-4cbe-990d-ea8c41969de3",
|
|
1203
1203
|
"isHook": false,
|
|
1204
1204
|
"skipped": false
|
|
1205
1205
|
},
|
|
@@ -1216,18 +1216,18 @@
|
|
|
1216
1216
|
"context": null,
|
|
1217
1217
|
"code": "const device = new device_1.default({\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_1.default.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1218
1218
|
"err": {},
|
|
1219
|
-
"uuid": "
|
|
1220
|
-
"parentUUID": "
|
|
1219
|
+
"uuid": "4e6e469d-6e46-499f-93c9-f766b872703f",
|
|
1220
|
+
"parentUUID": "60821314-5bd0-4cbe-990d-ea8c41969de3",
|
|
1221
1221
|
"isHook": false,
|
|
1222
1222
|
"skipped": false
|
|
1223
1223
|
}
|
|
1224
1224
|
],
|
|
1225
1225
|
"suites": [],
|
|
1226
1226
|
"passes": [
|
|
1227
|
-
"
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1230
|
-
"
|
|
1227
|
+
"a98d1c78-623a-41f6-9039-e5d5d87937fb",
|
|
1228
|
+
"23dc8140-5c4d-49b6-a26d-da45b5904a3d",
|
|
1229
|
+
"639d1660-83e5-4097-847a-8768556a29a0",
|
|
1230
|
+
"4e6e469d-6e46-499f-93c9-f766b872703f"
|
|
1231
1231
|
],
|
|
1232
1232
|
"failures": [],
|
|
1233
1233
|
"pending": [],
|
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
"_timeout": 2000
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
|
-
"uuid": "
|
|
1241
|
+
"uuid": "d8656be9-49d9-4103-9a1b-59eabe32ab6a",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});",
|
|
1260
1260
|
"err": {},
|
|
1261
|
-
"uuid": "
|
|
1262
|
-
"parentUUID": "
|
|
1261
|
+
"uuid": "a9754ed6-5c00-4af8-8151-acbacf39cf8c",
|
|
1262
|
+
"parentUUID": "d8656be9-49d9-4103-9a1b-59eabe32ab6a",
|
|
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: types_1.NodePyATVProtocol.airplay\n};\nconst deviceA = new device_1.default(config);\nconst deviceB = new device_1.default(deviceA.toJSON());\nassert_1.default.deepEqual(deviceB.toJSON(), config);",
|
|
1278
1278
|
"err": {},
|
|
1279
|
-
"uuid": "
|
|
1280
|
-
"parentUUID": "
|
|
1279
|
+
"uuid": "03d4562c-14d9-4008-af05-ccde1adcedc3",
|
|
1280
|
+
"parentUUID": "d8656be9-49d9-4103-9a1b-59eabe32ab6a",
|
|
1281
1281
|
"isHook": false,
|
|
1282
1282
|
"skipped": false
|
|
1283
1283
|
}
|
|
1284
1284
|
],
|
|
1285
1285
|
"suites": [],
|
|
1286
1286
|
"passes": [
|
|
1287
|
-
"
|
|
1288
|
-
"
|
|
1287
|
+
"a9754ed6-5c00-4af8-8151-acbacf39cf8c",
|
|
1288
|
+
"03d4562c-14d9-4008-af05-ccde1adcedc3"
|
|
1289
1289
|
],
|
|
1290
1290
|
"failures": [],
|
|
1291
1291
|
"pending": [],
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
"_timeout": 2000
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
"uuid": "
|
|
1299
|
+
"uuid": "c2bede28-69cd-458c-846a-8629462e0dcf",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
|
|
1318
1318
|
"err": {},
|
|
1319
|
-
"uuid": "
|
|
1320
|
-
"parentUUID": "
|
|
1319
|
+
"uuid": "0bbcd49b-77f9-4bbc-a997-0ddd23f28283",
|
|
1320
|
+
"parentUUID": "c2bede28-69cd-458c-846a-8629462e0dcf",
|
|
1321
1321
|
"isHook": false,
|
|
1322
1322
|
"skipped": false
|
|
1323
1323
|
}
|
|
1324
1324
|
],
|
|
1325
1325
|
"suites": [],
|
|
1326
1326
|
"passes": [
|
|
1327
|
-
"
|
|
1327
|
+
"0bbcd49b-77f9-4bbc-a997-0ddd23f28283"
|
|
1328
1328
|
],
|
|
1329
1329
|
"failures": [],
|
|
1330
1330
|
"pending": [],
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
"_timeout": 2000
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
1338
|
-
"uuid": "
|
|
1338
|
+
"uuid": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
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": "
|
|
1359
|
-
"parentUUID": "
|
|
1358
|
+
"uuid": "0638d9d7-0187-4862-a8fe-c2ebd8c9336d",
|
|
1359
|
+
"parentUUID": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
1360
1360
|
"isHook": false,
|
|
1361
1361
|
"skipped": false
|
|
1362
1362
|
},
|
|
@@ -1373,8 +1373,8 @@
|
|
|
1373
1373
|
"context": null,
|
|
1374
1374
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.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: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
|
|
1375
1375
|
"err": {},
|
|
1376
|
-
"uuid": "
|
|
1377
|
-
"parentUUID": "
|
|
1376
|
+
"uuid": "ec0b35da-c07a-47fc-a32a-59f855f4fd43",
|
|
1377
|
+
"parentUUID": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
1378
1378
|
"isHook": false,
|
|
1379
1379
|
"skipped": false
|
|
1380
1380
|
},
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
"title": "should reject with error if pyatv fails",
|
|
1383
1383
|
"fullTitle": "NodePyATVDevice getState() should reject with error if pyatv fails",
|
|
1384
1384
|
"timedOut": false,
|
|
1385
|
-
"duration":
|
|
1385
|
+
"duration": 1,
|
|
1386
1386
|
"state": "passed",
|
|
1387
1387
|
"speed": "fast",
|
|
1388
1388
|
"pass": true,
|
|
@@ -1391,8 +1391,8 @@
|
|
|
1391
1391
|
"context": null,
|
|
1392
1392
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.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": "
|
|
1395
|
-
"parentUUID": "
|
|
1394
|
+
"uuid": "fc142feb-e5a1-44e7-be8d-f3427afa1e85",
|
|
1395
|
+
"parentUUID": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert_1.default.strictEqual(executions, 1);\n});",
|
|
1411
1411
|
"err": {},
|
|
1412
|
-
"uuid": "
|
|
1413
|
-
"parentUUID": "
|
|
1412
|
+
"uuid": "40f1a282-f21b-4b54-81f4-b6c04ff381a9",
|
|
1413
|
+
"parentUUID": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
1414
1414
|
"isHook": false,
|
|
1415
1415
|
"skipped": false
|
|
1416
1416
|
},
|
|
@@ -1427,31 +1427,31 @@
|
|
|
1427
1427
|
"context": null,
|
|
1428
1428
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert_1.default.ok(secondResult.position);\n assert_1.default.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert_1.default.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
|
|
1429
1429
|
"err": {},
|
|
1430
|
-
"uuid": "
|
|
1431
|
-
"parentUUID": "
|
|
1430
|
+
"uuid": "0b0d5e45-68d5-4666-a7b3-b29b2be28a28",
|
|
1431
|
+
"parentUUID": "cc038983-d593-4436-bdbf-4cf599ee5975",
|
|
1432
1432
|
"isHook": false,
|
|
1433
1433
|
"skipped": false
|
|
1434
1434
|
}
|
|
1435
1435
|
],
|
|
1436
1436
|
"suites": [],
|
|
1437
1437
|
"passes": [
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
"
|
|
1441
|
-
"
|
|
1438
|
+
"ec0b35da-c07a-47fc-a32a-59f855f4fd43",
|
|
1439
|
+
"fc142feb-e5a1-44e7-be8d-f3427afa1e85",
|
|
1440
|
+
"40f1a282-f21b-4b54-81f4-b6c04ff381a9",
|
|
1441
|
+
"0b0d5e45-68d5-4666-a7b3-b29b2be28a28"
|
|
1442
1442
|
],
|
|
1443
1443
|
"failures": [],
|
|
1444
1444
|
"pending": [
|
|
1445
|
-
"
|
|
1445
|
+
"0638d9d7-0187-4862-a8fe-c2ebd8c9336d"
|
|
1446
1446
|
],
|
|
1447
1447
|
"skipped": [],
|
|
1448
|
-
"duration":
|
|
1448
|
+
"duration": 6,
|
|
1449
1449
|
"root": false,
|
|
1450
1450
|
"rootEmpty": false,
|
|
1451
1451
|
"_timeout": 2000
|
|
1452
1452
|
},
|
|
1453
1453
|
{
|
|
1454
|
-
"uuid": "
|
|
1454
|
+
"uuid": "33563ee9-8dbf-4e3e-ad0a-0a10ab97f883",
|
|
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":
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert_1.default.strictEqual(executions, 2);\n});",
|
|
1473
1473
|
"err": {},
|
|
1474
|
-
"uuid": "
|
|
1475
|
-
"parentUUID": "
|
|
1474
|
+
"uuid": "c61c210a-60fb-428a-91a4-ca5c5a78af32",
|
|
1475
|
+
"parentUUID": "33563ee9-8dbf-4e3e-ad0a-0a10ab97f883",
|
|
1476
1476
|
"isHook": false,
|
|
1477
1477
|
"skipped": false
|
|
1478
1478
|
}
|
|
1479
1479
|
],
|
|
1480
1480
|
"suites": [],
|
|
1481
1481
|
"passes": [
|
|
1482
|
-
"
|
|
1482
|
+
"c61c210a-60fb-428a-91a4-ca5c5a78af32"
|
|
1483
1483
|
],
|
|
1484
1484
|
"failures": [],
|
|
1485
1485
|
"pending": [],
|
|
1486
1486
|
"skipped": [],
|
|
1487
|
-
"duration":
|
|
1487
|
+
"duration": 3,
|
|
1488
1488
|
"root": false,
|
|
1489
1489
|
"rootEmpty": false,
|
|
1490
1490
|
"_timeout": 2000
|
|
1491
1491
|
},
|
|
1492
1492
|
{
|
|
1493
|
-
"uuid": "
|
|
1493
|
+
"uuid": "370c7806-650d-4a3f-8e85-9a6a3975c3f5",
|
|
1494
1494
|
"title": "getDateTime()",
|
|
1495
1495
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1496
1496
|
"file": "/test/device.ts",
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
"title": "should work",
|
|
1502
1502
|
"fullTitle": "NodePyATVDevice getDateTime() should work",
|
|
1503
1503
|
"timedOut": false,
|
|
1504
|
-
"duration":
|
|
1504
|
+
"duration": 0,
|
|
1505
1505
|
"state": "passed",
|
|
1506
1506
|
"speed": "fast",
|
|
1507
1507
|
"pass": true,
|
|
@@ -1510,26 +1510,26 @@
|
|
|
1510
1510
|
"context": null,
|
|
1511
1511
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert_1.default.ok(result instanceof Date);\n});",
|
|
1512
1512
|
"err": {},
|
|
1513
|
-
"uuid": "
|
|
1514
|
-
"parentUUID": "
|
|
1513
|
+
"uuid": "c0e9c11c-fbae-4e89-a24d-e036f592860d",
|
|
1514
|
+
"parentUUID": "370c7806-650d-4a3f-8e85-9a6a3975c3f5",
|
|
1515
1515
|
"isHook": false,
|
|
1516
1516
|
"skipped": false
|
|
1517
1517
|
}
|
|
1518
1518
|
],
|
|
1519
1519
|
"suites": [],
|
|
1520
1520
|
"passes": [
|
|
1521
|
-
"
|
|
1521
|
+
"c0e9c11c-fbae-4e89-a24d-e036f592860d"
|
|
1522
1522
|
],
|
|
1523
1523
|
"failures": [],
|
|
1524
1524
|
"pending": [],
|
|
1525
1525
|
"skipped": [],
|
|
1526
|
-
"duration":
|
|
1526
|
+
"duration": 0,
|
|
1527
1527
|
"root": false,
|
|
1528
1528
|
"rootEmpty": false,
|
|
1529
1529
|
"_timeout": 2000
|
|
1530
1530
|
},
|
|
1531
1531
|
{
|
|
1532
|
-
"uuid": "
|
|
1532
|
+
"uuid": "e0c4bb76-0291-4e40-9590-9d876366f24c",
|
|
1533
1533
|
"title": "getHash()",
|
|
1534
1534
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1535
1535
|
"file": "/test/device.ts",
|
|
@@ -1540,7 +1540,7 @@
|
|
|
1540
1540
|
"title": "should work",
|
|
1541
1541
|
"fullTitle": "NodePyATVDevice getHash() should work",
|
|
1542
1542
|
"timedOut": false,
|
|
1543
|
-
"duration":
|
|
1543
|
+
"duration": 1,
|
|
1544
1544
|
"state": "passed",
|
|
1545
1545
|
"speed": "fast",
|
|
1546
1546
|
"pass": true,
|
|
@@ -1549,26 +1549,26 @@
|
|
|
1549
1549
|
"context": null,
|
|
1550
1550
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert_1.default.strictEqual(result, '12345');\n});",
|
|
1551
1551
|
"err": {},
|
|
1552
|
-
"uuid": "
|
|
1553
|
-
"parentUUID": "
|
|
1552
|
+
"uuid": "413a65c5-7886-4de0-85e7-22d2a11943c2",
|
|
1553
|
+
"parentUUID": "e0c4bb76-0291-4e40-9590-9d876366f24c",
|
|
1554
1554
|
"isHook": false,
|
|
1555
1555
|
"skipped": false
|
|
1556
1556
|
}
|
|
1557
1557
|
],
|
|
1558
1558
|
"suites": [],
|
|
1559
1559
|
"passes": [
|
|
1560
|
-
"
|
|
1560
|
+
"413a65c5-7886-4de0-85e7-22d2a11943c2"
|
|
1561
1561
|
],
|
|
1562
1562
|
"failures": [],
|
|
1563
1563
|
"pending": [],
|
|
1564
1564
|
"skipped": [],
|
|
1565
|
-
"duration":
|
|
1565
|
+
"duration": 1,
|
|
1566
1566
|
"root": false,
|
|
1567
1567
|
"rootEmpty": false,
|
|
1568
1568
|
"_timeout": 2000
|
|
1569
1569
|
},
|
|
1570
1570
|
{
|
|
1571
|
-
"uuid": "
|
|
1571
|
+
"uuid": "3e4bf77e-e281-4add-b788-9f5be36c3d4b",
|
|
1572
1572
|
"title": "getMediaType()",
|
|
1573
1573
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1574
1574
|
"file": "/test/device.ts",
|
|
@@ -1579,7 +1579,7 @@
|
|
|
1579
1579
|
"title": "should work",
|
|
1580
1580
|
"fullTitle": "NodePyATVDevice getMediaType() should work",
|
|
1581
1581
|
"timedOut": false,
|
|
1582
|
-
"duration":
|
|
1582
|
+
"duration": 1,
|
|
1583
1583
|
"state": "passed",
|
|
1584
1584
|
"speed": "fast",
|
|
1585
1585
|
"pass": true,
|
|
@@ -1588,26 +1588,26 @@
|
|
|
1588
1588
|
"context": null,
|
|
1589
1589
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVMediaType.video);\n assert_1.default.deepStrictEqual(result, 'video');\n});",
|
|
1590
1590
|
"err": {},
|
|
1591
|
-
"uuid": "
|
|
1592
|
-
"parentUUID": "
|
|
1591
|
+
"uuid": "809d46b8-0304-46f6-8253-e1b5d78fbb7d",
|
|
1592
|
+
"parentUUID": "3e4bf77e-e281-4add-b788-9f5be36c3d4b",
|
|
1593
1593
|
"isHook": false,
|
|
1594
1594
|
"skipped": false
|
|
1595
1595
|
}
|
|
1596
1596
|
],
|
|
1597
1597
|
"suites": [],
|
|
1598
1598
|
"passes": [
|
|
1599
|
-
"
|
|
1599
|
+
"809d46b8-0304-46f6-8253-e1b5d78fbb7d"
|
|
1600
1600
|
],
|
|
1601
1601
|
"failures": [],
|
|
1602
1602
|
"pending": [],
|
|
1603
1603
|
"skipped": [],
|
|
1604
|
-
"duration":
|
|
1604
|
+
"duration": 1,
|
|
1605
1605
|
"root": false,
|
|
1606
1606
|
"rootEmpty": false,
|
|
1607
1607
|
"_timeout": 2000
|
|
1608
1608
|
},
|
|
1609
1609
|
{
|
|
1610
|
-
"uuid": "
|
|
1610
|
+
"uuid": "6ad0be26-eb0c-4c56-be16-fdbaa9dc8601",
|
|
1611
1611
|
"title": "getDeviceState()",
|
|
1612
1612
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1613
1613
|
"file": "/test/device.ts",
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
"title": "should work",
|
|
1619
1619
|
"fullTitle": "NodePyATVDevice getDeviceState() should work",
|
|
1620
1620
|
"timedOut": false,
|
|
1621
|
-
"duration":
|
|
1621
|
+
"duration": 1,
|
|
1622
1622
|
"state": "passed",
|
|
1623
1623
|
"speed": "fast",
|
|
1624
1624
|
"pass": true,
|
|
@@ -1627,26 +1627,26 @@
|
|
|
1627
1627
|
"context": null,
|
|
1628
1628
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVDeviceState.seeking);\n assert_1.default.deepStrictEqual(result, 'seeking');\n});",
|
|
1629
1629
|
"err": {},
|
|
1630
|
-
"uuid": "
|
|
1631
|
-
"parentUUID": "
|
|
1630
|
+
"uuid": "2a43231d-1e05-408a-92e3-60dbab097d2d",
|
|
1631
|
+
"parentUUID": "6ad0be26-eb0c-4c56-be16-fdbaa9dc8601",
|
|
1632
1632
|
"isHook": false,
|
|
1633
1633
|
"skipped": false
|
|
1634
1634
|
}
|
|
1635
1635
|
],
|
|
1636
1636
|
"suites": [],
|
|
1637
1637
|
"passes": [
|
|
1638
|
-
"
|
|
1638
|
+
"2a43231d-1e05-408a-92e3-60dbab097d2d"
|
|
1639
1639
|
],
|
|
1640
1640
|
"failures": [],
|
|
1641
1641
|
"pending": [],
|
|
1642
1642
|
"skipped": [],
|
|
1643
|
-
"duration":
|
|
1643
|
+
"duration": 1,
|
|
1644
1644
|
"root": false,
|
|
1645
1645
|
"rootEmpty": false,
|
|
1646
1646
|
"_timeout": 2000
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"uuid": "
|
|
1649
|
+
"uuid": "ce9cc35a-14e5-435d-aec6-ed239f59cdd1",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert_1.default.strictEqual(result, 'My Movie');\n});",
|
|
1668
1668
|
"err": {},
|
|
1669
|
-
"uuid": "
|
|
1670
|
-
"parentUUID": "
|
|
1669
|
+
"uuid": "c67aab9e-c5ec-4df8-a8b6-8ed15c7b6d4c",
|
|
1670
|
+
"parentUUID": "ce9cc35a-14e5-435d-aec6-ed239f59cdd1",
|
|
1671
1671
|
"isHook": false,
|
|
1672
1672
|
"skipped": false
|
|
1673
1673
|
}
|
|
1674
1674
|
],
|
|
1675
1675
|
"suites": [],
|
|
1676
1676
|
"passes": [
|
|
1677
|
-
"
|
|
1677
|
+
"c67aab9e-c5ec-4df8-a8b6-8ed15c7b6d4c"
|
|
1678
1678
|
],
|
|
1679
1679
|
"failures": [],
|
|
1680
1680
|
"pending": [],
|
|
@@ -1685,7 +1685,7 @@
|
|
|
1685
1685
|
"_timeout": 2000
|
|
1686
1686
|
},
|
|
1687
1687
|
{
|
|
1688
|
-
"uuid": "
|
|
1688
|
+
"uuid": "d901ea87-34bc-4c07-856e-72e2529a44cb",
|
|
1689
1689
|
"title": "getArtist()",
|
|
1690
1690
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1691
1691
|
"file": "/test/device.ts",
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
"title": "should work",
|
|
1697
1697
|
"fullTitle": "NodePyATVDevice getArtist() should work",
|
|
1698
1698
|
"timedOut": false,
|
|
1699
|
-
"duration":
|
|
1699
|
+
"duration": 1,
|
|
1700
1700
|
"state": "passed",
|
|
1701
1701
|
"speed": "fast",
|
|
1702
1702
|
"pass": true,
|
|
@@ -1705,26 +1705,26 @@
|
|
|
1705
1705
|
"context": null,
|
|
1706
1706
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert_1.default.strictEqual(result, 'My Artist');\n});",
|
|
1707
1707
|
"err": {},
|
|
1708
|
-
"uuid": "
|
|
1709
|
-
"parentUUID": "
|
|
1708
|
+
"uuid": "f69cf5c9-f098-4e4e-9105-92010d96ae80",
|
|
1709
|
+
"parentUUID": "d901ea87-34bc-4c07-856e-72e2529a44cb",
|
|
1710
1710
|
"isHook": false,
|
|
1711
1711
|
"skipped": false
|
|
1712
1712
|
}
|
|
1713
1713
|
],
|
|
1714
1714
|
"suites": [],
|
|
1715
1715
|
"passes": [
|
|
1716
|
-
"
|
|
1716
|
+
"f69cf5c9-f098-4e4e-9105-92010d96ae80"
|
|
1717
1717
|
],
|
|
1718
1718
|
"failures": [],
|
|
1719
1719
|
"pending": [],
|
|
1720
1720
|
"skipped": [],
|
|
1721
|
-
"duration":
|
|
1721
|
+
"duration": 1,
|
|
1722
1722
|
"root": false,
|
|
1723
1723
|
"rootEmpty": false,
|
|
1724
1724
|
"_timeout": 2000
|
|
1725
1725
|
},
|
|
1726
1726
|
{
|
|
1727
|
-
"uuid": "
|
|
1727
|
+
"uuid": "28d9f9af-46ac-4897-b545-d049e1feda4a",
|
|
1728
1728
|
"title": "getAlbum()",
|
|
1729
1729
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1730
1730
|
"file": "/test/device.ts",
|
|
@@ -1735,7 +1735,7 @@
|
|
|
1735
1735
|
"title": "should work",
|
|
1736
1736
|
"fullTitle": "NodePyATVDevice getAlbum() should work",
|
|
1737
1737
|
"timedOut": false,
|
|
1738
|
-
"duration":
|
|
1738
|
+
"duration": 1,
|
|
1739
1739
|
"state": "passed",
|
|
1740
1740
|
"speed": "fast",
|
|
1741
1741
|
"pass": true,
|
|
@@ -1744,26 +1744,26 @@
|
|
|
1744
1744
|
"context": null,
|
|
1745
1745
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert_1.default.strictEqual(result, 'My ALbum');\n});",
|
|
1746
1746
|
"err": {},
|
|
1747
|
-
"uuid": "
|
|
1748
|
-
"parentUUID": "
|
|
1747
|
+
"uuid": "45fe8d12-ec60-4f18-9ccf-438b869d755d",
|
|
1748
|
+
"parentUUID": "28d9f9af-46ac-4897-b545-d049e1feda4a",
|
|
1749
1749
|
"isHook": false,
|
|
1750
1750
|
"skipped": false
|
|
1751
1751
|
}
|
|
1752
1752
|
],
|
|
1753
1753
|
"suites": [],
|
|
1754
1754
|
"passes": [
|
|
1755
|
-
"
|
|
1755
|
+
"45fe8d12-ec60-4f18-9ccf-438b869d755d"
|
|
1756
1756
|
],
|
|
1757
1757
|
"failures": [],
|
|
1758
1758
|
"pending": [],
|
|
1759
1759
|
"skipped": [],
|
|
1760
|
-
"duration":
|
|
1760
|
+
"duration": 1,
|
|
1761
1761
|
"root": false,
|
|
1762
1762
|
"rootEmpty": false,
|
|
1763
1763
|
"_timeout": 2000
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
|
-
"uuid": "
|
|
1766
|
+
"uuid": "5416ca3c-4e12-44b8-ba89-1a3878a89fcb",
|
|
1767
1767
|
"title": "getGenre()",
|
|
1768
1768
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1769
1769
|
"file": "/test/device.ts",
|
|
@@ -1774,7 +1774,7 @@
|
|
|
1774
1774
|
"title": "should work",
|
|
1775
1775
|
"fullTitle": "NodePyATVDevice getGenre() should work",
|
|
1776
1776
|
"timedOut": false,
|
|
1777
|
-
"duration":
|
|
1777
|
+
"duration": 1,
|
|
1778
1778
|
"state": "passed",
|
|
1779
1779
|
"speed": "fast",
|
|
1780
1780
|
"pass": true,
|
|
@@ -1783,26 +1783,26 @@
|
|
|
1783
1783
|
"context": null,
|
|
1784
1784
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert_1.default.strictEqual(result, 'My Genre');\n});",
|
|
1785
1785
|
"err": {},
|
|
1786
|
-
"uuid": "
|
|
1787
|
-
"parentUUID": "
|
|
1786
|
+
"uuid": "a00068cb-bd83-4ea8-a99f-5683082cdbd2",
|
|
1787
|
+
"parentUUID": "5416ca3c-4e12-44b8-ba89-1a3878a89fcb",
|
|
1788
1788
|
"isHook": false,
|
|
1789
1789
|
"skipped": false
|
|
1790
1790
|
}
|
|
1791
1791
|
],
|
|
1792
1792
|
"suites": [],
|
|
1793
1793
|
"passes": [
|
|
1794
|
-
"
|
|
1794
|
+
"a00068cb-bd83-4ea8-a99f-5683082cdbd2"
|
|
1795
1795
|
],
|
|
1796
1796
|
"failures": [],
|
|
1797
1797
|
"pending": [],
|
|
1798
1798
|
"skipped": [],
|
|
1799
|
-
"duration":
|
|
1799
|
+
"duration": 1,
|
|
1800
1800
|
"root": false,
|
|
1801
1801
|
"rootEmpty": false,
|
|
1802
1802
|
"_timeout": 2000
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
|
-
"uuid": "
|
|
1805
|
+
"uuid": "46271ec8-6164-4d02-be34-a2c0a1229cc0",
|
|
1806
1806
|
"title": "getTotalTime()",
|
|
1807
1807
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1808
1808
|
"file": "/test/device.ts",
|
|
@@ -1822,15 +1822,15 @@
|
|
|
1822
1822
|
"context": null,
|
|
1823
1823
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert_1.default.strictEqual(result, 45);\n});",
|
|
1824
1824
|
"err": {},
|
|
1825
|
-
"uuid": "
|
|
1826
|
-
"parentUUID": "
|
|
1825
|
+
"uuid": "67a61be8-9d4f-4ad0-9109-fbe4924f3a8e",
|
|
1826
|
+
"parentUUID": "46271ec8-6164-4d02-be34-a2c0a1229cc0",
|
|
1827
1827
|
"isHook": false,
|
|
1828
1828
|
"skipped": false
|
|
1829
1829
|
}
|
|
1830
1830
|
],
|
|
1831
1831
|
"suites": [],
|
|
1832
1832
|
"passes": [
|
|
1833
|
-
"
|
|
1833
|
+
"67a61be8-9d4f-4ad0-9109-fbe4924f3a8e"
|
|
1834
1834
|
],
|
|
1835
1835
|
"failures": [],
|
|
1836
1836
|
"pending": [],
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
"_timeout": 2000
|
|
1842
1842
|
},
|
|
1843
1843
|
{
|
|
1844
|
-
"uuid": "
|
|
1844
|
+
"uuid": "d8b84524-1e86-4e95-acba-7504be4e3b9a",
|
|
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":
|
|
1855
|
+
"duration": 2,
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert_1.default.strictEqual(result, 30);\n});",
|
|
1863
1863
|
"err": {},
|
|
1864
|
-
"uuid": "
|
|
1865
|
-
"parentUUID": "
|
|
1864
|
+
"uuid": "c8ea4760-50ef-4325-8346-95429c012f61",
|
|
1865
|
+
"parentUUID": "d8b84524-1e86-4e95-acba-7504be4e3b9a",
|
|
1866
1866
|
"isHook": false,
|
|
1867
1867
|
"skipped": false
|
|
1868
1868
|
}
|
|
1869
1869
|
],
|
|
1870
1870
|
"suites": [],
|
|
1871
1871
|
"passes": [
|
|
1872
|
-
"
|
|
1872
|
+
"c8ea4760-50ef-4325-8346-95429c012f61"
|
|
1873
1873
|
],
|
|
1874
1874
|
"failures": [],
|
|
1875
1875
|
"pending": [],
|
|
1876
1876
|
"skipped": [],
|
|
1877
|
-
"duration":
|
|
1877
|
+
"duration": 2,
|
|
1878
1878
|
"root": false,
|
|
1879
1879
|
"rootEmpty": false,
|
|
1880
1880
|
"_timeout": 2000
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"uuid": "
|
|
1883
|
+
"uuid": "098f053a-4a95-4eca-87c2-4709f5768c52",
|
|
1884
1884
|
"title": "getShuffle()",
|
|
1885
1885
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1886
1886
|
"file": "/test/device.ts",
|
|
@@ -1891,7 +1891,7 @@
|
|
|
1891
1891
|
"title": "should work",
|
|
1892
1892
|
"fullTitle": "NodePyATVDevice getShuffle() should work",
|
|
1893
1893
|
"timedOut": false,
|
|
1894
|
-
"duration":
|
|
1894
|
+
"duration": 1,
|
|
1895
1895
|
"state": "passed",
|
|
1896
1896
|
"speed": "fast",
|
|
1897
1897
|
"pass": true,
|
|
@@ -1900,26 +1900,26 @@
|
|
|
1900
1900
|
"context": null,
|
|
1901
1901
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVShuffleState.songs);\n assert_1.default.deepStrictEqual(result, 'songs');\n});",
|
|
1902
1902
|
"err": {},
|
|
1903
|
-
"uuid": "
|
|
1904
|
-
"parentUUID": "
|
|
1903
|
+
"uuid": "1c6a2f0a-8114-4911-bf34-740d34a8b3f8",
|
|
1904
|
+
"parentUUID": "098f053a-4a95-4eca-87c2-4709f5768c52",
|
|
1905
1905
|
"isHook": false,
|
|
1906
1906
|
"skipped": false
|
|
1907
1907
|
}
|
|
1908
1908
|
],
|
|
1909
1909
|
"suites": [],
|
|
1910
1910
|
"passes": [
|
|
1911
|
-
"
|
|
1911
|
+
"1c6a2f0a-8114-4911-bf34-740d34a8b3f8"
|
|
1912
1912
|
],
|
|
1913
1913
|
"failures": [],
|
|
1914
1914
|
"pending": [],
|
|
1915
1915
|
"skipped": [],
|
|
1916
|
-
"duration":
|
|
1916
|
+
"duration": 1,
|
|
1917
1917
|
"root": false,
|
|
1918
1918
|
"rootEmpty": false,
|
|
1919
1919
|
"_timeout": 2000
|
|
1920
1920
|
},
|
|
1921
1921
|
{
|
|
1922
|
-
"uuid": "
|
|
1922
|
+
"uuid": "f3713188-669b-48dc-9ce4-ae4f093fe7b4",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVRepeatState.all);\n assert_1.default.deepStrictEqual(result, 'all');\n});",
|
|
1941
1941
|
"err": {},
|
|
1942
|
-
"uuid": "
|
|
1943
|
-
"parentUUID": "
|
|
1942
|
+
"uuid": "dd088d8e-edbe-4b9d-ba7b-47973dbfb213",
|
|
1943
|
+
"parentUUID": "f3713188-669b-48dc-9ce4-ae4f093fe7b4",
|
|
1944
1944
|
"isHook": false,
|
|
1945
1945
|
"skipped": false
|
|
1946
1946
|
}
|
|
1947
1947
|
],
|
|
1948
1948
|
"suites": [],
|
|
1949
1949
|
"passes": [
|
|
1950
|
-
"
|
|
1950
|
+
"dd088d8e-edbe-4b9d-ba7b-47973dbfb213"
|
|
1951
1951
|
],
|
|
1952
1952
|
"failures": [],
|
|
1953
1953
|
"pending": [],
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
"_timeout": 2000
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
|
-
"uuid": "
|
|
1961
|
+
"uuid": "0d4960d0-ee75-44ed-acc5-61e8281d8df5",
|
|
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":
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert_1.default.strictEqual(result, 'My App');\n});",
|
|
1980
1980
|
"err": {},
|
|
1981
|
-
"uuid": "
|
|
1982
|
-
"parentUUID": "
|
|
1981
|
+
"uuid": "af3ddca8-52d5-4188-9fe9-d24f040dc05d",
|
|
1982
|
+
"parentUUID": "0d4960d0-ee75-44ed-acc5-61e8281d8df5",
|
|
1983
1983
|
"isHook": false,
|
|
1984
1984
|
"skipped": false
|
|
1985
1985
|
}
|
|
1986
1986
|
],
|
|
1987
1987
|
"suites": [],
|
|
1988
1988
|
"passes": [
|
|
1989
|
-
"
|
|
1989
|
+
"af3ddca8-52d5-4188-9fe9-d24f040dc05d"
|
|
1990
1990
|
],
|
|
1991
1991
|
"failures": [],
|
|
1992
1992
|
"pending": [],
|
|
1993
1993
|
"skipped": [],
|
|
1994
|
-
"duration":
|
|
1994
|
+
"duration": 1,
|
|
1995
1995
|
"root": false,
|
|
1996
1996
|
"rootEmpty": false,
|
|
1997
1997
|
"_timeout": 2000
|
|
1998
1998
|
},
|
|
1999
1999
|
{
|
|
2000
|
-
"uuid": "
|
|
2000
|
+
"uuid": "46399425-efa1-47a0-a34e-456a43e51a1d",
|
|
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":
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.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_1.default.strictEqual(result, 'app.example.com');\n});",
|
|
2019
2019
|
"err": {},
|
|
2020
|
-
"uuid": "
|
|
2021
|
-
"parentUUID": "
|
|
2020
|
+
"uuid": "7710f8ad-d9cb-45ac-a12e-7d26c793bbbc",
|
|
2021
|
+
"parentUUID": "46399425-efa1-47a0-a34e-456a43e51a1d",
|
|
2022
2022
|
"isHook": false,
|
|
2023
2023
|
"skipped": false
|
|
2024
2024
|
}
|
|
2025
2025
|
],
|
|
2026
2026
|
"suites": [],
|
|
2027
2027
|
"passes": [
|
|
2028
|
-
"
|
|
2028
|
+
"7710f8ad-d9cb-45ac-a12e-7d26c793bbbc"
|
|
2029
2029
|
],
|
|
2030
2030
|
"failures": [],
|
|
2031
2031
|
"pending": [],
|
|
2032
2032
|
"skipped": [],
|
|
2033
|
-
"duration":
|
|
2033
|
+
"duration": 1,
|
|
2034
2034
|
"root": false,
|
|
2035
2035
|
"rootEmpty": false,
|
|
2036
2036
|
"_timeout": 2000
|
|
2037
2037
|
},
|
|
2038
2038
|
{
|
|
2039
|
-
"uuid": "
|
|
2039
|
+
"uuid": "c5a1cd5a-7d21-41fa-9475-a810022d5e28",
|
|
2040
2040
|
"title": "pressKey()",
|
|
2041
2041
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2042
2042
|
"file": "/test/device.ts",
|
|
@@ -2056,8 +2056,8 @@
|
|
|
2056
2056
|
"context": null,
|
|
2057
2057
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(types_1.NodePyATVKeys.home);\n});",
|
|
2058
2058
|
"err": {},
|
|
2059
|
-
"uuid": "
|
|
2060
|
-
"parentUUID": "
|
|
2059
|
+
"uuid": "28bf2fd6-e69c-45bb-b4d0-95c1a0daf7de",
|
|
2060
|
+
"parentUUID": "c5a1cd5a-7d21-41fa-9475-a810022d5e28",
|
|
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":
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert_1.default.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": "
|
|
2078
|
-
"parentUUID": "
|
|
2077
|
+
"uuid": "b1d600d3-02fd-4181-b982-c0a1edbf0caf",
|
|
2078
|
+
"parentUUID": "c5a1cd5a-7d21-41fa-9475-a810022d5e28",
|
|
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":
|
|
2086
|
+
"duration": 1,
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(types_1.NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
|
|
2094
2094
|
"err": {},
|
|
2095
|
-
"uuid": "
|
|
2096
|
-
"parentUUID": "
|
|
2095
|
+
"uuid": "1fb26c0c-b370-4a61-96dd-7155ba0b2699",
|
|
2096
|
+
"parentUUID": "c5a1cd5a-7d21-41fa-9475-a810022d5e28",
|
|
2097
2097
|
"isHook": false,
|
|
2098
2098
|
"skipped": false
|
|
2099
2099
|
}
|
|
2100
2100
|
],
|
|
2101
2101
|
"suites": [],
|
|
2102
2102
|
"passes": [
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2103
|
+
"28bf2fd6-e69c-45bb-b4d0-95c1a0daf7de",
|
|
2104
|
+
"b1d600d3-02fd-4181-b982-c0a1edbf0caf",
|
|
2105
|
+
"1fb26c0c-b370-4a61-96dd-7155ba0b2699"
|
|
2106
2106
|
],
|
|
2107
2107
|
"failures": [],
|
|
2108
2108
|
"pending": [],
|
|
2109
2109
|
"skipped": [],
|
|
2110
|
-
"duration":
|
|
2110
|
+
"duration": 3,
|
|
2111
2111
|
"root": false,
|
|
2112
2112
|
"rootEmpty": false,
|
|
2113
2113
|
"_timeout": 2000
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
2116
|
-
"uuid": "
|
|
2116
|
+
"uuid": "16f70c3b-1dee-4f94-96aa-fbfce92dd7f1",
|
|
2117
2117
|
"title": "down()",
|
|
2118
2118
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2119
2119
|
"file": "/test/device.ts",
|
|
@@ -2133,15 +2133,15 @@
|
|
|
2133
2133
|
"context": null,
|
|
2134
2134
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2135
2135
|
"err": {},
|
|
2136
|
-
"uuid": "
|
|
2137
|
-
"parentUUID": "
|
|
2136
|
+
"uuid": "8e491d5f-f9ca-4689-96c9-a9ceb6c95cb0",
|
|
2137
|
+
"parentUUID": "16f70c3b-1dee-4f94-96aa-fbfce92dd7f1",
|
|
2138
2138
|
"isHook": false,
|
|
2139
2139
|
"skipped": false
|
|
2140
2140
|
}
|
|
2141
2141
|
],
|
|
2142
2142
|
"suites": [],
|
|
2143
2143
|
"passes": [
|
|
2144
|
-
"
|
|
2144
|
+
"8e491d5f-f9ca-4689-96c9-a9ceb6c95cb0"
|
|
2145
2145
|
],
|
|
2146
2146
|
"failures": [],
|
|
2147
2147
|
"pending": [],
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
"_timeout": 2000
|
|
2153
2153
|
},
|
|
2154
2154
|
{
|
|
2155
|
-
"uuid": "
|
|
2155
|
+
"uuid": "3c54d6a5-7269-45ed-9b13-6ecf7f7426db",
|
|
2156
2156
|
"title": "home()",
|
|
2157
2157
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2158
2158
|
"file": "/test/device.ts",
|
|
@@ -2172,15 +2172,15 @@
|
|
|
2172
2172
|
"context": null,
|
|
2173
2173
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2174
2174
|
"err": {},
|
|
2175
|
-
"uuid": "
|
|
2176
|
-
"parentUUID": "
|
|
2175
|
+
"uuid": "f54918d1-5807-4b91-89f6-4a548d9b1b91",
|
|
2176
|
+
"parentUUID": "3c54d6a5-7269-45ed-9b13-6ecf7f7426db",
|
|
2177
2177
|
"isHook": false,
|
|
2178
2178
|
"skipped": false
|
|
2179
2179
|
}
|
|
2180
2180
|
],
|
|
2181
2181
|
"suites": [],
|
|
2182
2182
|
"passes": [
|
|
2183
|
-
"
|
|
2183
|
+
"f54918d1-5807-4b91-89f6-4a548d9b1b91"
|
|
2184
2184
|
],
|
|
2185
2185
|
"failures": [],
|
|
2186
2186
|
"pending": [],
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
"_timeout": 2000
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
|
-
"uuid": "
|
|
2194
|
+
"uuid": "43248854-36e1-4273-82cd-8901cc890938",
|
|
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":
|
|
2205
|
+
"duration": 1,
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2213
2213
|
"err": {},
|
|
2214
|
-
"uuid": "
|
|
2215
|
-
"parentUUID": "
|
|
2214
|
+
"uuid": "860f37fb-577d-4f41-9a0b-6f7376c97a27",
|
|
2215
|
+
"parentUUID": "43248854-36e1-4273-82cd-8901cc890938",
|
|
2216
2216
|
"isHook": false,
|
|
2217
2217
|
"skipped": false
|
|
2218
2218
|
}
|
|
2219
2219
|
],
|
|
2220
2220
|
"suites": [],
|
|
2221
2221
|
"passes": [
|
|
2222
|
-
"
|
|
2222
|
+
"860f37fb-577d-4f41-9a0b-6f7376c97a27"
|
|
2223
2223
|
],
|
|
2224
2224
|
"failures": [],
|
|
2225
2225
|
"pending": [],
|
|
2226
2226
|
"skipped": [],
|
|
2227
|
-
"duration":
|
|
2227
|
+
"duration": 1,
|
|
2228
2228
|
"root": false,
|
|
2229
2229
|
"rootEmpty": false,
|
|
2230
2230
|
"_timeout": 2000
|
|
2231
2231
|
},
|
|
2232
2232
|
{
|
|
2233
|
-
"uuid": "
|
|
2233
|
+
"uuid": "c033188b-5075-456a-9f83-21e8793c3894",
|
|
2234
2234
|
"title": "left()",
|
|
2235
2235
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2236
2236
|
"file": "/test/device.ts",
|
|
@@ -2250,15 +2250,15 @@
|
|
|
2250
2250
|
"context": null,
|
|
2251
2251
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2252
2252
|
"err": {},
|
|
2253
|
-
"uuid": "
|
|
2254
|
-
"parentUUID": "
|
|
2253
|
+
"uuid": "d972f64c-86d3-490d-a0d6-46a4f017194f",
|
|
2254
|
+
"parentUUID": "c033188b-5075-456a-9f83-21e8793c3894",
|
|
2255
2255
|
"isHook": false,
|
|
2256
2256
|
"skipped": false
|
|
2257
2257
|
}
|
|
2258
2258
|
],
|
|
2259
2259
|
"suites": [],
|
|
2260
2260
|
"passes": [
|
|
2261
|
-
"
|
|
2261
|
+
"d972f64c-86d3-490d-a0d6-46a4f017194f"
|
|
2262
2262
|
],
|
|
2263
2263
|
"failures": [],
|
|
2264
2264
|
"pending": [],
|
|
@@ -2269,7 +2269,7 @@
|
|
|
2269
2269
|
"_timeout": 2000
|
|
2270
2270
|
},
|
|
2271
2271
|
{
|
|
2272
|
-
"uuid": "
|
|
2272
|
+
"uuid": "d59626e0-399a-43a2-bf18-0e623ab9169a",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2291
2291
|
"err": {},
|
|
2292
|
-
"uuid": "
|
|
2293
|
-
"parentUUID": "
|
|
2292
|
+
"uuid": "d04ecd93-a850-4dc8-9541-ee51b5aab098",
|
|
2293
|
+
"parentUUID": "d59626e0-399a-43a2-bf18-0e623ab9169a",
|
|
2294
2294
|
"isHook": false,
|
|
2295
2295
|
"skipped": false
|
|
2296
2296
|
}
|
|
2297
2297
|
],
|
|
2298
2298
|
"suites": [],
|
|
2299
2299
|
"passes": [
|
|
2300
|
-
"
|
|
2300
|
+
"d04ecd93-a850-4dc8-9541-ee51b5aab098"
|
|
2301
2301
|
],
|
|
2302
2302
|
"failures": [],
|
|
2303
2303
|
"pending": [],
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
"_timeout": 2000
|
|
2309
2309
|
},
|
|
2310
2310
|
{
|
|
2311
|
-
"uuid": "
|
|
2311
|
+
"uuid": "ed1454be-ff19-4f3b-a408-0788795aeea3",
|
|
2312
2312
|
"title": "next()",
|
|
2313
2313
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2314
2314
|
"file": "/test/device.ts",
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
"title": "should work",
|
|
2320
2320
|
"fullTitle": "NodePyATVDevice next() should work",
|
|
2321
2321
|
"timedOut": false,
|
|
2322
|
-
"duration":
|
|
2322
|
+
"duration": 1,
|
|
2323
2323
|
"state": "passed",
|
|
2324
2324
|
"speed": "fast",
|
|
2325
2325
|
"pass": true,
|
|
@@ -2328,26 +2328,26 @@
|
|
|
2328
2328
|
"context": null,
|
|
2329
2329
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2330
2330
|
"err": {},
|
|
2331
|
-
"uuid": "
|
|
2332
|
-
"parentUUID": "
|
|
2331
|
+
"uuid": "b57dbb9b-8a14-4fc1-9536-6d9ec4947ba1",
|
|
2332
|
+
"parentUUID": "ed1454be-ff19-4f3b-a408-0788795aeea3",
|
|
2333
2333
|
"isHook": false,
|
|
2334
2334
|
"skipped": false
|
|
2335
2335
|
}
|
|
2336
2336
|
],
|
|
2337
2337
|
"suites": [],
|
|
2338
2338
|
"passes": [
|
|
2339
|
-
"
|
|
2339
|
+
"b57dbb9b-8a14-4fc1-9536-6d9ec4947ba1"
|
|
2340
2340
|
],
|
|
2341
2341
|
"failures": [],
|
|
2342
2342
|
"pending": [],
|
|
2343
2343
|
"skipped": [],
|
|
2344
|
-
"duration":
|
|
2344
|
+
"duration": 1,
|
|
2345
2345
|
"root": false,
|
|
2346
2346
|
"rootEmpty": false,
|
|
2347
2347
|
"_timeout": 2000
|
|
2348
2348
|
},
|
|
2349
2349
|
{
|
|
2350
|
-
"uuid": "
|
|
2350
|
+
"uuid": "2553515c-1e13-47cf-8ad1-d311559bc765",
|
|
2351
2351
|
"title": "pause()",
|
|
2352
2352
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2353
2353
|
"file": "/test/device.ts",
|
|
@@ -2358,7 +2358,7 @@
|
|
|
2358
2358
|
"title": "should work",
|
|
2359
2359
|
"fullTitle": "NodePyATVDevice pause() should work",
|
|
2360
2360
|
"timedOut": false,
|
|
2361
|
-
"duration":
|
|
2361
|
+
"duration": 1,
|
|
2362
2362
|
"state": "passed",
|
|
2363
2363
|
"speed": "fast",
|
|
2364
2364
|
"pass": true,
|
|
@@ -2367,26 +2367,26 @@
|
|
|
2367
2367
|
"context": null,
|
|
2368
2368
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2369
2369
|
"err": {},
|
|
2370
|
-
"uuid": "
|
|
2371
|
-
"parentUUID": "
|
|
2370
|
+
"uuid": "edc6ea75-a6c5-486f-abe2-6b3f589cd8fb",
|
|
2371
|
+
"parentUUID": "2553515c-1e13-47cf-8ad1-d311559bc765",
|
|
2372
2372
|
"isHook": false,
|
|
2373
2373
|
"skipped": false
|
|
2374
2374
|
}
|
|
2375
2375
|
],
|
|
2376
2376
|
"suites": [],
|
|
2377
2377
|
"passes": [
|
|
2378
|
-
"
|
|
2378
|
+
"edc6ea75-a6c5-486f-abe2-6b3f589cd8fb"
|
|
2379
2379
|
],
|
|
2380
2380
|
"failures": [],
|
|
2381
2381
|
"pending": [],
|
|
2382
2382
|
"skipped": [],
|
|
2383
|
-
"duration":
|
|
2383
|
+
"duration": 1,
|
|
2384
2384
|
"root": false,
|
|
2385
2385
|
"rootEmpty": false,
|
|
2386
2386
|
"_timeout": 2000
|
|
2387
2387
|
},
|
|
2388
2388
|
{
|
|
2389
|
-
"uuid": "
|
|
2389
|
+
"uuid": "ddc75e0c-63ac-408a-95e0-7b1368264091",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2408
2408
|
"err": {},
|
|
2409
|
-
"uuid": "
|
|
2410
|
-
"parentUUID": "
|
|
2409
|
+
"uuid": "45d5b672-2e66-42d9-a6a6-1e3d80875248",
|
|
2410
|
+
"parentUUID": "ddc75e0c-63ac-408a-95e0-7b1368264091",
|
|
2411
2411
|
"isHook": false,
|
|
2412
2412
|
"skipped": false
|
|
2413
2413
|
}
|
|
2414
2414
|
],
|
|
2415
2415
|
"suites": [],
|
|
2416
2416
|
"passes": [
|
|
2417
|
-
"
|
|
2417
|
+
"45d5b672-2e66-42d9-a6a6-1e3d80875248"
|
|
2418
2418
|
],
|
|
2419
2419
|
"failures": [],
|
|
2420
2420
|
"pending": [],
|
|
@@ -2425,7 +2425,7 @@
|
|
|
2425
2425
|
"_timeout": 2000
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
2428
|
-
"uuid": "
|
|
2428
|
+
"uuid": "d21b0318-8a2e-4891-b454-55863c29cc65",
|
|
2429
2429
|
"title": "playPause()",
|
|
2430
2430
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2431
2431
|
"file": "/test/device.ts",
|
|
@@ -2445,15 +2445,15 @@
|
|
|
2445
2445
|
"context": null,
|
|
2446
2446
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2447
2447
|
"err": {},
|
|
2448
|
-
"uuid": "
|
|
2449
|
-
"parentUUID": "
|
|
2448
|
+
"uuid": "2259a9fb-16fe-44d3-a2be-a50096115415",
|
|
2449
|
+
"parentUUID": "d21b0318-8a2e-4891-b454-55863c29cc65",
|
|
2450
2450
|
"isHook": false,
|
|
2451
2451
|
"skipped": false
|
|
2452
2452
|
}
|
|
2453
2453
|
],
|
|
2454
2454
|
"suites": [],
|
|
2455
2455
|
"passes": [
|
|
2456
|
-
"
|
|
2456
|
+
"2259a9fb-16fe-44d3-a2be-a50096115415"
|
|
2457
2457
|
],
|
|
2458
2458
|
"failures": [],
|
|
2459
2459
|
"pending": [],
|
|
@@ -2464,7 +2464,7 @@
|
|
|
2464
2464
|
"_timeout": 2000
|
|
2465
2465
|
},
|
|
2466
2466
|
{
|
|
2467
|
-
"uuid": "
|
|
2467
|
+
"uuid": "56444919-9908-4820-bc43-971b125b7619",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2486
2486
|
"err": {},
|
|
2487
|
-
"uuid": "
|
|
2488
|
-
"parentUUID": "
|
|
2487
|
+
"uuid": "e159aee4-030a-4a77-99cb-031228fcddfd",
|
|
2488
|
+
"parentUUID": "56444919-9908-4820-bc43-971b125b7619",
|
|
2489
2489
|
"isHook": false,
|
|
2490
2490
|
"skipped": false
|
|
2491
2491
|
}
|
|
2492
2492
|
],
|
|
2493
2493
|
"suites": [],
|
|
2494
2494
|
"passes": [
|
|
2495
|
-
"
|
|
2495
|
+
"e159aee4-030a-4a77-99cb-031228fcddfd"
|
|
2496
2496
|
],
|
|
2497
2497
|
"failures": [],
|
|
2498
2498
|
"pending": [],
|
|
@@ -2503,7 +2503,7 @@
|
|
|
2503
2503
|
"_timeout": 2000
|
|
2504
2504
|
},
|
|
2505
2505
|
{
|
|
2506
|
-
"uuid": "
|
|
2506
|
+
"uuid": "1cfdfd5e-4fe8-4b04-9bbd-81cc564a53e3",
|
|
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":
|
|
2517
|
+
"duration": 2,
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2525
2525
|
"err": {},
|
|
2526
|
-
"uuid": "
|
|
2527
|
-
"parentUUID": "
|
|
2526
|
+
"uuid": "3a8375df-b748-475b-b8bb-5ddabd560cce",
|
|
2527
|
+
"parentUUID": "1cfdfd5e-4fe8-4b04-9bbd-81cc564a53e3",
|
|
2528
2528
|
"isHook": false,
|
|
2529
2529
|
"skipped": false
|
|
2530
2530
|
}
|
|
2531
2531
|
],
|
|
2532
2532
|
"suites": [],
|
|
2533
2533
|
"passes": [
|
|
2534
|
-
"
|
|
2534
|
+
"3a8375df-b748-475b-b8bb-5ddabd560cce"
|
|
2535
2535
|
],
|
|
2536
2536
|
"failures": [],
|
|
2537
2537
|
"pending": [],
|
|
2538
2538
|
"skipped": [],
|
|
2539
|
-
"duration":
|
|
2539
|
+
"duration": 2,
|
|
2540
2540
|
"root": false,
|
|
2541
2541
|
"rootEmpty": false,
|
|
2542
2542
|
"_timeout": 2000
|
|
2543
2543
|
},
|
|
2544
2544
|
{
|
|
2545
|
-
"uuid": "
|
|
2545
|
+
"uuid": "368ec7a5-3c0e-46cf-8f1f-892dbd095959",
|
|
2546
2546
|
"title": "select()",
|
|
2547
2547
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2548
2548
|
"file": "/test/device.ts",
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
"title": "should work",
|
|
2554
2554
|
"fullTitle": "NodePyATVDevice select() should work",
|
|
2555
2555
|
"timedOut": false,
|
|
2556
|
-
"duration":
|
|
2556
|
+
"duration": 1,
|
|
2557
2557
|
"state": "passed",
|
|
2558
2558
|
"speed": "fast",
|
|
2559
2559
|
"pass": true,
|
|
@@ -2562,26 +2562,26 @@
|
|
|
2562
2562
|
"context": null,
|
|
2563
2563
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2564
2564
|
"err": {},
|
|
2565
|
-
"uuid": "
|
|
2566
|
-
"parentUUID": "
|
|
2565
|
+
"uuid": "4cebacca-c884-4b0c-a578-88acb1d796f3",
|
|
2566
|
+
"parentUUID": "368ec7a5-3c0e-46cf-8f1f-892dbd095959",
|
|
2567
2567
|
"isHook": false,
|
|
2568
2568
|
"skipped": false
|
|
2569
2569
|
}
|
|
2570
2570
|
],
|
|
2571
2571
|
"suites": [],
|
|
2572
2572
|
"passes": [
|
|
2573
|
-
"
|
|
2573
|
+
"4cebacca-c884-4b0c-a578-88acb1d796f3"
|
|
2574
2574
|
],
|
|
2575
2575
|
"failures": [],
|
|
2576
2576
|
"pending": [],
|
|
2577
2577
|
"skipped": [],
|
|
2578
|
-
"duration":
|
|
2578
|
+
"duration": 1,
|
|
2579
2579
|
"root": false,
|
|
2580
2580
|
"rootEmpty": false,
|
|
2581
2581
|
"_timeout": 2000
|
|
2582
2582
|
},
|
|
2583
2583
|
{
|
|
2584
|
-
"uuid": "
|
|
2584
|
+
"uuid": "b77944f6-72b8-4067-9f5d-e934bb15f9e0",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2603
2603
|
"err": {},
|
|
2604
|
-
"uuid": "
|
|
2605
|
-
"parentUUID": "
|
|
2604
|
+
"uuid": "dc8878ce-2c63-4800-a4d5-5f1f468aedd4",
|
|
2605
|
+
"parentUUID": "b77944f6-72b8-4067-9f5d-e934bb15f9e0",
|
|
2606
2606
|
"isHook": false,
|
|
2607
2607
|
"skipped": false
|
|
2608
2608
|
}
|
|
2609
2609
|
],
|
|
2610
2610
|
"suites": [],
|
|
2611
2611
|
"passes": [
|
|
2612
|
-
"
|
|
2612
|
+
"dc8878ce-2c63-4800-a4d5-5f1f468aedd4"
|
|
2613
2613
|
],
|
|
2614
2614
|
"failures": [],
|
|
2615
2615
|
"pending": [],
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
"_timeout": 2000
|
|
2621
2621
|
},
|
|
2622
2622
|
{
|
|
2623
|
-
"uuid": "
|
|
2623
|
+
"uuid": "ee1e0f3d-e602-454e-8e50-b1eda2d6ba5b",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2642
2642
|
"err": {},
|
|
2643
|
-
"uuid": "
|
|
2644
|
-
"parentUUID": "
|
|
2643
|
+
"uuid": "b48415c8-8f21-4ea2-8ba0-5d53d6192273",
|
|
2644
|
+
"parentUUID": "ee1e0f3d-e602-454e-8e50-b1eda2d6ba5b",
|
|
2645
2645
|
"isHook": false,
|
|
2646
2646
|
"skipped": false
|
|
2647
2647
|
}
|
|
2648
2648
|
],
|
|
2649
2649
|
"suites": [],
|
|
2650
2650
|
"passes": [
|
|
2651
|
-
"
|
|
2651
|
+
"b48415c8-8f21-4ea2-8ba0-5d53d6192273"
|
|
2652
2652
|
],
|
|
2653
2653
|
"failures": [],
|
|
2654
2654
|
"pending": [],
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
"_timeout": 2000
|
|
2660
2660
|
},
|
|
2661
2661
|
{
|
|
2662
|
-
"uuid": "
|
|
2662
|
+
"uuid": "7f3b2e02-a1b7-48cb-a311-d1c97054b2f0",
|
|
2663
2663
|
"title": "stop()",
|
|
2664
2664
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2665
2665
|
"file": "/test/device.ts",
|
|
@@ -2679,15 +2679,15 @@
|
|
|
2679
2679
|
"context": null,
|
|
2680
2680
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2681
2681
|
"err": {},
|
|
2682
|
-
"uuid": "
|
|
2683
|
-
"parentUUID": "
|
|
2682
|
+
"uuid": "80c74629-4924-41ea-b7af-60a7f5ee1790",
|
|
2683
|
+
"parentUUID": "7f3b2e02-a1b7-48cb-a311-d1c97054b2f0",
|
|
2684
2684
|
"isHook": false,
|
|
2685
2685
|
"skipped": false
|
|
2686
2686
|
}
|
|
2687
2687
|
],
|
|
2688
2688
|
"suites": [],
|
|
2689
2689
|
"passes": [
|
|
2690
|
-
"
|
|
2690
|
+
"80c74629-4924-41ea-b7af-60a7f5ee1790"
|
|
2691
2691
|
],
|
|
2692
2692
|
"failures": [],
|
|
2693
2693
|
"pending": [],
|
|
@@ -2698,7 +2698,7 @@
|
|
|
2698
2698
|
"_timeout": 2000
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
2701
|
-
"uuid": "
|
|
2701
|
+
"uuid": "7febd4cc-7b93-4616-83ed-c2ed8ad0b13d",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2720
2720
|
"err": {},
|
|
2721
|
-
"uuid": "
|
|
2722
|
-
"parentUUID": "
|
|
2721
|
+
"uuid": "26ef412e-d353-49a9-a336-b607f6e2e9f3",
|
|
2722
|
+
"parentUUID": "7febd4cc-7b93-4616-83ed-c2ed8ad0b13d",
|
|
2723
2723
|
"isHook": false,
|
|
2724
2724
|
"skipped": false
|
|
2725
2725
|
}
|
|
2726
2726
|
],
|
|
2727
2727
|
"suites": [],
|
|
2728
2728
|
"passes": [
|
|
2729
|
-
"
|
|
2729
|
+
"26ef412e-d353-49a9-a336-b607f6e2e9f3"
|
|
2730
2730
|
],
|
|
2731
2731
|
"failures": [],
|
|
2732
2732
|
"pending": [],
|
|
@@ -2737,7 +2737,7 @@
|
|
|
2737
2737
|
"_timeout": 2000
|
|
2738
2738
|
},
|
|
2739
2739
|
{
|
|
2740
|
-
"uuid": "
|
|
2740
|
+
"uuid": "e42128f7-e510-4c5f-9e54-169094fd63b0",
|
|
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":
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2759
2759
|
"err": {},
|
|
2760
|
-
"uuid": "
|
|
2761
|
-
"parentUUID": "
|
|
2760
|
+
"uuid": "271d59db-2e92-4d0c-a747-1ae9b5395192",
|
|
2761
|
+
"parentUUID": "e42128f7-e510-4c5f-9e54-169094fd63b0",
|
|
2762
2762
|
"isHook": false,
|
|
2763
2763
|
"skipped": false
|
|
2764
2764
|
}
|
|
2765
2765
|
],
|
|
2766
2766
|
"suites": [],
|
|
2767
2767
|
"passes": [
|
|
2768
|
-
"
|
|
2768
|
+
"271d59db-2e92-4d0c-a747-1ae9b5395192"
|
|
2769
2769
|
],
|
|
2770
2770
|
"failures": [],
|
|
2771
2771
|
"pending": [],
|
|
2772
2772
|
"skipped": [],
|
|
2773
|
-
"duration":
|
|
2773
|
+
"duration": 1,
|
|
2774
2774
|
"root": false,
|
|
2775
2775
|
"rootEmpty": false,
|
|
2776
2776
|
"_timeout": 2000
|
|
2777
2777
|
},
|
|
2778
2778
|
{
|
|
2779
|
-
"uuid": "
|
|
2779
|
+
"uuid": "7be49e32-460e-4483-986c-564f81cab294",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2798
2798
|
"err": {},
|
|
2799
|
-
"uuid": "
|
|
2800
|
-
"parentUUID": "
|
|
2799
|
+
"uuid": "08f8a8f8-c1f8-4b6a-a39c-084ccd79d930",
|
|
2800
|
+
"parentUUID": "7be49e32-460e-4483-986c-564f81cab294",
|
|
2801
2801
|
"isHook": false,
|
|
2802
2802
|
"skipped": false
|
|
2803
2803
|
}
|
|
2804
2804
|
],
|
|
2805
2805
|
"suites": [],
|
|
2806
2806
|
"passes": [
|
|
2807
|
-
"
|
|
2807
|
+
"08f8a8f8-c1f8-4b6a-a39c-084ccd79d930"
|
|
2808
2808
|
],
|
|
2809
2809
|
"failures": [],
|
|
2810
2810
|
"pending": [],
|
|
@@ -2815,7 +2815,7 @@
|
|
|
2815
2815
|
"_timeout": 2000
|
|
2816
2816
|
},
|
|
2817
2817
|
{
|
|
2818
|
-
"uuid": "
|
|
2818
|
+
"uuid": "3925e59f-af05-4dd4-b31c-f778e4b605ab",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2837
2837
|
"err": {},
|
|
2838
|
-
"uuid": "
|
|
2839
|
-
"parentUUID": "
|
|
2838
|
+
"uuid": "099dd1f3-c577-42be-89f6-af0df93d9529",
|
|
2839
|
+
"parentUUID": "3925e59f-af05-4dd4-b31c-f778e4b605ab",
|
|
2840
2840
|
"isHook": false,
|
|
2841
2841
|
"skipped": false
|
|
2842
2842
|
}
|
|
2843
2843
|
],
|
|
2844
2844
|
"suites": [],
|
|
2845
2845
|
"passes": [
|
|
2846
|
-
"
|
|
2846
|
+
"099dd1f3-c577-42be-89f6-af0df93d9529"
|
|
2847
2847
|
],
|
|
2848
2848
|
"failures": [],
|
|
2849
2849
|
"pending": [],
|
|
@@ -2854,7 +2854,7 @@
|
|
|
2854
2854
|
"_timeout": 2000
|
|
2855
2855
|
},
|
|
2856
2856
|
{
|
|
2857
|
-
"uuid": "
|
|
2857
|
+
"uuid": "1f0c7d97-c802-4ef8-9035-079439368e23",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2876
2876
|
"err": {},
|
|
2877
|
-
"uuid": "
|
|
2878
|
-
"parentUUID": "
|
|
2877
|
+
"uuid": "348a68f8-542d-42dd-8979-3ba99a820efa",
|
|
2878
|
+
"parentUUID": "1f0c7d97-c802-4ef8-9035-079439368e23",
|
|
2879
2879
|
"isHook": false,
|
|
2880
2880
|
"skipped": false
|
|
2881
2881
|
}
|
|
2882
2882
|
],
|
|
2883
2883
|
"suites": [],
|
|
2884
2884
|
"passes": [
|
|
2885
|
-
"
|
|
2885
|
+
"348a68f8-542d-42dd-8979-3ba99a820efa"
|
|
2886
2886
|
],
|
|
2887
2887
|
"failures": [],
|
|
2888
2888
|
"pending": [],
|
|
@@ -2893,7 +2893,7 @@
|
|
|
2893
2893
|
"_timeout": 2000
|
|
2894
2894
|
},
|
|
2895
2895
|
{
|
|
2896
|
-
"uuid": "
|
|
2896
|
+
"uuid": "80f076fb-c13a-4ac8-9c5b-8495b124af2e",
|
|
2897
2897
|
"title": "wakeup()",
|
|
2898
2898
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2899
2899
|
"file": "/test/device.ts",
|
|
@@ -2913,15 +2913,15 @@
|
|
|
2913
2913
|
"context": null,
|
|
2914
2914
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2915
2915
|
"err": {},
|
|
2916
|
-
"uuid": "
|
|
2917
|
-
"parentUUID": "
|
|
2916
|
+
"uuid": "19d5234c-9a60-4457-a35e-90314f576484",
|
|
2917
|
+
"parentUUID": "80f076fb-c13a-4ac8-9c5b-8495b124af2e",
|
|
2918
2918
|
"isHook": false,
|
|
2919
2919
|
"skipped": false
|
|
2920
2920
|
}
|
|
2921
2921
|
],
|
|
2922
2922
|
"suites": [],
|
|
2923
2923
|
"passes": [
|
|
2924
|
-
"
|
|
2924
|
+
"19d5234c-9a60-4457-a35e-90314f576484"
|
|
2925
2925
|
],
|
|
2926
2926
|
"failures": [],
|
|
2927
2927
|
"pending": [],
|
|
@@ -2932,7 +2932,7 @@
|
|
|
2932
2932
|
"_timeout": 2000
|
|
2933
2933
|
},
|
|
2934
2934
|
{
|
|
2935
|
-
"uuid": "
|
|
2935
|
+
"uuid": "990b4bd5-2c3c-48c6-bc2f-7fceeea73991",
|
|
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 device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2954
2954
|
"err": {},
|
|
2955
|
-
"uuid": "
|
|
2956
|
-
"parentUUID": "
|
|
2955
|
+
"uuid": "b94d18bd-0cde-43d9-a600-0fb9583a9b92",
|
|
2956
|
+
"parentUUID": "990b4bd5-2c3c-48c6-bc2f-7fceeea73991",
|
|
2957
2957
|
"isHook": false,
|
|
2958
2958
|
"skipped": false
|
|
2959
2959
|
}
|
|
2960
2960
|
],
|
|
2961
2961
|
"suites": [],
|
|
2962
2962
|
"passes": [
|
|
2963
|
-
"
|
|
2963
|
+
"b94d18bd-0cde-43d9-a600-0fb9583a9b92"
|
|
2964
2964
|
],
|
|
2965
2965
|
"failures": [],
|
|
2966
2966
|
"pending": [],
|
|
@@ -2971,7 +2971,7 @@
|
|
|
2971
2971
|
"_timeout": 2000
|
|
2972
2972
|
},
|
|
2973
2973
|
{
|
|
2974
|
-
"uuid": "
|
|
2974
|
+
"uuid": "7984c29a-f47d-4179-929c-e34c8c41acbc",
|
|
2975
2975
|
"title": "turnOn()",
|
|
2976
2976
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2977
2977
|
"file": "/test/device.ts",
|
|
@@ -2982,7 +2982,7 @@
|
|
|
2982
2982
|
"title": "should work",
|
|
2983
2983
|
"fullTitle": "NodePyATVDevice turnOn() should work",
|
|
2984
2984
|
"timedOut": false,
|
|
2985
|
-
"duration":
|
|
2985
|
+
"duration": 2,
|
|
2986
2986
|
"state": "passed",
|
|
2987
2987
|
"speed": "fast",
|
|
2988
2988
|
"pass": true,
|
|
@@ -2991,20 +2991,20 @@
|
|
|
2991
2991
|
"context": null,
|
|
2992
2992
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2993
2993
|
"err": {},
|
|
2994
|
-
"uuid": "
|
|
2995
|
-
"parentUUID": "
|
|
2994
|
+
"uuid": "f6164e12-4102-4557-b344-9e72a3437adf",
|
|
2995
|
+
"parentUUID": "7984c29a-f47d-4179-929c-e34c8c41acbc",
|
|
2996
2996
|
"isHook": false,
|
|
2997
2997
|
"skipped": false
|
|
2998
2998
|
}
|
|
2999
2999
|
],
|
|
3000
3000
|
"suites": [],
|
|
3001
3001
|
"passes": [
|
|
3002
|
-
"
|
|
3002
|
+
"f6164e12-4102-4557-b344-9e72a3437adf"
|
|
3003
3003
|
],
|
|
3004
3004
|
"failures": [],
|
|
3005
3005
|
"pending": [],
|
|
3006
3006
|
"skipped": [],
|
|
3007
|
-
"duration":
|
|
3007
|
+
"duration": 2,
|
|
3008
3008
|
"root": false,
|
|
3009
3009
|
"rootEmpty": false,
|
|
3010
3010
|
"_timeout": 2000
|
|
@@ -3020,7 +3020,7 @@
|
|
|
3020
3020
|
"_timeout": 2000
|
|
3021
3021
|
},
|
|
3022
3022
|
{
|
|
3023
|
-
"uuid": "
|
|
3023
|
+
"uuid": "c6b82062-fb32-4888-a75d-1a070767ee1b",
|
|
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": "
|
|
3032
|
+
"uuid": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
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":
|
|
3043
|
+
"duration": 469,
|
|
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 index_1.default.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert_1.default.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert_1.default.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
3051
3051
|
"err": {},
|
|
3052
|
-
"uuid": "
|
|
3053
|
-
"parentUUID": "
|
|
3052
|
+
"uuid": "946d9966-1bc9-4d47-8c93-0a5507d58b9f",
|
|
3053
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3054
3054
|
"isHook": false,
|
|
3055
3055
|
"skipped": false
|
|
3056
3056
|
},
|
|
@@ -3058,7 +3058,7 @@
|
|
|
3058
3058
|
"title": "should return the pyatv version",
|
|
3059
3059
|
"fullTitle": "NodePyATVInstance static version() should return the pyatv version",
|
|
3060
3060
|
"timedOut": false,
|
|
3061
|
-
"duration":
|
|
3061
|
+
"duration": 2,
|
|
3062
3062
|
"state": "passed",
|
|
3063
3063
|
"speed": "fast",
|
|
3064
3064
|
"pass": true,
|
|
@@ -3067,8 +3067,8 @@
|
|
|
3067
3067
|
"context": null,
|
|
3068
3068
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert_1.default.ok(result.pyatv);\n assert_1.default.strictEqual(result.pyatv, '0.7.4');\n});",
|
|
3069
3069
|
"err": {},
|
|
3070
|
-
"uuid": "
|
|
3071
|
-
"parentUUID": "
|
|
3070
|
+
"uuid": "5af90682-4bfd-4624-ba45-8a865ec83765",
|
|
3071
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3072
3072
|
"isHook": false,
|
|
3073
3073
|
"skipped": false
|
|
3074
3074
|
},
|
|
@@ -3076,7 +3076,7 @@
|
|
|
3076
3076
|
"title": "should return the module version",
|
|
3077
3077
|
"fullTitle": "NodePyATVInstance static version() should return the module version",
|
|
3078
3078
|
"timedOut": false,
|
|
3079
|
-
"duration":
|
|
3079
|
+
"duration": 2,
|
|
3080
3080
|
"state": "passed",
|
|
3081
3081
|
"speed": "fast",
|
|
3082
3082
|
"pass": true,
|
|
@@ -3085,8 +3085,8 @@
|
|
|
3085
3085
|
"context": null,
|
|
3086
3086
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
3087
3087
|
"err": {},
|
|
3088
|
-
"uuid": "
|
|
3089
|
-
"parentUUID": "
|
|
3088
|
+
"uuid": "e868ba59-4ece-4dbf-a2b4-7dc7e003b6c1",
|
|
3089
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
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 index_1.default.version({\n atvremotePath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
|
|
3105
3105
|
"err": {},
|
|
3106
|
-
"uuid": "
|
|
3107
|
-
"parentUUID": "
|
|
3106
|
+
"uuid": "f1fe5d95-c68d-4c25-94f9-57ba97764311",
|
|
3107
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3108
3108
|
"isHook": false,
|
|
3109
3109
|
"skipped": false
|
|
3110
3110
|
},
|
|
@@ -3121,8 +3121,8 @@
|
|
|
3121
3121
|
"context": null,
|
|
3122
3122
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3123
3123
|
"err": {},
|
|
3124
|
-
"uuid": "
|
|
3125
|
-
"parentUUID": "
|
|
3124
|
+
"uuid": "53ba81c1-fc6a-42b7-ac10-b0ffc3da4519",
|
|
3125
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3126
3126
|
"isHook": false,
|
|
3127
3127
|
"skipped": false
|
|
3128
3128
|
},
|
|
@@ -3139,8 +3139,8 @@
|
|
|
3139
3139
|
"context": null,
|
|
3140
3140
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: () => { },\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3141
3141
|
"err": {},
|
|
3142
|
-
"uuid": "
|
|
3143
|
-
"parentUUID": "
|
|
3142
|
+
"uuid": "34ec124f-70ab-446e-bf76-297b5e3a9db8",
|
|
3143
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
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":
|
|
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 index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3159
3159
|
"err": {},
|
|
3160
|
-
"uuid": "
|
|
3161
|
-
"parentUUID": "
|
|
3160
|
+
"uuid": "f4081545-d699-4503-baa0-c155e0639566",
|
|
3161
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
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":
|
|
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 index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3177
3177
|
"err": {},
|
|
3178
|
-
"uuid": "
|
|
3179
|
-
"parentUUID": "
|
|
3178
|
+
"uuid": "aed613f1-bb1b-427a-aa3b-2c83c835c670",
|
|
3179
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3180
3180
|
"isHook": false,
|
|
3181
3181
|
"skipped": false
|
|
3182
3182
|
},
|
|
@@ -3184,7 +3184,7 @@
|
|
|
3184
3184
|
"title": "should return null on invalid pyatv version",
|
|
3185
3185
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid pyatv version",
|
|
3186
3186
|
"timedOut": false,
|
|
3187
|
-
"duration":
|
|
3187
|
+
"duration": 0,
|
|
3188
3188
|
"state": "passed",
|
|
3189
3189
|
"speed": "fast",
|
|
3190
3190
|
"pass": true,
|
|
@@ -3193,8 +3193,8 @@
|
|
|
3193
3193
|
"context": null,
|
|
3194
3194
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3195
3195
|
"err": {},
|
|
3196
|
-
"uuid": "
|
|
3197
|
-
"parentUUID": "
|
|
3196
|
+
"uuid": "5c31fbf1-5453-4cfe-b1be-423815ce143f",
|
|
3197
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3198
3198
|
"isHook": false,
|
|
3199
3199
|
"skipped": false
|
|
3200
3200
|
},
|
|
@@ -3202,7 +3202,7 @@
|
|
|
3202
3202
|
"title": "should return null on empty module version",
|
|
3203
3203
|
"fullTitle": "NodePyATVInstance static version() should return null on empty module version",
|
|
3204
3204
|
"timedOut": false,
|
|
3205
|
-
"duration":
|
|
3205
|
+
"duration": 2,
|
|
3206
3206
|
"state": "passed",
|
|
3207
3207
|
"speed": "fast",
|
|
3208
3208
|
"pass": true,
|
|
@@ -3211,8 +3211,8 @@
|
|
|
3211
3211
|
"context": null,
|
|
3212
3212
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = {};\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3213
3213
|
"err": {},
|
|
3214
|
-
"uuid": "
|
|
3215
|
-
"parentUUID": "
|
|
3214
|
+
"uuid": "cf2dbd14-f06c-469e-b4e0-0c59cc093838",
|
|
3215
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3216
3216
|
"isHook": false,
|
|
3217
3217
|
"skipped": false
|
|
3218
3218
|
},
|
|
@@ -3220,7 +3220,7 @@
|
|
|
3220
3220
|
"title": "should return null on invalid module version",
|
|
3221
3221
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid module version",
|
|
3222
3222
|
"timedOut": false,
|
|
3223
|
-
"duration":
|
|
3223
|
+
"duration": 1,
|
|
3224
3224
|
"state": "passed",
|
|
3225
3225
|
"speed": "fast",
|
|
3226
3226
|
"pass": true,
|
|
@@ -3229,36 +3229,36 @@
|
|
|
3229
3229
|
"context": null,
|
|
3230
3230
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = { version: 42 };\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3231
3231
|
"err": {},
|
|
3232
|
-
"uuid": "
|
|
3233
|
-
"parentUUID": "
|
|
3232
|
+
"uuid": "ff3361db-b0c0-4da9-8b6c-8fe52b391bb8",
|
|
3233
|
+
"parentUUID": "b673ea61-9b1f-4585-915e-4b1666ab64de",
|
|
3234
3234
|
"isHook": false,
|
|
3235
3235
|
"skipped": false
|
|
3236
3236
|
}
|
|
3237
3237
|
],
|
|
3238
3238
|
"suites": [],
|
|
3239
3239
|
"passes": [
|
|
3240
|
-
"
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3243
|
-
"
|
|
3244
|
-
"
|
|
3245
|
-
"
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3248
|
-
"
|
|
3249
|
-
"
|
|
3250
|
-
"
|
|
3240
|
+
"946d9966-1bc9-4d47-8c93-0a5507d58b9f",
|
|
3241
|
+
"5af90682-4bfd-4624-ba45-8a865ec83765",
|
|
3242
|
+
"e868ba59-4ece-4dbf-a2b4-7dc7e003b6c1",
|
|
3243
|
+
"f1fe5d95-c68d-4c25-94f9-57ba97764311",
|
|
3244
|
+
"53ba81c1-fc6a-42b7-ac10-b0ffc3da4519",
|
|
3245
|
+
"34ec124f-70ab-446e-bf76-297b5e3a9db8",
|
|
3246
|
+
"f4081545-d699-4503-baa0-c155e0639566",
|
|
3247
|
+
"aed613f1-bb1b-427a-aa3b-2c83c835c670",
|
|
3248
|
+
"5c31fbf1-5453-4cfe-b1be-423815ce143f",
|
|
3249
|
+
"cf2dbd14-f06c-469e-b4e0-0c59cc093838",
|
|
3250
|
+
"ff3361db-b0c0-4da9-8b6c-8fe52b391bb8"
|
|
3251
3251
|
],
|
|
3252
3252
|
"failures": [],
|
|
3253
3253
|
"pending": [],
|
|
3254
3254
|
"skipped": [],
|
|
3255
|
-
"duration":
|
|
3255
|
+
"duration": 484,
|
|
3256
3256
|
"root": false,
|
|
3257
3257
|
"rootEmpty": false,
|
|
3258
3258
|
"_timeout": 2000
|
|
3259
3259
|
},
|
|
3260
3260
|
{
|
|
3261
|
-
"uuid": "
|
|
3261
|
+
"uuid": "4bfe1949-0f5a-40c1-af81-8c0616df6e46",
|
|
3262
3262
|
"title": "static check()",
|
|
3263
3263
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3264
3264
|
"file": "/test/instance.ts",
|
|
@@ -3269,7 +3269,7 @@
|
|
|
3269
3269
|
"title": "should resolve in test environment [L]",
|
|
3270
3270
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3271
3271
|
"timedOut": false,
|
|
3272
|
-
"duration":
|
|
3272
|
+
"duration": 5837,
|
|
3273
3273
|
"state": "passed",
|
|
3274
3274
|
"speed": "slow",
|
|
3275
3275
|
"pass": true,
|
|
@@ -3278,8 +3278,8 @@
|
|
|
3278
3278
|
"context": null,
|
|
3279
3279
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield index_1.default.check();\n});",
|
|
3280
3280
|
"err": {},
|
|
3281
|
-
"uuid": "
|
|
3282
|
-
"parentUUID": "
|
|
3281
|
+
"uuid": "636d7bc5-baa7-4f05-b946-c9ea89079070",
|
|
3282
|
+
"parentUUID": "4bfe1949-0f5a-40c1-af81-8c0616df6e46",
|
|
3283
3283
|
"isHook": false,
|
|
3284
3284
|
"skipped": false
|
|
3285
3285
|
},
|
|
@@ -3287,7 +3287,7 @@
|
|
|
3287
3287
|
"title": "should return nice error message if pyatv was not found",
|
|
3288
3288
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if pyatv was not found",
|
|
3289
3289
|
"timedOut": false,
|
|
3290
|
-
"duration":
|
|
3290
|
+
"duration": 1,
|
|
3291
3291
|
"state": "passed",
|
|
3292
3292
|
"speed": "fast",
|
|
3293
3293
|
"pass": true,
|
|
@@ -3296,8 +3296,8 @@
|
|
|
3296
3296
|
"context": null,
|
|
3297
3297
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3298
3298
|
"err": {},
|
|
3299
|
-
"uuid": "
|
|
3300
|
-
"parentUUID": "
|
|
3299
|
+
"uuid": "0e4f79c0-a8b1-44ca-9b1e-23a7ff1af2d4",
|
|
3300
|
+
"parentUUID": "4bfe1949-0f5a-40c1-af81-8c0616df6e46",
|
|
3301
3301
|
"isHook": false,
|
|
3302
3302
|
"skipped": false
|
|
3303
3303
|
},
|
|
@@ -3314,8 +3314,8 @@
|
|
|
3314
3314
|
"context": null,
|
|
3315
3315
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.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});",
|
|
3316
3316
|
"err": {},
|
|
3317
|
-
"uuid": "
|
|
3318
|
-
"parentUUID": "
|
|
3317
|
+
"uuid": "fb829312-bb2a-4991-9328-bea8148cf5f2",
|
|
3318
|
+
"parentUUID": "4bfe1949-0f5a-40c1-af81-8c0616df6e46",
|
|
3319
3319
|
"isHook": false,
|
|
3320
3320
|
"skipped": false
|
|
3321
3321
|
},
|
|
@@ -3332,29 +3332,29 @@
|
|
|
3332
3332
|
"context": null,
|
|
3333
3333
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.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});",
|
|
3334
3334
|
"err": {},
|
|
3335
|
-
"uuid": "
|
|
3336
|
-
"parentUUID": "
|
|
3335
|
+
"uuid": "524b6c42-e8bc-48a7-b6ac-3e9469433310",
|
|
3336
|
+
"parentUUID": "4bfe1949-0f5a-40c1-af81-8c0616df6e46",
|
|
3337
3337
|
"isHook": false,
|
|
3338
3338
|
"skipped": false
|
|
3339
3339
|
}
|
|
3340
3340
|
],
|
|
3341
3341
|
"suites": [],
|
|
3342
3342
|
"passes": [
|
|
3343
|
-
"
|
|
3344
|
-
"
|
|
3345
|
-
"
|
|
3346
|
-
"
|
|
3343
|
+
"636d7bc5-baa7-4f05-b946-c9ea89079070",
|
|
3344
|
+
"0e4f79c0-a8b1-44ca-9b1e-23a7ff1af2d4",
|
|
3345
|
+
"fb829312-bb2a-4991-9328-bea8148cf5f2",
|
|
3346
|
+
"524b6c42-e8bc-48a7-b6ac-3e9469433310"
|
|
3347
3347
|
],
|
|
3348
3348
|
"failures": [],
|
|
3349
3349
|
"pending": [],
|
|
3350
3350
|
"skipped": [],
|
|
3351
|
-
"duration":
|
|
3351
|
+
"duration": 5843,
|
|
3352
3352
|
"root": false,
|
|
3353
3353
|
"rootEmpty": false,
|
|
3354
3354
|
"_timeout": 2000
|
|
3355
3355
|
},
|
|
3356
3356
|
{
|
|
3357
|
-
"uuid": "
|
|
3357
|
+
"uuid": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3358
3358
|
"title": "static find()",
|
|
3359
3359
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3360
3360
|
"file": "/test/instance.ts",
|
|
@@ -3365,7 +3365,7 @@
|
|
|
3365
3365
|
"title": "should work [L]",
|
|
3366
3366
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3367
3367
|
"timedOut": false,
|
|
3368
|
-
"duration":
|
|
3368
|
+
"duration": 5416,
|
|
3369
3369
|
"state": "passed",
|
|
3370
3370
|
"speed": "slow",
|
|
3371
3371
|
"pass": true,
|
|
@@ -3374,8 +3374,8 @@
|
|
|
3374
3374
|
"context": null,
|
|
3375
3375
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield index_1.default.find();\n assert_1.default.ok(Array.isArray(result));\n});",
|
|
3376
3376
|
"err": {},
|
|
3377
|
-
"uuid": "
|
|
3378
|
-
"parentUUID": "
|
|
3377
|
+
"uuid": "9063f99f-6908-4a0f-ac17-72dff03ccd3b",
|
|
3378
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3379
3379
|
"isHook": false,
|
|
3380
3380
|
"skipped": false
|
|
3381
3381
|
},
|
|
@@ -3392,8 +3392,8 @@
|
|
|
3392
3392
|
"context": null,
|
|
3393
3393
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n atvscriptPath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.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});",
|
|
3394
3394
|
"err": {},
|
|
3395
|
-
"uuid": "
|
|
3396
|
-
"parentUUID": "
|
|
3395
|
+
"uuid": "01fc6848-a527-48ef-961a-b0c86d60813f",
|
|
3396
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3397
3397
|
"isHook": false,
|
|
3398
3398
|
"skipped": false
|
|
3399
3399
|
},
|
|
@@ -3410,8 +3410,8 @@
|
|
|
3410
3410
|
"context": null,
|
|
3411
3411
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
|
|
3412
3412
|
"err": {},
|
|
3413
|
-
"uuid": "
|
|
3414
|
-
"parentUUID": "
|
|
3413
|
+
"uuid": "35e5fb77-c4d4-4741-93a4-26b12b33cae2",
|
|
3414
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3415
3415
|
"isHook": false,
|
|
3416
3416
|
"skipped": false
|
|
3417
3417
|
},
|
|
@@ -3419,7 +3419,7 @@
|
|
|
3419
3419
|
"title": "should throw error on error",
|
|
3420
3420
|
"fullTitle": "NodePyATVInstance static find() should throw error on error",
|
|
3421
3421
|
"timedOut": false,
|
|
3422
|
-
"duration":
|
|
3422
|
+
"duration": 1,
|
|
3423
3423
|
"state": "passed",
|
|
3424
3424
|
"speed": "fast",
|
|
3425
3425
|
"pass": true,
|
|
@@ -3428,8 +3428,8 @@
|
|
|
3428
3428
|
"context": null,
|
|
3429
3429
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
|
|
3430
3430
|
"err": {},
|
|
3431
|
-
"uuid": "
|
|
3432
|
-
"parentUUID": "
|
|
3431
|
+
"uuid": "cdbe16a1-3d1f-4bfc-9e11-4cfb2ea7e6de",
|
|
3432
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3433
3433
|
"isHook": false,
|
|
3434
3434
|
"skipped": false
|
|
3435
3435
|
},
|
|
@@ -3446,8 +3446,8 @@
|
|
|
3446
3446
|
"context": null,
|
|
3447
3447
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.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});",
|
|
3448
3448
|
"err": {},
|
|
3449
|
-
"uuid": "
|
|
3450
|
-
"parentUUID": "
|
|
3449
|
+
"uuid": "1ad6ef6d-5399-418d-98ea-9dde9a866198",
|
|
3450
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3451
3451
|
"isHook": false,
|
|
3452
3452
|
"skipped": false
|
|
3453
3453
|
},
|
|
@@ -3455,7 +3455,7 @@
|
|
|
3455
3455
|
"title": "should throw error if atvscript result is not successfull",
|
|
3456
3456
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
|
|
3457
3457
|
"timedOut": false,
|
|
3458
|
-
"duration":
|
|
3458
|
+
"duration": 1,
|
|
3459
3459
|
"state": "passed",
|
|
3460
3460
|
"speed": "fast",
|
|
3461
3461
|
"pass": true,
|
|
@@ -3464,8 +3464,8 @@
|
|
|
3464
3464
|
"context": null,
|
|
3465
3465
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3466
3466
|
"err": {},
|
|
3467
|
-
"uuid": "
|
|
3468
|
-
"parentUUID": "
|
|
3467
|
+
"uuid": "d4a68425-45fa-4487-a419-7f0e8667b940",
|
|
3468
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3469
3469
|
"isHook": false,
|
|
3470
3470
|
"skipped": false
|
|
3471
3471
|
},
|
|
@@ -3473,7 +3473,7 @@
|
|
|
3473
3473
|
"title": "should throw error if atvscript result is without device array",
|
|
3474
3474
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3475
3475
|
"timedOut": false,
|
|
3476
|
-
"duration":
|
|
3476
|
+
"duration": 1,
|
|
3477
3477
|
"state": "passed",
|
|
3478
3478
|
"speed": "fast",
|
|
3479
3479
|
"pass": true,
|
|
@@ -3482,32 +3482,32 @@
|
|
|
3482
3482
|
"context": null,
|
|
3483
3483
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3484
3484
|
"err": {},
|
|
3485
|
-
"uuid": "
|
|
3486
|
-
"parentUUID": "
|
|
3485
|
+
"uuid": "634f54a7-e9d8-4ccf-83c6-190c1799fca3",
|
|
3486
|
+
"parentUUID": "d9a4a6d9-a02b-41ee-95fe-74d3fc2989c2",
|
|
3487
3487
|
"isHook": false,
|
|
3488
3488
|
"skipped": false
|
|
3489
3489
|
}
|
|
3490
3490
|
],
|
|
3491
3491
|
"suites": [],
|
|
3492
3492
|
"passes": [
|
|
3493
|
-
"
|
|
3494
|
-
"
|
|
3495
|
-
"
|
|
3496
|
-
"
|
|
3497
|
-
"
|
|
3498
|
-
"
|
|
3499
|
-
"
|
|
3493
|
+
"9063f99f-6908-4a0f-ac17-72dff03ccd3b",
|
|
3494
|
+
"01fc6848-a527-48ef-961a-b0c86d60813f",
|
|
3495
|
+
"35e5fb77-c4d4-4741-93a4-26b12b33cae2",
|
|
3496
|
+
"cdbe16a1-3d1f-4bfc-9e11-4cfb2ea7e6de",
|
|
3497
|
+
"1ad6ef6d-5399-418d-98ea-9dde9a866198",
|
|
3498
|
+
"d4a68425-45fa-4487-a419-7f0e8667b940",
|
|
3499
|
+
"634f54a7-e9d8-4ccf-83c6-190c1799fca3"
|
|
3500
3500
|
],
|
|
3501
3501
|
"failures": [],
|
|
3502
3502
|
"pending": [],
|
|
3503
3503
|
"skipped": [],
|
|
3504
|
-
"duration":
|
|
3504
|
+
"duration": 5425,
|
|
3505
3505
|
"root": false,
|
|
3506
3506
|
"rootEmpty": false,
|
|
3507
3507
|
"_timeout": 2000
|
|
3508
3508
|
},
|
|
3509
3509
|
{
|
|
3510
|
-
"uuid": "
|
|
3510
|
+
"uuid": "b372b843-4256-416a-824f-645eda7b8898",
|
|
3511
3511
|
"title": "static device()",
|
|
3512
3512
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3513
3513
|
"file": "/test/instance.ts",
|
|
@@ -3527,15 +3527,15 @@
|
|
|
3527
3527
|
"context": null,
|
|
3528
3528
|
"code": "const device = index_1.default.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert_1.default.strictEqual(device.host, '192.168.178.6');\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
3529
3529
|
"err": {},
|
|
3530
|
-
"uuid": "
|
|
3531
|
-
"parentUUID": "
|
|
3530
|
+
"uuid": "c123f2e9-a031-4ae5-8e19-adc4e1fd473f",
|
|
3531
|
+
"parentUUID": "b372b843-4256-416a-824f-645eda7b8898",
|
|
3532
3532
|
"isHook": false,
|
|
3533
3533
|
"skipped": false
|
|
3534
3534
|
}
|
|
3535
3535
|
],
|
|
3536
3536
|
"suites": [],
|
|
3537
3537
|
"passes": [
|
|
3538
|
-
"
|
|
3538
|
+
"c123f2e9-a031-4ae5-8e19-adc4e1fd473f"
|
|
3539
3539
|
],
|
|
3540
3540
|
"failures": [],
|
|
3541
3541
|
"pending": [],
|
|
@@ -3546,7 +3546,7 @@
|
|
|
3546
3546
|
"_timeout": 2000
|
|
3547
3547
|
},
|
|
3548
3548
|
{
|
|
3549
|
-
"uuid": "
|
|
3549
|
+
"uuid": "3e7715a6-afab-4df3-979d-12ca777e402f",
|
|
3550
3550
|
"title": "version()",
|
|
3551
3551
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3552
3552
|
"file": "/test/instance.ts",
|
|
@@ -3566,15 +3566,15 @@
|
|
|
3566
3566
|
"context": null,
|
|
3567
3567
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield i.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
|
|
3568
3568
|
"err": {},
|
|
3569
|
-
"uuid": "
|
|
3570
|
-
"parentUUID": "
|
|
3569
|
+
"uuid": "26b8df78-1d8d-42d9-acaf-4c36012b2ceb",
|
|
3570
|
+
"parentUUID": "3e7715a6-afab-4df3-979d-12ca777e402f",
|
|
3571
3571
|
"isHook": false,
|
|
3572
3572
|
"skipped": false
|
|
3573
3573
|
}
|
|
3574
3574
|
],
|
|
3575
3575
|
"suites": [],
|
|
3576
3576
|
"passes": [
|
|
3577
|
-
"
|
|
3577
|
+
"26b8df78-1d8d-42d9-acaf-4c36012b2ceb"
|
|
3578
3578
|
],
|
|
3579
3579
|
"failures": [],
|
|
3580
3580
|
"pending": [],
|
|
@@ -3585,7 +3585,7 @@
|
|
|
3585
3585
|
"_timeout": 2000
|
|
3586
3586
|
},
|
|
3587
3587
|
{
|
|
3588
|
-
"uuid": "
|
|
3588
|
+
"uuid": "175a7ce5-be9a-4c72-a95e-cdaa57896a51",
|
|
3589
3589
|
"title": "check()",
|
|
3590
3590
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3591
3591
|
"file": "/test/instance.ts",
|
|
@@ -3605,15 +3605,15 @@
|
|
|
3605
3605
|
"context": null,
|
|
3606
3606
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.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});",
|
|
3607
3607
|
"err": {},
|
|
3608
|
-
"uuid": "
|
|
3609
|
-
"parentUUID": "
|
|
3608
|
+
"uuid": "4052b348-1839-4e77-8fcc-82ef53621376",
|
|
3609
|
+
"parentUUID": "175a7ce5-be9a-4c72-a95e-cdaa57896a51",
|
|
3610
3610
|
"isHook": false,
|
|
3611
3611
|
"skipped": false
|
|
3612
3612
|
}
|
|
3613
3613
|
],
|
|
3614
3614
|
"suites": [],
|
|
3615
3615
|
"passes": [
|
|
3616
|
-
"
|
|
3616
|
+
"4052b348-1839-4e77-8fcc-82ef53621376"
|
|
3617
3617
|
],
|
|
3618
3618
|
"failures": [],
|
|
3619
3619
|
"pending": [],
|
|
@@ -3624,7 +3624,7 @@
|
|
|
3624
3624
|
"_timeout": 2000
|
|
3625
3625
|
},
|
|
3626
3626
|
{
|
|
3627
|
-
"uuid": "
|
|
3627
|
+
"uuid": "6595e352-8de6-4e7e-bb9c-437a76914b04",
|
|
3628
3628
|
"title": "find()",
|
|
3629
3629
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3630
3630
|
"file": "/test/instance.ts",
|
|
@@ -3644,15 +3644,15 @@
|
|
|
3644
3644
|
"context": null,
|
|
3645
3645
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvscriptPath: 'test' });\n yield i.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.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});",
|
|
3646
3646
|
"err": {},
|
|
3647
|
-
"uuid": "
|
|
3648
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "3c5dbb46-0f5d-4333-893d-58402861b8a4",
|
|
3648
|
+
"parentUUID": "6595e352-8de6-4e7e-bb9c-437a76914b04",
|
|
3649
3649
|
"isHook": false,
|
|
3650
3650
|
"skipped": false
|
|
3651
3651
|
}
|
|
3652
3652
|
],
|
|
3653
3653
|
"suites": [],
|
|
3654
3654
|
"passes": [
|
|
3655
|
-
"
|
|
3655
|
+
"3c5dbb46-0f5d-4333-893d-58402861b8a4"
|
|
3656
3656
|
],
|
|
3657
3657
|
"failures": [],
|
|
3658
3658
|
"pending": [],
|
|
@@ -3663,7 +3663,7 @@
|
|
|
3663
3663
|
"_timeout": 2000
|
|
3664
3664
|
},
|
|
3665
3665
|
{
|
|
3666
|
-
"uuid": "
|
|
3666
|
+
"uuid": "891c2270-12a6-4869-ae2f-40acd6395238",
|
|
3667
3667
|
"title": "device()",
|
|
3668
3668
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3669
3669
|
"file": "/test/instance.ts",
|
|
@@ -3683,15 +3683,15 @@
|
|
|
3683
3683
|
"context": null,
|
|
3684
3684
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert_1.default.deepStrictEqual(d.debug, true);\n});",
|
|
3685
3685
|
"err": {},
|
|
3686
|
-
"uuid": "
|
|
3687
|
-
"parentUUID": "
|
|
3686
|
+
"uuid": "daca344d-0fb7-4daa-90f9-ddb6429ff0d6",
|
|
3687
|
+
"parentUUID": "891c2270-12a6-4869-ae2f-40acd6395238",
|
|
3688
3688
|
"isHook": false,
|
|
3689
3689
|
"skipped": false
|
|
3690
3690
|
}
|
|
3691
3691
|
],
|
|
3692
3692
|
"suites": [],
|
|
3693
3693
|
"passes": [
|
|
3694
|
-
"
|
|
3694
|
+
"daca344d-0fb7-4daa-90f9-ddb6429ff0d6"
|
|
3695
3695
|
],
|
|
3696
3696
|
"failures": [],
|
|
3697
3697
|
"pending": [],
|
|
@@ -3702,7 +3702,7 @@
|
|
|
3702
3702
|
"_timeout": 2000
|
|
3703
3703
|
},
|
|
3704
3704
|
{
|
|
3705
|
-
"uuid": "
|
|
3705
|
+
"uuid": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3706
3706
|
"title": "Type Exports",
|
|
3707
3707
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3708
3708
|
"file": "/test/instance.ts",
|
|
@@ -3722,8 +3722,8 @@
|
|
|
3722
3722
|
"context": null,
|
|
3723
3723
|
"code": "assert_1.default.ok(index_1.NodePyATVProtocol);",
|
|
3724
3724
|
"err": {},
|
|
3725
|
-
"uuid": "
|
|
3726
|
-
"parentUUID": "
|
|
3725
|
+
"uuid": "e843ad08-f5c9-4eaf-ab3d-4288d78dd996",
|
|
3726
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3727
3727
|
"isHook": false,
|
|
3728
3728
|
"skipped": false
|
|
3729
3729
|
},
|
|
@@ -3740,8 +3740,8 @@
|
|
|
3740
3740
|
"context": null,
|
|
3741
3741
|
"code": "assert_1.default.ok(index_1.NodePyATVMediaType);",
|
|
3742
3742
|
"err": {},
|
|
3743
|
-
"uuid": "
|
|
3744
|
-
"parentUUID": "
|
|
3743
|
+
"uuid": "386d8cbe-8a3c-419c-8100-95c741dfbf88",
|
|
3744
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3745
3745
|
"isHook": false,
|
|
3746
3746
|
"skipped": false
|
|
3747
3747
|
},
|
|
@@ -3758,8 +3758,8 @@
|
|
|
3758
3758
|
"context": null,
|
|
3759
3759
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceEvent);",
|
|
3760
3760
|
"err": {},
|
|
3761
|
-
"uuid": "
|
|
3762
|
-
"parentUUID": "
|
|
3761
|
+
"uuid": "bf55d17c-c128-4959-b8df-44019f8ef161",
|
|
3762
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3763
3763
|
"isHook": false,
|
|
3764
3764
|
"skipped": false
|
|
3765
3765
|
},
|
|
@@ -3776,8 +3776,8 @@
|
|
|
3776
3776
|
"context": null,
|
|
3777
3777
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceState);",
|
|
3778
3778
|
"err": {},
|
|
3779
|
-
"uuid": "
|
|
3780
|
-
"parentUUID": "
|
|
3779
|
+
"uuid": "5f8518d1-f101-4e6c-9f46-410397e804e4",
|
|
3780
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3781
3781
|
"isHook": false,
|
|
3782
3782
|
"skipped": false
|
|
3783
3783
|
},
|
|
@@ -3794,8 +3794,8 @@
|
|
|
3794
3794
|
"context": null,
|
|
3795
3795
|
"code": "assert_1.default.ok(index_1.NodePyATVRepeatState);",
|
|
3796
3796
|
"err": {},
|
|
3797
|
-
"uuid": "
|
|
3798
|
-
"parentUUID": "
|
|
3797
|
+
"uuid": "4df0ec34-ef57-421d-9b82-b57e350cb992",
|
|
3798
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3799
3799
|
"isHook": false,
|
|
3800
3800
|
"skipped": false
|
|
3801
3801
|
},
|
|
@@ -3812,8 +3812,8 @@
|
|
|
3812
3812
|
"context": null,
|
|
3813
3813
|
"code": "assert_1.default.ok(index_1.NodePyATVShuffleState);",
|
|
3814
3814
|
"err": {},
|
|
3815
|
-
"uuid": "
|
|
3816
|
-
"parentUUID": "
|
|
3815
|
+
"uuid": "d96a87d2-a045-4e15-9970-f6408783212a",
|
|
3816
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3817
3817
|
"isHook": false,
|
|
3818
3818
|
"skipped": false
|
|
3819
3819
|
},
|
|
@@ -3830,8 +3830,8 @@
|
|
|
3830
3830
|
"context": null,
|
|
3831
3831
|
"code": "assert_1.default.ok(index_1.NodePyATVKeys);",
|
|
3832
3832
|
"err": {},
|
|
3833
|
-
"uuid": "
|
|
3834
|
-
"parentUUID": "
|
|
3833
|
+
"uuid": "82f55289-fef0-4726-9d58-a213a974669a",
|
|
3834
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3835
3835
|
"isHook": false,
|
|
3836
3836
|
"skipped": false
|
|
3837
3837
|
},
|
|
@@ -3848,8 +3848,8 @@
|
|
|
3848
3848
|
"context": null,
|
|
3849
3849
|
"code": "assert_1.default.ok(index_1.NodePyATVListenerState);",
|
|
3850
3850
|
"err": {},
|
|
3851
|
-
"uuid": "
|
|
3852
|
-
"parentUUID": "
|
|
3851
|
+
"uuid": "497ddc1b-04f5-4e61-816f-a27f3f5c799f",
|
|
3852
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3853
3853
|
"isHook": false,
|
|
3854
3854
|
"skipped": false
|
|
3855
3855
|
},
|
|
@@ -3866,23 +3866,23 @@
|
|
|
3866
3866
|
"context": null,
|
|
3867
3867
|
"code": "assert_1.default.ok(index_1.NodePyATVPowerState);",
|
|
3868
3868
|
"err": {},
|
|
3869
|
-
"uuid": "
|
|
3870
|
-
"parentUUID": "
|
|
3869
|
+
"uuid": "74a1cbf5-9d70-45d0-82f0-9a74b7a58aaa",
|
|
3870
|
+
"parentUUID": "1a6f7826-35c3-4694-91f7-5b83dcf21189",
|
|
3871
3871
|
"isHook": false,
|
|
3872
3872
|
"skipped": false
|
|
3873
3873
|
}
|
|
3874
3874
|
],
|
|
3875
3875
|
"suites": [],
|
|
3876
3876
|
"passes": [
|
|
3877
|
-
"
|
|
3878
|
-
"
|
|
3879
|
-
"
|
|
3880
|
-
"
|
|
3881
|
-
"
|
|
3882
|
-
"
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3885
|
-
"
|
|
3877
|
+
"e843ad08-f5c9-4eaf-ab3d-4288d78dd996",
|
|
3878
|
+
"386d8cbe-8a3c-419c-8100-95c741dfbf88",
|
|
3879
|
+
"bf55d17c-c128-4959-b8df-44019f8ef161",
|
|
3880
|
+
"5f8518d1-f101-4e6c-9f46-410397e804e4",
|
|
3881
|
+
"4df0ec34-ef57-421d-9b82-b57e350cb992",
|
|
3882
|
+
"d96a87d2-a045-4e15-9970-f6408783212a",
|
|
3883
|
+
"82f55289-fef0-4726-9d58-a213a974669a",
|
|
3884
|
+
"497ddc1b-04f5-4e61-816f-a27f3f5c799f",
|
|
3885
|
+
"74a1cbf5-9d70-45d0-82f0-9a74b7a58aaa"
|
|
3886
3886
|
],
|
|
3887
3887
|
"failures": [],
|
|
3888
3888
|
"pending": [],
|
|
@@ -3903,7 +3903,7 @@
|
|
|
3903
3903
|
"_timeout": 2000
|
|
3904
3904
|
},
|
|
3905
3905
|
{
|
|
3906
|
-
"uuid": "
|
|
3906
|
+
"uuid": "7d609ff1-d269-41c1-8bbd-0ab50ab2179b",
|
|
3907
3907
|
"title": "Tools",
|
|
3908
3908
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3909
3909
|
"file": "/test/tools.ts",
|
|
@@ -3912,7 +3912,7 @@
|
|
|
3912
3912
|
"tests": [],
|
|
3913
3913
|
"suites": [
|
|
3914
3914
|
{
|
|
3915
|
-
"uuid": "
|
|
3915
|
+
"uuid": "8f4bbd9c-a222-47a4-afed-c158c4d68f60",
|
|
3916
3916
|
"title": "addRequestId() / removeRequestId()",
|
|
3917
3917
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3918
3918
|
"file": "/test/tools.ts",
|
|
@@ -3932,8 +3932,8 @@
|
|
|
3932
3932
|
"context": null,
|
|
3933
3933
|
"code": "const id = (0, tools_1.addRequestId)();\nassert_1.default.strictEqual(typeof id, 'string');\n(0, tools_1.removeRequestId)(id);",
|
|
3934
3934
|
"err": {},
|
|
3935
|
-
"uuid": "
|
|
3936
|
-
"parentUUID": "
|
|
3935
|
+
"uuid": "8fbf83cd-0ed1-482e-979f-4f8a4571d171",
|
|
3936
|
+
"parentUUID": "8f4bbd9c-a222-47a4-afed-c158c4d68f60",
|
|
3937
3937
|
"isHook": false,
|
|
3938
3938
|
"skipped": false
|
|
3939
3939
|
},
|
|
@@ -3950,16 +3950,16 @@
|
|
|
3950
3950
|
"context": null,
|
|
3951
3951
|
"code": "(0, tools_1.removeRequestId)('FOO');",
|
|
3952
3952
|
"err": {},
|
|
3953
|
-
"uuid": "
|
|
3954
|
-
"parentUUID": "
|
|
3953
|
+
"uuid": "8ef001b9-9dfe-49e7-b069-946b114426ed",
|
|
3954
|
+
"parentUUID": "8f4bbd9c-a222-47a4-afed-c158c4d68f60",
|
|
3955
3955
|
"isHook": false,
|
|
3956
3956
|
"skipped": false
|
|
3957
3957
|
}
|
|
3958
3958
|
],
|
|
3959
3959
|
"suites": [],
|
|
3960
3960
|
"passes": [
|
|
3961
|
-
"
|
|
3962
|
-
"
|
|
3961
|
+
"8fbf83cd-0ed1-482e-979f-4f8a4571d171",
|
|
3962
|
+
"8ef001b9-9dfe-49e7-b069-946b114426ed"
|
|
3963
3963
|
],
|
|
3964
3964
|
"failures": [],
|
|
3965
3965
|
"pending": [],
|
|
@@ -3970,7 +3970,7 @@
|
|
|
3970
3970
|
"_timeout": 2000
|
|
3971
3971
|
},
|
|
3972
3972
|
{
|
|
3973
|
-
"uuid": "
|
|
3973
|
+
"uuid": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
3974
3974
|
"title": "debug()",
|
|
3975
3975
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3976
3976
|
"file": "/test/tools.ts",
|
|
@@ -3990,8 +3990,8 @@
|
|
|
3990
3990
|
"context": null,
|
|
3991
3991
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {});",
|
|
3992
3992
|
"err": {},
|
|
3993
|
-
"uuid": "
|
|
3994
|
-
"parentUUID": "
|
|
3993
|
+
"uuid": "9b0f414c-e5c9-4435-b628-38087c020074",
|
|
3994
|
+
"parentUUID": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
3995
3995
|
"isHook": false,
|
|
3996
3996
|
"skipped": false
|
|
3997
3997
|
},
|
|
@@ -4008,8 +4008,8 @@
|
|
|
4008
4008
|
"context": null,
|
|
4009
4009
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { debug: true });",
|
|
4010
4010
|
"err": {},
|
|
4011
|
-
"uuid": "
|
|
4012
|
-
"parentUUID": "
|
|
4011
|
+
"uuid": "f6690775-6609-40a4-a65d-6d25b65ae52b",
|
|
4012
|
+
"parentUUID": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
4013
4013
|
"isHook": false,
|
|
4014
4014
|
"skipped": false
|
|
4015
4015
|
},
|
|
@@ -4026,8 +4026,8 @@
|
|
|
4026
4026
|
"context": null,
|
|
4027
4027
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.ok(msg.includes('Hello World'));\n }\n});",
|
|
4028
4028
|
"err": {},
|
|
4029
|
-
"uuid": "
|
|
4030
|
-
"parentUUID": "
|
|
4029
|
+
"uuid": "fea50281-b073-4ae1-b7e0-46b8b621a433",
|
|
4030
|
+
"parentUUID": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
4031
4031
|
"isHook": false,
|
|
4032
4032
|
"skipped": false
|
|
4033
4033
|
},
|
|
@@ -4044,8 +4044,8 @@
|
|
|
4044
4044
|
"context": null,
|
|
4045
4045
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { noColors: true });",
|
|
4046
4046
|
"err": {},
|
|
4047
|
-
"uuid": "
|
|
4048
|
-
"parentUUID": "
|
|
4047
|
+
"uuid": "fbd4482f-6dfe-423d-b917-67f7394f6919",
|
|
4048
|
+
"parentUUID": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
4049
4049
|
"isHook": false,
|
|
4050
4050
|
"skipped": false
|
|
4051
4051
|
},
|
|
@@ -4062,19 +4062,19 @@
|
|
|
4062
4062
|
"context": null,
|
|
4063
4063
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
|
|
4064
4064
|
"err": {},
|
|
4065
|
-
"uuid": "
|
|
4066
|
-
"parentUUID": "
|
|
4065
|
+
"uuid": "b55e3726-5a75-47f5-80da-2fb53e62d509",
|
|
4066
|
+
"parentUUID": "b039fadf-4484-4b19-ae07-764c8778961d",
|
|
4067
4067
|
"isHook": false,
|
|
4068
4068
|
"skipped": false
|
|
4069
4069
|
}
|
|
4070
4070
|
],
|
|
4071
4071
|
"suites": [],
|
|
4072
4072
|
"passes": [
|
|
4073
|
-
"
|
|
4074
|
-
"
|
|
4075
|
-
"
|
|
4076
|
-
"
|
|
4077
|
-
"
|
|
4073
|
+
"9b0f414c-e5c9-4435-b628-38087c020074",
|
|
4074
|
+
"f6690775-6609-40a4-a65d-6d25b65ae52b",
|
|
4075
|
+
"fea50281-b073-4ae1-b7e0-46b8b621a433",
|
|
4076
|
+
"fbd4482f-6dfe-423d-b917-67f7394f6919",
|
|
4077
|
+
"b55e3726-5a75-47f5-80da-2fb53e62d509"
|
|
4078
4078
|
],
|
|
4079
4079
|
"failures": [],
|
|
4080
4080
|
"pending": [],
|
|
@@ -4085,7 +4085,7 @@
|
|
|
4085
4085
|
"_timeout": 2000
|
|
4086
4086
|
},
|
|
4087
4087
|
{
|
|
4088
|
-
"uuid": "
|
|
4088
|
+
"uuid": "ba4325f4-eede-42ae-b864-cc39b4192992",
|
|
4089
4089
|
"title": "getExecutable()",
|
|
4090
4090
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4091
4091
|
"file": "/test/tools.ts",
|
|
@@ -4105,8 +4105,8 @@
|
|
|
4105
4105
|
"context": null,
|
|
4106
4106
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/1');",
|
|
4107
4107
|
"err": {},
|
|
4108
|
-
"uuid": "
|
|
4109
|
-
"parentUUID": "
|
|
4108
|
+
"uuid": "78f30d12-792c-4feb-84f0-8dc5faf542cc",
|
|
4109
|
+
"parentUUID": "ba4325f4-eede-42ae-b864-cc39b4192992",
|
|
4110
4110
|
"isHook": false,
|
|
4111
4111
|
"skipped": false
|
|
4112
4112
|
},
|
|
@@ -4123,8 +4123,8 @@
|
|
|
4123
4123
|
"context": null,
|
|
4124
4124
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/2');",
|
|
4125
4125
|
"err": {},
|
|
4126
|
-
"uuid": "
|
|
4127
|
-
"parentUUID": "
|
|
4126
|
+
"uuid": "a6d60791-bcc4-4638-8c4f-89f1e45662af",
|
|
4127
|
+
"parentUUID": "ba4325f4-eede-42ae-b864-cc39b4192992",
|
|
4128
4128
|
"isHook": false,
|
|
4129
4129
|
"skipped": false
|
|
4130
4130
|
},
|
|
@@ -4141,8 +4141,8 @@
|
|
|
4141
4141
|
"context": null,
|
|
4142
4142
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvremote');",
|
|
4143
4143
|
"err": {},
|
|
4144
|
-
"uuid": "
|
|
4145
|
-
"parentUUID": "
|
|
4144
|
+
"uuid": "f5f7a5f6-64c6-4d6b-ba24-50b9c6520119",
|
|
4145
|
+
"parentUUID": "ba4325f4-eede-42ae-b864-cc39b4192992",
|
|
4146
4146
|
"isHook": false,
|
|
4147
4147
|
"skipped": false
|
|
4148
4148
|
},
|
|
@@ -4159,18 +4159,18 @@
|
|
|
4159
4159
|
"context": null,
|
|
4160
4160
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvscript');",
|
|
4161
4161
|
"err": {},
|
|
4162
|
-
"uuid": "
|
|
4163
|
-
"parentUUID": "
|
|
4162
|
+
"uuid": "6372c53f-f7c7-4817-abed-d1c077161df9",
|
|
4163
|
+
"parentUUID": "ba4325f4-eede-42ae-b864-cc39b4192992",
|
|
4164
4164
|
"isHook": false,
|
|
4165
4165
|
"skipped": false
|
|
4166
4166
|
}
|
|
4167
4167
|
],
|
|
4168
4168
|
"suites": [],
|
|
4169
4169
|
"passes": [
|
|
4170
|
-
"
|
|
4171
|
-
"
|
|
4172
|
-
"
|
|
4173
|
-
"
|
|
4170
|
+
"78f30d12-792c-4feb-84f0-8dc5faf542cc",
|
|
4171
|
+
"a6d60791-bcc4-4638-8c4f-89f1e45662af",
|
|
4172
|
+
"f5f7a5f6-64c6-4d6b-ba24-50b9c6520119",
|
|
4173
|
+
"6372c53f-f7c7-4817-abed-d1c077161df9"
|
|
4174
4174
|
],
|
|
4175
4175
|
"failures": [],
|
|
4176
4176
|
"pending": [],
|
|
@@ -4181,7 +4181,7 @@
|
|
|
4181
4181
|
"_timeout": 2000
|
|
4182
4182
|
},
|
|
4183
4183
|
{
|
|
4184
|
-
"uuid": "
|
|
4184
|
+
"uuid": "5d55570c-7305-40f4-9df9-a2f65e62d15a",
|
|
4185
4185
|
"title": "getParameters()",
|
|
4186
4186
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4187
4187
|
"file": "/test/tools.ts",
|
|
@@ -4201,8 +4201,8 @@
|
|
|
4201
4201
|
"context": null,
|
|
4202
4202
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)();\n assert_1.default.deepEqual(result, []);\n});",
|
|
4203
4203
|
"err": {},
|
|
4204
|
-
"uuid": "
|
|
4205
|
-
"parentUUID": "
|
|
4204
|
+
"uuid": "a50138be-a2cf-4a12-a469-b0193d4965b2",
|
|
4205
|
+
"parentUUID": "5d55570c-7305-40f4-9df9-a2f65e62d15a",
|
|
4206
4206
|
"isHook": false,
|
|
4207
4207
|
"skipped": false
|
|
4208
4208
|
},
|
|
@@ -4210,7 +4210,7 @@
|
|
|
4210
4210
|
"title": "easy case",
|
|
4211
4211
|
"fullTitle": "Tools getParameters() easy case",
|
|
4212
4212
|
"timedOut": false,
|
|
4213
|
-
"duration":
|
|
4213
|
+
"duration": 0,
|
|
4214
4214
|
"state": "passed",
|
|
4215
4215
|
"speed": "fast",
|
|
4216
4216
|
"pass": true,
|
|
@@ -4219,8 +4219,8 @@
|
|
|
4219
4219
|
"context": null,
|
|
4220
4220
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n host: '192.168.178.2'\n });\n assert_1.default.deepEqual(result, ['-s', '192.168.178.2']);\n});",
|
|
4221
4221
|
"err": {},
|
|
4222
|
-
"uuid": "
|
|
4223
|
-
"parentUUID": "
|
|
4222
|
+
"uuid": "8f0394fc-ff06-46c3-903f-a24c3f1fcf41",
|
|
4223
|
+
"parentUUID": "5d55570c-7305-40f4-9df9-a2f65e62d15a",
|
|
4224
4224
|
"isHook": false,
|
|
4225
4225
|
"skipped": false
|
|
4226
4226
|
},
|
|
@@ -4237,28 +4237,28 @@
|
|
|
4237
4237
|
"context": null,
|
|
4238
4238
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: types_1.NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert_1.default.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});",
|
|
4239
4239
|
"err": {},
|
|
4240
|
-
"uuid": "
|
|
4241
|
-
"parentUUID": "
|
|
4240
|
+
"uuid": "2d266475-908d-46b9-a048-db40fbd5d455",
|
|
4241
|
+
"parentUUID": "5d55570c-7305-40f4-9df9-a2f65e62d15a",
|
|
4242
4242
|
"isHook": false,
|
|
4243
4243
|
"skipped": false
|
|
4244
4244
|
}
|
|
4245
4245
|
],
|
|
4246
4246
|
"suites": [],
|
|
4247
4247
|
"passes": [
|
|
4248
|
-
"
|
|
4249
|
-
"
|
|
4250
|
-
"
|
|
4248
|
+
"a50138be-a2cf-4a12-a469-b0193d4965b2",
|
|
4249
|
+
"8f0394fc-ff06-46c3-903f-a24c3f1fcf41",
|
|
4250
|
+
"2d266475-908d-46b9-a048-db40fbd5d455"
|
|
4251
4251
|
],
|
|
4252
4252
|
"failures": [],
|
|
4253
4253
|
"pending": [],
|
|
4254
4254
|
"skipped": [],
|
|
4255
|
-
"duration":
|
|
4255
|
+
"duration": 0,
|
|
4256
4256
|
"root": false,
|
|
4257
4257
|
"rootEmpty": false,
|
|
4258
4258
|
"_timeout": 2000
|
|
4259
4259
|
},
|
|
4260
4260
|
{
|
|
4261
|
-
"uuid": "
|
|
4261
|
+
"uuid": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4262
4262
|
"title": "parseState()",
|
|
4263
4263
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4264
4264
|
"file": "/test/tools.ts",
|
|
@@ -4278,8 +4278,8 @@
|
|
|
4278
4278
|
"context": null,
|
|
4279
4279
|
"code": "const input = {};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.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});",
|
|
4280
4280
|
"err": {},
|
|
4281
|
-
"uuid": "
|
|
4282
|
-
"parentUUID": "
|
|
4281
|
+
"uuid": "8b1fe004-6fe1-4f18-9b5d-dc88b19901cd",
|
|
4282
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4283
4283
|
"isHook": false,
|
|
4284
4284
|
"skipped": false
|
|
4285
4285
|
},
|
|
@@ -4296,8 +4296,8 @@
|
|
|
4296
4296
|
"context": null,
|
|
4297
4297
|
"code": "// @ts-ignore\nconst result = (0, tools_1.parseState)(null, '', {});\nassert_1.default.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});",
|
|
4298
4298
|
"err": {},
|
|
4299
|
-
"uuid": "
|
|
4300
|
-
"parentUUID": "
|
|
4299
|
+
"uuid": "8e601a1d-4b60-42ef-9f65-1afeac69c91f",
|
|
4300
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4301
4301
|
"isHook": false,
|
|
4302
4302
|
"skipped": false
|
|
4303
4303
|
},
|
|
@@ -4314,8 +4314,8 @@
|
|
|
4314
4314
|
"context": null,
|
|
4315
4315
|
"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 = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.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: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
|
|
4316
4316
|
"err": {},
|
|
4317
|
-
"uuid": "
|
|
4318
|
-
"parentUUID": "
|
|
4317
|
+
"uuid": "a27112ae-1f7f-414d-8332-07c0771a78a6",
|
|
4318
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4319
4319
|
"isHook": false,
|
|
4320
4320
|
"skipped": false
|
|
4321
4321
|
},
|
|
@@ -4332,8 +4332,8 @@
|
|
|
4332
4332
|
"context": null,
|
|
4333
4333
|
"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_1.default.throws(() => {\n (0, tools_1.parseState)(input, '', {});\n}, /Got pyatv Error: invalid credentials: 321/);",
|
|
4334
4334
|
"err": {},
|
|
4335
|
-
"uuid": "
|
|
4336
|
-
"parentUUID": "
|
|
4335
|
+
"uuid": "14848f53-bd38-487d-8b1f-b4f387660946",
|
|
4336
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4337
4337
|
"isHook": false,
|
|
4338
4338
|
"skipped": false
|
|
4339
4339
|
},
|
|
@@ -4350,8 +4350,8 @@
|
|
|
4350
4350
|
"context": null,
|
|
4351
4351
|
"code": "const input = { datetime: 'today' };\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.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});",
|
|
4352
4352
|
"err": {},
|
|
4353
|
-
"uuid": "
|
|
4354
|
-
"parentUUID": "
|
|
4353
|
+
"uuid": "c4a6843b-c523-4a41-9228-d299df5d4926",
|
|
4354
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4355
4355
|
"isHook": false,
|
|
4356
4356
|
"skipped": false
|
|
4357
4357
|
},
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
"title": "should ignore data if unsupported type",
|
|
4360
4360
|
"fullTitle": "Tools parseState() should ignore data if unsupported type",
|
|
4361
4361
|
"timedOut": false,
|
|
4362
|
-
"duration":
|
|
4362
|
+
"duration": 0,
|
|
4363
4363
|
"state": "passed",
|
|
4364
4364
|
"speed": "fast",
|
|
4365
4365
|
"pass": true,
|
|
@@ -4368,8 +4368,8 @@
|
|
|
4368
4368
|
"context": null,
|
|
4369
4369
|
"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 = (0, tools_1.parseState)(input, '', {});\nassert_1.default.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});",
|
|
4370
4370
|
"err": {},
|
|
4371
|
-
"uuid": "
|
|
4372
|
-
"parentUUID": "
|
|
4371
|
+
"uuid": "092b76ce-123c-49d8-80a2-2e3cfb2464dd",
|
|
4372
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4373
4373
|
"isHook": false,
|
|
4374
4374
|
"skipped": false
|
|
4375
4375
|
},
|
|
@@ -4386,26 +4386,26 @@
|
|
|
4386
4386
|
"context": null,
|
|
4387
4387
|
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.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});",
|
|
4388
4388
|
"err": {},
|
|
4389
|
-
"uuid": "
|
|
4390
|
-
"parentUUID": "
|
|
4389
|
+
"uuid": "ec441db0-39d3-44b3-adfe-a9629ff80419",
|
|
4390
|
+
"parentUUID": "2fa69ada-f080-40ed-bbf4-fa17f1d60f1b",
|
|
4391
4391
|
"isHook": false,
|
|
4392
4392
|
"skipped": false
|
|
4393
4393
|
}
|
|
4394
4394
|
],
|
|
4395
4395
|
"suites": [],
|
|
4396
4396
|
"passes": [
|
|
4397
|
-
"
|
|
4398
|
-
"
|
|
4399
|
-
"
|
|
4400
|
-
"
|
|
4401
|
-
"
|
|
4402
|
-
"
|
|
4403
|
-
"
|
|
4397
|
+
"8b1fe004-6fe1-4f18-9b5d-dc88b19901cd",
|
|
4398
|
+
"8e601a1d-4b60-42ef-9f65-1afeac69c91f",
|
|
4399
|
+
"a27112ae-1f7f-414d-8332-07c0771a78a6",
|
|
4400
|
+
"14848f53-bd38-487d-8b1f-b4f387660946",
|
|
4401
|
+
"c4a6843b-c523-4a41-9228-d299df5d4926",
|
|
4402
|
+
"092b76ce-123c-49d8-80a2-2e3cfb2464dd",
|
|
4403
|
+
"ec441db0-39d3-44b3-adfe-a9629ff80419"
|
|
4404
4404
|
],
|
|
4405
4405
|
"failures": [],
|
|
4406
4406
|
"pending": [],
|
|
4407
4407
|
"skipped": [],
|
|
4408
|
-
"duration":
|
|
4408
|
+
"duration": 1,
|
|
4409
4409
|
"root": false,
|
|
4410
4410
|
"rootEmpty": false,
|
|
4411
4411
|
"_timeout": 2000
|