@sebbo2002/node-pyatv 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/lib/device-event.d.ts +1 -1
- package/dist/lib/device-events.d.ts +1 -2
- package/dist/lib/device-events.js +9 -7
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.d.ts +1 -1
- package/dist/lib/device.js +12 -11
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/index.d.ts +3 -1
- package/dist/lib/index.js +7 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/instance.d.ts +1 -1
- package/dist/lib/instance.js +2 -2
- package/dist/lib/instance.js.map +1 -1
- package/dist/lib/tools.js +7 -0
- package/dist/lib/tools.js.map +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/docs/coverage/cobertura-coverage.xml +665 -633
- package/docs/coverage/device-event.ts.html +2 -2
- package/docs/coverage/device-events.ts.html +99 -87
- package/docs/coverage/device.ts.html +38 -26
- package/docs/coverage/fake-spawn.ts.html +25 -25
- package/docs/coverage/index.html +29 -29
- package/docs/coverage/index.ts.html +22 -7
- package/docs/coverage/instance.ts.html +2 -2
- package/docs/coverage/tools.ts.html +133 -109
- package/docs/coverage/types.ts.html +5 -2
- package/docs/reference/assets/main.js +1 -1
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/assets/style.css +4 -0
- package/docs/reference/classes/NodePyATVDevice.html +147 -0
- package/docs/reference/classes/NodePyATVDeviceEvent.html +6 -6
- package/docs/reference/classes/default.html +15 -15
- package/docs/reference/enums/NodePyATVDeviceState.html +1 -1
- package/docs/reference/enums/NodePyATVKeys.html +1 -1
- package/docs/reference/enums/NodePyATVListenerState.html +1 -0
- package/docs/reference/enums/NodePyATVMediaType.html +1 -1
- package/docs/reference/enums/NodePyATVPowerState.html +1 -0
- 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 +2 -2
- 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/assets/app.css +1 -1
- package/docs/tests/assets/app.js +2 -2
- package/docs/tests/assets/app.js.LICENSE.txt +1 -1
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +711 -616
- package/package.json +18 -18
- package/src/lib/device-event.ts +1 -1
- package/src/lib/device-events.ts +8 -4
- package/src/lib/device.ts +12 -8
- package/src/lib/index.ts +6 -1
- package/src/lib/instance.ts +1 -1
- package/src/lib/tools.ts +8 -0
- package/src/lib/types.ts +1 -0
- package/test/device-events.ts +24 -3
- package/test/device.ts +18 -0
- package/test/instance.ts +9 -1
- package/test/tools.ts +15 -4
- package/typedoc.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stats": {
|
|
3
3
|
"suites": 82,
|
|
4
|
-
"tests":
|
|
5
|
-
"passes":
|
|
4
|
+
"tests": 141,
|
|
5
|
+
"passes": 139,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2021-
|
|
9
|
-
"end": "2021-
|
|
10
|
-
"duration":
|
|
11
|
-
"testsRegistered":
|
|
8
|
+
"start": "2021-11-29T21:57:38.053Z",
|
|
9
|
+
"end": "2021-11-29T21:57:50.229Z",
|
|
10
|
+
"duration": 12176,
|
|
11
|
+
"testsRegistered": 141,
|
|
12
12
|
"passPercent": 100,
|
|
13
|
-
"pendingPercent": 1.
|
|
13
|
+
"pendingPercent": 1.4184397163120568,
|
|
14
14
|
"other": 0,
|
|
15
15
|
"hasOther": false,
|
|
16
16
|
"skipped": 0,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"results": [
|
|
20
20
|
{
|
|
21
|
-
"uuid": "
|
|
21
|
+
"uuid": "f3928a0f-a264-4676-b51a-c9ffb42a5ee0",
|
|
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": "1a5db6af-45b0-4a39-8d1c-d57d2f4e23a4",
|
|
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": "e1564b59-b8c7-4bd9-b036-2359528e727f",
|
|
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",
|
|
@@ -56,15 +56,15 @@
|
|
|
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": "703c91bd-2e40-4d9f-865a-426762630351",
|
|
60
|
+
"parentUUID": "e1564b59-b8c7-4bd9-b036-2359528e727f",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"703c91bd-2e40-4d9f-865a-426762630351"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "33b09442-65eb-4b08-ae4b-7ba33b1e3256",
|
|
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": "6ce3e6ae-027b-4006-8813-3ac7e44363a9",
|
|
99
|
+
"parentUUID": "33b09442-65eb-4b08-ae4b-7ba33b1e3256",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"6ce3e6ae-027b-4006-8813-3ac7e44363a9"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "029cae62-8938-4ae3-bbbc-39c757e35461",
|
|
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": "5c128fb9-1620-4947-8932-b03ce4adb778",
|
|
138
|
+
"parentUUID": "029cae62-8938-4ae3-bbbc-39c757e35461",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"5c128fb9-1620-4947-8932-b03ce4adb778"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "90ca571b-3b4c-4332-a114-0110bcfd6ac2",
|
|
157
157
|
"title": "get value()",
|
|
158
158
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
159
159
|
"file": "/test/device-event.ts",
|
|
@@ -173,15 +173,15 @@
|
|
|
173
173
|
"context": null,
|
|
174
174
|
"code": "const event = new 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": "74b213f5-0c13-4645-a8fc-8d344e42d4c4",
|
|
177
|
+
"parentUUID": "90ca571b-3b4c-4332-a114-0110bcfd6ac2",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"74b213f5-0c13-4645-a8fc-8d344e42d4c4"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "d960305a-7b15-45bd-b20f-bc1ba7c94125",
|
|
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": 1,
|
|
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": "76c17767-9f45-493e-831b-c2b236102aaa",
|
|
216
|
+
"parentUUID": "d960305a-7b15-45bd-b20f-bc1ba7c94125",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"76c17767-9f45-493e-831b-c2b236102aaa"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
227
227
|
"skipped": [],
|
|
228
|
-
"duration":
|
|
228
|
+
"duration": 1,
|
|
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": "5cb02131-40f1-4d9d-ba42-05e4d5a653d0",
|
|
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": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
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,17 +261,17 @@
|
|
|
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,
|
|
268
268
|
"fail": false,
|
|
269
269
|
"pending": false,
|
|
270
270
|
"context": null,
|
|
271
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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": "b8650b58-3137-43d8-b382-08680f39442e",
|
|
274
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -279,17 +279,17 @@
|
|
|
279
279
|
"title": "should emit update event",
|
|
280
280
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update event",
|
|
281
281
|
"timedOut": false,
|
|
282
|
-
"duration":
|
|
282
|
+
"duration": 2,
|
|
283
283
|
"state": "passed",
|
|
284
284
|
"speed": "fast",
|
|
285
285
|
"pass": true,
|
|
286
286
|
"fail": false,
|
|
287
287
|
"pending": false,
|
|
288
288
|
"context": null,
|
|
289
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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": "a0e7967e-0522-49d3-83aa-4ad34d304c02",
|
|
292
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
293
293
|
"isHook": false,
|
|
294
294
|
"skipped": false
|
|
295
295
|
},
|
|
@@ -297,6 +297,24 @@
|
|
|
297
297
|
"title": "should emit update:key event before update",
|
|
298
298
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event before update",
|
|
299
299
|
"timedOut": false,
|
|
300
|
+
"duration": 1,
|
|
301
|
+
"state": "passed",
|
|
302
|
+
"speed": "fast",
|
|
303
|
+
"pass": true,
|
|
304
|
+
"fail": false,
|
|
305
|
+
"pending": false,
|
|
306
|
+
"context": null,
|
|
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
|
+
"err": {},
|
|
309
|
+
"uuid": "b6fd4ce8-42b2-4d51-873c-d5ec4bc7aea4",
|
|
310
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
311
|
+
"isHook": false,
|
|
312
|
+
"skipped": false
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"title": "should emit error events on failures",
|
|
316
|
+
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error events on failures",
|
|
317
|
+
"timedOut": false,
|
|
300
318
|
"duration": 2,
|
|
301
319
|
"state": "passed",
|
|
302
320
|
"speed": "fast",
|
|
@@ -304,10 +322,10 @@
|
|
|
304
322
|
"fail": false,
|
|
305
323
|
"pending": false,
|
|
306
324
|
"context": null,
|
|
307
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
308
326
|
"err": {},
|
|
309
|
-
"uuid": "
|
|
310
|
-
"parentUUID": "
|
|
327
|
+
"uuid": "b84ca3fe-764c-4ff8-bb1a-e2d455bfb9fb",
|
|
328
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
311
329
|
"isHook": false,
|
|
312
330
|
"skipped": false
|
|
313
331
|
},
|
|
@@ -322,10 +340,10 @@
|
|
|
322
340
|
"fail": false,
|
|
323
341
|
"pending": false,
|
|
324
342
|
"context": null,
|
|
325
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new
|
|
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});",
|
|
326
344
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "9e7729ee-2211-45a9-a3ac-b628ccdc6c68",
|
|
346
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
329
347
|
"isHook": false,
|
|
330
348
|
"skipped": false
|
|
331
349
|
},
|
|
@@ -333,17 +351,17 @@
|
|
|
333
351
|
"title": "should emit error event if event listener throws an exception",
|
|
334
352
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error event if event listener throws an exception",
|
|
335
353
|
"timedOut": false,
|
|
336
|
-
"duration":
|
|
354
|
+
"duration": 1,
|
|
337
355
|
"state": "passed",
|
|
338
356
|
"speed": "fast",
|
|
339
357
|
"pass": true,
|
|
340
358
|
"fail": false,
|
|
341
359
|
"pending": false,
|
|
342
360
|
"context": null,
|
|
343
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
344
362
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "4edd13f6-a3e6-4d87-b9ea-1714519bae68",
|
|
364
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
347
365
|
"isHook": false,
|
|
348
366
|
"skipped": false
|
|
349
367
|
},
|
|
@@ -358,22 +376,23 @@
|
|
|
358
376
|
"fail": false,
|
|
359
377
|
"pending": false,
|
|
360
378
|
"context": null,
|
|
361
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
362
380
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "1b637ac1-cbdb-4b30-9aa7-238274757cae",
|
|
382
|
+
"parentUUID": "0a494c09-989e-4ef5-ba3d-6f57475feb5c",
|
|
365
383
|
"isHook": false,
|
|
366
384
|
"skipped": false
|
|
367
385
|
}
|
|
368
386
|
],
|
|
369
387
|
"suites": [],
|
|
370
388
|
"passes": [
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
389
|
+
"b8650b58-3137-43d8-b382-08680f39442e",
|
|
390
|
+
"a0e7967e-0522-49d3-83aa-4ad34d304c02",
|
|
391
|
+
"b6fd4ce8-42b2-4d51-873c-d5ec4bc7aea4",
|
|
392
|
+
"b84ca3fe-764c-4ff8-bb1a-e2d455bfb9fb",
|
|
393
|
+
"9e7729ee-2211-45a9-a3ac-b628ccdc6c68",
|
|
394
|
+
"4edd13f6-a3e6-4d87-b9ea-1714519bae68",
|
|
395
|
+
"1b637ac1-cbdb-4b30-9aa7-238274757cae"
|
|
377
396
|
],
|
|
378
397
|
"failures": [],
|
|
379
398
|
"pending": [],
|
|
@@ -384,7 +403,7 @@
|
|
|
384
403
|
"_timeout": 2000
|
|
385
404
|
},
|
|
386
405
|
{
|
|
387
|
-
"uuid": "
|
|
406
|
+
"uuid": "8b1d8bab-2211-4d64-8b78-47afe0722789",
|
|
388
407
|
"title": "start|stopListening()",
|
|
389
408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
390
409
|
"file": "/test/device-events.ts",
|
|
@@ -402,10 +421,10 @@
|
|
|
402
421
|
"fail": false,
|
|
403
422
|
"pending": false,
|
|
404
423
|
"context": null,
|
|
405
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new
|
|
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});",
|
|
406
425
|
"err": {},
|
|
407
|
-
"uuid": "
|
|
408
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "21a5eb21-26af-4632-a1ae-3cd64420e6fb",
|
|
427
|
+
"parentUUID": "8b1d8bab-2211-4d64-8b78-47afe0722789",
|
|
409
428
|
"isHook": false,
|
|
410
429
|
"skipped": false
|
|
411
430
|
},
|
|
@@ -413,17 +432,17 @@
|
|
|
413
432
|
"title": "should emit error on stderr data",
|
|
414
433
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error on stderr data",
|
|
415
434
|
"timedOut": false,
|
|
416
|
-
"duration":
|
|
435
|
+
"duration": 2,
|
|
417
436
|
"state": "passed",
|
|
418
437
|
"speed": "fast",
|
|
419
438
|
"pass": true,
|
|
420
439
|
"fail": false,
|
|
421
440
|
"pending": false,
|
|
422
441
|
"context": null,
|
|
423
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
424
443
|
"err": {},
|
|
425
|
-
"uuid": "
|
|
426
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "ebf0107c-5db1-4132-9568-4d5ed3c43df2",
|
|
445
|
+
"parentUUID": "8b1d8bab-2211-4d64-8b78-47afe0722789",
|
|
427
446
|
"isHook": false,
|
|
428
447
|
"skipped": false
|
|
429
448
|
},
|
|
@@ -431,17 +450,17 @@
|
|
|
431
450
|
"title": "should emit error if stdout is not valid json",
|
|
432
451
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if stdout is not valid json",
|
|
433
452
|
"timedOut": false,
|
|
434
|
-
"duration":
|
|
453
|
+
"duration": 2,
|
|
435
454
|
"state": "passed",
|
|
436
455
|
"speed": "fast",
|
|
437
456
|
"pass": true,
|
|
438
457
|
"fail": false,
|
|
439
458
|
"pending": false,
|
|
440
459
|
"context": null,
|
|
441
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
442
461
|
"err": {},
|
|
443
|
-
"uuid": "
|
|
444
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "40fce6b4-7ee3-4f54-82ed-09da1bb19ded",
|
|
463
|
+
"parentUUID": "8b1d8bab-2211-4d64-8b78-47afe0722789",
|
|
445
464
|
"isHook": false,
|
|
446
465
|
"skipped": false
|
|
447
466
|
},
|
|
@@ -458,30 +477,30 @@
|
|
|
458
477
|
"context": null,
|
|
459
478
|
"code": "",
|
|
460
479
|
"err": {},
|
|
461
|
-
"uuid": "
|
|
462
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "ab8ec48d-a11b-448d-bc9c-3801c8495e29",
|
|
481
|
+
"parentUUID": "8b1d8bab-2211-4d64-8b78-47afe0722789",
|
|
463
482
|
"isHook": false,
|
|
464
483
|
"skipped": false
|
|
465
484
|
}
|
|
466
485
|
],
|
|
467
486
|
"suites": [],
|
|
468
487
|
"passes": [
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
488
|
+
"21a5eb21-26af-4632-a1ae-3cd64420e6fb",
|
|
489
|
+
"ebf0107c-5db1-4132-9568-4d5ed3c43df2",
|
|
490
|
+
"40fce6b4-7ee3-4f54-82ed-09da1bb19ded"
|
|
472
491
|
],
|
|
473
492
|
"failures": [],
|
|
474
493
|
"pending": [
|
|
475
|
-
"
|
|
494
|
+
"ab8ec48d-a11b-448d-bc9c-3801c8495e29"
|
|
476
495
|
],
|
|
477
496
|
"skipped": [],
|
|
478
|
-
"duration":
|
|
497
|
+
"duration": 6,
|
|
479
498
|
"root": false,
|
|
480
499
|
"rootEmpty": false,
|
|
481
500
|
"_timeout": 2000
|
|
482
501
|
},
|
|
483
502
|
{
|
|
484
|
-
"uuid": "
|
|
503
|
+
"uuid": "9bf7d73d-1dca-49f8-9f2c-5ea6a598a18f",
|
|
485
504
|
"title": "addListener() / removeAllListeners()",
|
|
486
505
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
487
506
|
"file": "/test/device-events.ts",
|
|
@@ -492,35 +511,35 @@
|
|
|
492
511
|
"title": "should work without any exceptions",
|
|
493
512
|
"fullTitle": "NodePyATVDeviceEvents addListener() / removeAllListeners() should work without any exceptions",
|
|
494
513
|
"timedOut": false,
|
|
495
|
-
"duration":
|
|
514
|
+
"duration": 0,
|
|
496
515
|
"state": "passed",
|
|
497
516
|
"speed": "fast",
|
|
498
517
|
"pass": true,
|
|
499
518
|
"fail": false,
|
|
500
519
|
"pending": false,
|
|
501
520
|
"context": null,
|
|
502
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
503
522
|
"err": {},
|
|
504
|
-
"uuid": "
|
|
505
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "4be171a1-0ebf-4cee-b0e4-67bc33555bf6",
|
|
524
|
+
"parentUUID": "9bf7d73d-1dca-49f8-9f2c-5ea6a598a18f",
|
|
506
525
|
"isHook": false,
|
|
507
526
|
"skipped": false
|
|
508
527
|
}
|
|
509
528
|
],
|
|
510
529
|
"suites": [],
|
|
511
530
|
"passes": [
|
|
512
|
-
"
|
|
531
|
+
"4be171a1-0ebf-4cee-b0e4-67bc33555bf6"
|
|
513
532
|
],
|
|
514
533
|
"failures": [],
|
|
515
534
|
"pending": [],
|
|
516
535
|
"skipped": [],
|
|
517
|
-
"duration":
|
|
536
|
+
"duration": 0,
|
|
518
537
|
"root": false,
|
|
519
538
|
"rootEmpty": false,
|
|
520
539
|
"_timeout": 2000
|
|
521
540
|
},
|
|
522
541
|
{
|
|
523
|
-
"uuid": "
|
|
542
|
+
"uuid": "fa1eacb0-89b3-4bda-b659-401bc9cef727",
|
|
524
543
|
"title": "emit()",
|
|
525
544
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
526
545
|
"file": "/test/device-events.ts",
|
|
@@ -538,17 +557,17 @@
|
|
|
538
557
|
"fail": false,
|
|
539
558
|
"pending": false,
|
|
540
559
|
"context": null,
|
|
541
|
-
"code": "const device = new
|
|
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);",
|
|
542
561
|
"err": {},
|
|
543
|
-
"uuid": "
|
|
544
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "eebfba55-0151-44f2-856a-0890b60115ba",
|
|
563
|
+
"parentUUID": "fa1eacb0-89b3-4bda-b659-401bc9cef727",
|
|
545
564
|
"isHook": false,
|
|
546
565
|
"skipped": false
|
|
547
566
|
}
|
|
548
567
|
],
|
|
549
568
|
"suites": [],
|
|
550
569
|
"passes": [
|
|
551
|
-
"
|
|
570
|
+
"eebfba55-0151-44f2-856a-0890b60115ba"
|
|
552
571
|
],
|
|
553
572
|
"failures": [],
|
|
554
573
|
"pending": [],
|
|
@@ -559,7 +578,7 @@
|
|
|
559
578
|
"_timeout": 2000
|
|
560
579
|
},
|
|
561
580
|
{
|
|
562
|
-
"uuid": "
|
|
581
|
+
"uuid": "36e09bc6-72fe-41d5-bbc5-5184be92998d",
|
|
563
582
|
"title": "eventNames()",
|
|
564
583
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
565
584
|
"file": "/test/device-events.ts",
|
|
@@ -570,35 +589,35 @@
|
|
|
570
589
|
"title": "should work",
|
|
571
590
|
"fullTitle": "NodePyATVDeviceEvents eventNames() should work",
|
|
572
591
|
"timedOut": false,
|
|
573
|
-
"duration":
|
|
592
|
+
"duration": 1,
|
|
574
593
|
"state": "passed",
|
|
575
594
|
"speed": "fast",
|
|
576
595
|
"pass": true,
|
|
577
596
|
"fail": false,
|
|
578
597
|
"pending": false,
|
|
579
598
|
"context": null,
|
|
580
|
-
"code": "const device = new
|
|
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);",
|
|
581
600
|
"err": {},
|
|
582
|
-
"uuid": "
|
|
583
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "1691ffdd-d9a9-48c7-8fbd-5ff54976491b",
|
|
602
|
+
"parentUUID": "36e09bc6-72fe-41d5-bbc5-5184be92998d",
|
|
584
603
|
"isHook": false,
|
|
585
604
|
"skipped": false
|
|
586
605
|
}
|
|
587
606
|
],
|
|
588
607
|
"suites": [],
|
|
589
608
|
"passes": [
|
|
590
|
-
"
|
|
609
|
+
"1691ffdd-d9a9-48c7-8fbd-5ff54976491b"
|
|
591
610
|
],
|
|
592
611
|
"failures": [],
|
|
593
612
|
"pending": [],
|
|
594
613
|
"skipped": [],
|
|
595
|
-
"duration":
|
|
614
|
+
"duration": 1,
|
|
596
615
|
"root": false,
|
|
597
616
|
"rootEmpty": false,
|
|
598
617
|
"_timeout": 2000
|
|
599
618
|
},
|
|
600
619
|
{
|
|
601
|
-
"uuid": "
|
|
620
|
+
"uuid": "d9be95a1-f948-4200-b5ff-8bd91ab2aa4c",
|
|
602
621
|
"title": "getMaxListeners()",
|
|
603
622
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
604
623
|
"file": "/test/device-events.ts",
|
|
@@ -616,17 +635,17 @@
|
|
|
616
635
|
"fail": false,
|
|
617
636
|
"pending": false,
|
|
618
637
|
"context": null,
|
|
619
|
-
"code": "const device = new
|
|
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);",
|
|
620
639
|
"err": {},
|
|
621
|
-
"uuid": "
|
|
622
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "eec72335-b692-433d-9343-0d8f75e3dae7",
|
|
641
|
+
"parentUUID": "d9be95a1-f948-4200-b5ff-8bd91ab2aa4c",
|
|
623
642
|
"isHook": false,
|
|
624
643
|
"skipped": false
|
|
625
644
|
}
|
|
626
645
|
],
|
|
627
646
|
"suites": [],
|
|
628
647
|
"passes": [
|
|
629
|
-
"
|
|
648
|
+
"eec72335-b692-433d-9343-0d8f75e3dae7"
|
|
630
649
|
],
|
|
631
650
|
"failures": [],
|
|
632
651
|
"pending": [],
|
|
@@ -637,7 +656,7 @@
|
|
|
637
656
|
"_timeout": 2000
|
|
638
657
|
},
|
|
639
658
|
{
|
|
640
|
-
"uuid": "
|
|
659
|
+
"uuid": "1f7af3b3-59de-4736-8b3c-c1d740ab872c",
|
|
641
660
|
"title": "listenerCount()",
|
|
642
661
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
643
662
|
"file": "/test/device-events.ts",
|
|
@@ -648,35 +667,35 @@
|
|
|
648
667
|
"title": "should work",
|
|
649
668
|
"fullTitle": "NodePyATVDeviceEvents listenerCount() should work",
|
|
650
669
|
"timedOut": false,
|
|
651
|
-
"duration":
|
|
670
|
+
"duration": 1,
|
|
652
671
|
"state": "passed",
|
|
653
672
|
"speed": "fast",
|
|
654
673
|
"pass": true,
|
|
655
674
|
"fail": false,
|
|
656
675
|
"pending": false,
|
|
657
676
|
"context": null,
|
|
658
|
-
"code": "const device = new
|
|
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);",
|
|
659
678
|
"err": {},
|
|
660
|
-
"uuid": "
|
|
661
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "b950d484-f86e-4a0d-9e99-e39ee6755175",
|
|
680
|
+
"parentUUID": "1f7af3b3-59de-4736-8b3c-c1d740ab872c",
|
|
662
681
|
"isHook": false,
|
|
663
682
|
"skipped": false
|
|
664
683
|
}
|
|
665
684
|
],
|
|
666
685
|
"suites": [],
|
|
667
686
|
"passes": [
|
|
668
|
-
"
|
|
687
|
+
"b950d484-f86e-4a0d-9e99-e39ee6755175"
|
|
669
688
|
],
|
|
670
689
|
"failures": [],
|
|
671
690
|
"pending": [],
|
|
672
691
|
"skipped": [],
|
|
673
|
-
"duration":
|
|
692
|
+
"duration": 1,
|
|
674
693
|
"root": false,
|
|
675
694
|
"rootEmpty": false,
|
|
676
695
|
"_timeout": 2000
|
|
677
696
|
},
|
|
678
697
|
{
|
|
679
|
-
"uuid": "
|
|
698
|
+
"uuid": "1f666fe3-bc7a-4b37-a8fd-e6ecb64891cd",
|
|
680
699
|
"title": "listeners()",
|
|
681
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
682
701
|
"file": "/test/device-events.ts",
|
|
@@ -694,17 +713,17 @@
|
|
|
694
713
|
"fail": false,
|
|
695
714
|
"pending": false,
|
|
696
715
|
"context": null,
|
|
697
|
-
"code": "const device = new
|
|
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);",
|
|
698
717
|
"err": {},
|
|
699
|
-
"uuid": "
|
|
700
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "8f7ef931-0aa5-4b4e-8f6d-607808740fc7",
|
|
719
|
+
"parentUUID": "1f666fe3-bc7a-4b37-a8fd-e6ecb64891cd",
|
|
701
720
|
"isHook": false,
|
|
702
721
|
"skipped": false
|
|
703
722
|
}
|
|
704
723
|
],
|
|
705
724
|
"suites": [],
|
|
706
725
|
"passes": [
|
|
707
|
-
"
|
|
726
|
+
"8f7ef931-0aa5-4b4e-8f6d-607808740fc7"
|
|
708
727
|
],
|
|
709
728
|
"failures": [],
|
|
710
729
|
"pending": [],
|
|
@@ -715,7 +734,7 @@
|
|
|
715
734
|
"_timeout": 2000
|
|
716
735
|
},
|
|
717
736
|
{
|
|
718
|
-
"uuid": "
|
|
737
|
+
"uuid": "7e2cf74b-4c87-4845-afd8-9fc241f8ddb7",
|
|
719
738
|
"title": "prependListener()",
|
|
720
739
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
721
740
|
"file": "/test/device-events.ts",
|
|
@@ -733,17 +752,17 @@
|
|
|
733
752
|
"fail": false,
|
|
734
753
|
"pending": false,
|
|
735
754
|
"context": null,
|
|
736
|
-
"code": "const device = new
|
|
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);",
|
|
737
756
|
"err": {},
|
|
738
|
-
"uuid": "
|
|
739
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "503ea339-b090-429a-8a87-86d3842e06f7",
|
|
758
|
+
"parentUUID": "7e2cf74b-4c87-4845-afd8-9fc241f8ddb7",
|
|
740
759
|
"isHook": false,
|
|
741
760
|
"skipped": false
|
|
742
761
|
}
|
|
743
762
|
],
|
|
744
763
|
"suites": [],
|
|
745
764
|
"passes": [
|
|
746
|
-
"
|
|
765
|
+
"503ea339-b090-429a-8a87-86d3842e06f7"
|
|
747
766
|
],
|
|
748
767
|
"failures": [],
|
|
749
768
|
"pending": [],
|
|
@@ -754,7 +773,7 @@
|
|
|
754
773
|
"_timeout": 2000
|
|
755
774
|
},
|
|
756
775
|
{
|
|
757
|
-
"uuid": "
|
|
776
|
+
"uuid": "1a19443e-5242-4f43-bd66-5f0d32221001",
|
|
758
777
|
"title": "prependOnceListener()",
|
|
759
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
760
779
|
"file": "/test/device-events.ts",
|
|
@@ -765,35 +784,35 @@
|
|
|
765
784
|
"title": "should work",
|
|
766
785
|
"fullTitle": "NodePyATVDeviceEvents prependOnceListener() should work",
|
|
767
786
|
"timedOut": false,
|
|
768
|
-
"duration":
|
|
787
|
+
"duration": 1,
|
|
769
788
|
"state": "passed",
|
|
770
789
|
"speed": "fast",
|
|
771
790
|
"pass": true,
|
|
772
791
|
"fail": false,
|
|
773
792
|
"pending": false,
|
|
774
793
|
"context": null,
|
|
775
|
-
"code": "const device = new
|
|
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());",
|
|
776
795
|
"err": {},
|
|
777
|
-
"uuid": "
|
|
778
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "cc8c7d0f-15c5-49a2-8335-279610f03c54",
|
|
797
|
+
"parentUUID": "1a19443e-5242-4f43-bd66-5f0d32221001",
|
|
779
798
|
"isHook": false,
|
|
780
799
|
"skipped": false
|
|
781
800
|
}
|
|
782
801
|
],
|
|
783
802
|
"suites": [],
|
|
784
803
|
"passes": [
|
|
785
|
-
"
|
|
804
|
+
"cc8c7d0f-15c5-49a2-8335-279610f03c54"
|
|
786
805
|
],
|
|
787
806
|
"failures": [],
|
|
788
807
|
"pending": [],
|
|
789
808
|
"skipped": [],
|
|
790
|
-
"duration":
|
|
809
|
+
"duration": 1,
|
|
791
810
|
"root": false,
|
|
792
811
|
"rootEmpty": false,
|
|
793
812
|
"_timeout": 2000
|
|
794
813
|
},
|
|
795
814
|
{
|
|
796
|
-
"uuid": "
|
|
815
|
+
"uuid": "2c804050-11ab-4502-9ba3-1a7b76719e79",
|
|
797
816
|
"title": "rawListeners()",
|
|
798
817
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
799
818
|
"file": "/test/device-events.ts",
|
|
@@ -811,17 +830,17 @@
|
|
|
811
830
|
"fail": false,
|
|
812
831
|
"pending": false,
|
|
813
832
|
"context": null,
|
|
814
|
-
"code": "const device = new
|
|
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);",
|
|
815
834
|
"err": {},
|
|
816
|
-
"uuid": "
|
|
817
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "e7e5d83b-e327-416f-b359-3eaccdce7ec7",
|
|
836
|
+
"parentUUID": "2c804050-11ab-4502-9ba3-1a7b76719e79",
|
|
818
837
|
"isHook": false,
|
|
819
838
|
"skipped": false
|
|
820
839
|
}
|
|
821
840
|
],
|
|
822
841
|
"suites": [],
|
|
823
842
|
"passes": [
|
|
824
|
-
"
|
|
843
|
+
"e7e5d83b-e327-416f-b359-3eaccdce7ec7"
|
|
825
844
|
],
|
|
826
845
|
"failures": [],
|
|
827
846
|
"pending": [],
|
|
@@ -832,7 +851,7 @@
|
|
|
832
851
|
"_timeout": 2000
|
|
833
852
|
},
|
|
834
853
|
{
|
|
835
|
-
"uuid": "
|
|
854
|
+
"uuid": "8edd7fb7-2e8d-4718-bccf-f1c03c680020",
|
|
836
855
|
"title": "removeListener()",
|
|
837
856
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
838
857
|
"file": "/test/device-events.ts",
|
|
@@ -843,29 +862,29 @@
|
|
|
843
862
|
"title": "should work without any exceptions",
|
|
844
863
|
"fullTitle": "NodePyATVDeviceEvents removeListener() should work without any exceptions",
|
|
845
864
|
"timedOut": false,
|
|
846
|
-
"duration":
|
|
865
|
+
"duration": 1,
|
|
847
866
|
"state": "passed",
|
|
848
867
|
"speed": "fast",
|
|
849
868
|
"pass": true,
|
|
850
869
|
"fail": false,
|
|
851
870
|
"pending": false,
|
|
852
871
|
"context": null,
|
|
853
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
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});",
|
|
854
873
|
"err": {},
|
|
855
|
-
"uuid": "
|
|
856
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "a9590f54-b4cd-4ae6-8043-895338e77faf",
|
|
875
|
+
"parentUUID": "8edd7fb7-2e8d-4718-bccf-f1c03c680020",
|
|
857
876
|
"isHook": false,
|
|
858
877
|
"skipped": false
|
|
859
878
|
}
|
|
860
879
|
],
|
|
861
880
|
"suites": [],
|
|
862
881
|
"passes": [
|
|
863
|
-
"
|
|
882
|
+
"a9590f54-b4cd-4ae6-8043-895338e77faf"
|
|
864
883
|
],
|
|
865
884
|
"failures": [],
|
|
866
885
|
"pending": [],
|
|
867
886
|
"skipped": [],
|
|
868
|
-
"duration":
|
|
887
|
+
"duration": 1,
|
|
869
888
|
"root": false,
|
|
870
889
|
"rootEmpty": false,
|
|
871
890
|
"_timeout": 2000
|
|
@@ -881,7 +900,7 @@
|
|
|
881
900
|
"_timeout": 2000
|
|
882
901
|
},
|
|
883
902
|
{
|
|
884
|
-
"uuid": "
|
|
903
|
+
"uuid": "1ea5a9d0-3730-4802-b370-b61af8ebf469",
|
|
885
904
|
"title": "NodePyATVDevice",
|
|
886
905
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
887
906
|
"file": "/test/device.ts",
|
|
@@ -890,7 +909,7 @@
|
|
|
890
909
|
"tests": [],
|
|
891
910
|
"suites": [
|
|
892
911
|
{
|
|
893
|
-
"uuid": "
|
|
912
|
+
"uuid": "9812a57c-3bfc-489d-8dd7-8b9e6402a266",
|
|
894
913
|
"title": "get name()",
|
|
895
914
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
896
915
|
"file": "/test/device.ts",
|
|
@@ -910,15 +929,15 @@
|
|
|
910
929
|
"context": null,
|
|
911
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');",
|
|
912
931
|
"err": {},
|
|
913
|
-
"uuid": "
|
|
914
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "651af698-577d-4cb5-826c-c856ed816fa9",
|
|
933
|
+
"parentUUID": "9812a57c-3bfc-489d-8dd7-8b9e6402a266",
|
|
915
934
|
"isHook": false,
|
|
916
935
|
"skipped": false
|
|
917
936
|
}
|
|
918
937
|
],
|
|
919
938
|
"suites": [],
|
|
920
939
|
"passes": [
|
|
921
|
-
"
|
|
940
|
+
"651af698-577d-4cb5-826c-c856ed816fa9"
|
|
922
941
|
],
|
|
923
942
|
"failures": [],
|
|
924
943
|
"pending": [],
|
|
@@ -929,7 +948,7 @@
|
|
|
929
948
|
"_timeout": 2000
|
|
930
949
|
},
|
|
931
950
|
{
|
|
932
|
-
"uuid": "
|
|
951
|
+
"uuid": "5f071690-ea60-43ee-89a3-6bd66ee05201",
|
|
933
952
|
"title": "get host()",
|
|
934
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
935
954
|
"file": "/test/device.ts",
|
|
@@ -949,15 +968,15 @@
|
|
|
949
968
|
"context": null,
|
|
950
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');",
|
|
951
970
|
"err": {},
|
|
952
|
-
"uuid": "
|
|
953
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "a614a115-f8a6-4658-99c4-921103c56d76",
|
|
972
|
+
"parentUUID": "5f071690-ea60-43ee-89a3-6bd66ee05201",
|
|
954
973
|
"isHook": false,
|
|
955
974
|
"skipped": false
|
|
956
975
|
}
|
|
957
976
|
],
|
|
958
977
|
"suites": [],
|
|
959
978
|
"passes": [
|
|
960
|
-
"
|
|
979
|
+
"a614a115-f8a6-4658-99c4-921103c56d76"
|
|
961
980
|
],
|
|
962
981
|
"failures": [],
|
|
963
982
|
"pending": [],
|
|
@@ -968,7 +987,7 @@
|
|
|
968
987
|
"_timeout": 2000
|
|
969
988
|
},
|
|
970
989
|
{
|
|
971
|
-
"uuid": "
|
|
990
|
+
"uuid": "217875fa-53fd-4422-a038-7eb1d0a842ac",
|
|
972
991
|
"title": "get id()",
|
|
973
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
974
993
|
"file": "/test/device.ts",
|
|
@@ -988,15 +1007,15 @@
|
|
|
988
1007
|
"context": null,
|
|
989
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, '*****');",
|
|
990
1009
|
"err": {},
|
|
991
|
-
"uuid": "
|
|
992
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "4ad6b762-c971-40e9-8a71-d85699cd979c",
|
|
1011
|
+
"parentUUID": "217875fa-53fd-4422-a038-7eb1d0a842ac",
|
|
993
1012
|
"isHook": false,
|
|
994
1013
|
"skipped": false
|
|
995
1014
|
}
|
|
996
1015
|
],
|
|
997
1016
|
"suites": [],
|
|
998
1017
|
"passes": [
|
|
999
|
-
"
|
|
1018
|
+
"4ad6b762-c971-40e9-8a71-d85699cd979c"
|
|
1000
1019
|
],
|
|
1001
1020
|
"failures": [],
|
|
1002
1021
|
"pending": [],
|
|
@@ -1007,7 +1026,7 @@
|
|
|
1007
1026
|
"_timeout": 2000
|
|
1008
1027
|
},
|
|
1009
1028
|
{
|
|
1010
|
-
"uuid": "
|
|
1029
|
+
"uuid": "f1d2d8f3-4915-42a9-8444-c88ebc24586f",
|
|
1011
1030
|
"title": "get protocol()",
|
|
1012
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1013
1032
|
"file": "/test/device.ts",
|
|
@@ -1018,7 +1037,7 @@
|
|
|
1018
1037
|
"title": "should return the protocol",
|
|
1019
1038
|
"fullTitle": "NodePyATVDevice get protocol() should return the protocol",
|
|
1020
1039
|
"timedOut": false,
|
|
1021
|
-
"duration":
|
|
1040
|
+
"duration": 0,
|
|
1022
1041
|
"state": "passed",
|
|
1023
1042
|
"speed": "fast",
|
|
1024
1043
|
"pass": true,
|
|
@@ -1027,26 +1046,26 @@
|
|
|
1027
1046
|
"context": null,
|
|
1028
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);",
|
|
1029
1048
|
"err": {},
|
|
1030
|
-
"uuid": "
|
|
1031
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "a1263ad8-2149-445d-94f7-733401baa1c8",
|
|
1050
|
+
"parentUUID": "f1d2d8f3-4915-42a9-8444-c88ebc24586f",
|
|
1032
1051
|
"isHook": false,
|
|
1033
1052
|
"skipped": false
|
|
1034
1053
|
}
|
|
1035
1054
|
],
|
|
1036
1055
|
"suites": [],
|
|
1037
1056
|
"passes": [
|
|
1038
|
-
"
|
|
1057
|
+
"a1263ad8-2149-445d-94f7-733401baa1c8"
|
|
1039
1058
|
],
|
|
1040
1059
|
"failures": [],
|
|
1041
1060
|
"pending": [],
|
|
1042
1061
|
"skipped": [],
|
|
1043
|
-
"duration":
|
|
1062
|
+
"duration": 0,
|
|
1044
1063
|
"root": false,
|
|
1045
1064
|
"rootEmpty": false,
|
|
1046
1065
|
"_timeout": 2000
|
|
1047
1066
|
},
|
|
1048
1067
|
{
|
|
1049
|
-
"uuid": "
|
|
1068
|
+
"uuid": "d17fc287-1d41-4273-a329-c7786bf71ff2",
|
|
1050
1069
|
"title": "get debug()",
|
|
1051
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1052
1071
|
"file": "/test/device.ts",
|
|
@@ -1057,7 +1076,7 @@
|
|
|
1057
1076
|
"title": "should return true if set to true",
|
|
1058
1077
|
"fullTitle": "NodePyATVDevice get debug() should return true if set to true",
|
|
1059
1078
|
"timedOut": false,
|
|
1060
|
-
"duration":
|
|
1079
|
+
"duration": 1,
|
|
1061
1080
|
"state": "passed",
|
|
1062
1081
|
"speed": "fast",
|
|
1063
1082
|
"pass": true,
|
|
@@ -1066,8 +1085,8 @@
|
|
|
1066
1085
|
"context": null,
|
|
1067
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);",
|
|
1068
1087
|
"err": {},
|
|
1069
|
-
"uuid": "
|
|
1070
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "a8f7a507-98db-4be8-9c15-3d2707fcb572",
|
|
1089
|
+
"parentUUID": "d17fc287-1d41-4273-a329-c7786bf71ff2",
|
|
1071
1090
|
"isHook": false,
|
|
1072
1091
|
"skipped": false
|
|
1073
1092
|
},
|
|
@@ -1084,8 +1103,8 @@
|
|
|
1084
1103
|
"context": null,
|
|
1085
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);",
|
|
1086
1105
|
"err": {},
|
|
1087
|
-
"uuid": "
|
|
1088
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "b8e8ccc9-b488-4244-87ce-8867cdb44863",
|
|
1107
|
+
"parentUUID": "d17fc287-1d41-4273-a329-c7786bf71ff2",
|
|
1089
1108
|
"isHook": false,
|
|
1090
1109
|
"skipped": false
|
|
1091
1110
|
},
|
|
@@ -1093,7 +1112,7 @@
|
|
|
1093
1112
|
"title": "should return false if unset",
|
|
1094
1113
|
"fullTitle": "NodePyATVDevice get debug() should return false if unset",
|
|
1095
1114
|
"timedOut": false,
|
|
1096
|
-
"duration":
|
|
1115
|
+
"duration": 0,
|
|
1097
1116
|
"state": "passed",
|
|
1098
1117
|
"speed": "fast",
|
|
1099
1118
|
"pass": true,
|
|
@@ -1102,17 +1121,17 @@
|
|
|
1102
1121
|
"context": null,
|
|
1103
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);",
|
|
1104
1123
|
"err": {},
|
|
1105
|
-
"uuid": "
|
|
1106
|
-
"parentUUID": "
|
|
1124
|
+
"uuid": "260c2ab6-893c-4e24-8f30-dc7ac5d332a6",
|
|
1125
|
+
"parentUUID": "d17fc287-1d41-4273-a329-c7786bf71ff2",
|
|
1107
1126
|
"isHook": false,
|
|
1108
1127
|
"skipped": false
|
|
1109
1128
|
}
|
|
1110
1129
|
],
|
|
1111
1130
|
"suites": [],
|
|
1112
1131
|
"passes": [
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1132
|
+
"a8f7a507-98db-4be8-9c15-3d2707fcb572",
|
|
1133
|
+
"b8e8ccc9-b488-4244-87ce-8867cdb44863",
|
|
1134
|
+
"260c2ab6-893c-4e24-8f30-dc7ac5d332a6"
|
|
1116
1135
|
],
|
|
1117
1136
|
"failures": [],
|
|
1118
1137
|
"pending": [],
|
|
@@ -1123,7 +1142,7 @@
|
|
|
1123
1142
|
"_timeout": 2000
|
|
1124
1143
|
},
|
|
1125
1144
|
{
|
|
1126
|
-
"uuid": "
|
|
1145
|
+
"uuid": "bac9f29a-8419-4f18-806f-9d2ffd97f65a",
|
|
1127
1146
|
"title": "set debug()",
|
|
1128
1147
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1129
1148
|
"file": "/test/device.ts",
|
|
@@ -1143,8 +1162,8 @@
|
|
|
1143
1162
|
"context": null,
|
|
1144
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);",
|
|
1145
1164
|
"err": {},
|
|
1146
|
-
"uuid": "
|
|
1147
|
-
"parentUUID": "
|
|
1165
|
+
"uuid": "184f6a3b-e74d-47b2-b1c5-b60a7b487b84",
|
|
1166
|
+
"parentUUID": "bac9f29a-8419-4f18-806f-9d2ffd97f65a",
|
|
1148
1167
|
"isHook": false,
|
|
1149
1168
|
"skipped": false
|
|
1150
1169
|
},
|
|
@@ -1161,8 +1180,8 @@
|
|
|
1161
1180
|
"context": null,
|
|
1162
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);",
|
|
1163
1182
|
"err": {},
|
|
1164
|
-
"uuid": "
|
|
1165
|
-
"parentUUID": "
|
|
1183
|
+
"uuid": "b3a95188-15c6-4d4f-9c9d-fb4b717fe801",
|
|
1184
|
+
"parentUUID": "bac9f29a-8419-4f18-806f-9d2ffd97f65a",
|
|
1166
1185
|
"isHook": false,
|
|
1167
1186
|
"skipped": false
|
|
1168
1187
|
},
|
|
@@ -1179,8 +1198,8 @@
|
|
|
1179
1198
|
"context": null,
|
|
1180
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);",
|
|
1181
1200
|
"err": {},
|
|
1182
|
-
"uuid": "
|
|
1183
|
-
"parentUUID": "
|
|
1201
|
+
"uuid": "38d44480-8cd0-406a-9e54-7587efc28804",
|
|
1202
|
+
"parentUUID": "bac9f29a-8419-4f18-806f-9d2ffd97f65a",
|
|
1184
1203
|
"isHook": false,
|
|
1185
1204
|
"skipped": false
|
|
1186
1205
|
},
|
|
@@ -1197,18 +1216,18 @@
|
|
|
1197
1216
|
"context": null,
|
|
1198
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);",
|
|
1199
1218
|
"err": {},
|
|
1200
|
-
"uuid": "
|
|
1201
|
-
"parentUUID": "
|
|
1219
|
+
"uuid": "aceb7d16-1c75-4a6b-9da6-715ae564fe1a",
|
|
1220
|
+
"parentUUID": "bac9f29a-8419-4f18-806f-9d2ffd97f65a",
|
|
1202
1221
|
"isHook": false,
|
|
1203
1222
|
"skipped": false
|
|
1204
1223
|
}
|
|
1205
1224
|
],
|
|
1206
1225
|
"suites": [],
|
|
1207
1226
|
"passes": [
|
|
1208
|
-
"
|
|
1209
|
-
"
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1227
|
+
"184f6a3b-e74d-47b2-b1c5-b60a7b487b84",
|
|
1228
|
+
"b3a95188-15c6-4d4f-9c9d-fb4b717fe801",
|
|
1229
|
+
"38d44480-8cd0-406a-9e54-7587efc28804",
|
|
1230
|
+
"aceb7d16-1c75-4a6b-9da6-715ae564fe1a"
|
|
1212
1231
|
],
|
|
1213
1232
|
"failures": [],
|
|
1214
1233
|
"pending": [],
|
|
@@ -1219,7 +1238,7 @@
|
|
|
1219
1238
|
"_timeout": 2000
|
|
1220
1239
|
},
|
|
1221
1240
|
{
|
|
1222
|
-
"uuid": "
|
|
1241
|
+
"uuid": "2adeb690-a823-4388-a3ed-c5a39e42190e",
|
|
1223
1242
|
"title": "toJSON()",
|
|
1224
1243
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1225
1244
|
"file": "/test/device.ts",
|
|
@@ -1239,8 +1258,8 @@
|
|
|
1239
1258
|
"context": null,
|
|
1240
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});",
|
|
1241
1260
|
"err": {},
|
|
1242
|
-
"uuid": "
|
|
1243
|
-
"parentUUID": "
|
|
1261
|
+
"uuid": "f7ba2f36-dfbe-44c5-8792-bd32f61a0a92",
|
|
1262
|
+
"parentUUID": "2adeb690-a823-4388-a3ed-c5a39e42190e",
|
|
1244
1263
|
"isHook": false,
|
|
1245
1264
|
"skipped": false
|
|
1246
1265
|
},
|
|
@@ -1248,7 +1267,7 @@
|
|
|
1248
1267
|
"title": "should be possible to create a new device from this",
|
|
1249
1268
|
"fullTitle": "NodePyATVDevice toJSON() should be possible to create a new device from this",
|
|
1250
1269
|
"timedOut": false,
|
|
1251
|
-
"duration":
|
|
1270
|
+
"duration": 0,
|
|
1252
1271
|
"state": "passed",
|
|
1253
1272
|
"speed": "fast",
|
|
1254
1273
|
"pass": true,
|
|
@@ -1257,27 +1276,27 @@
|
|
|
1257
1276
|
"context": null,
|
|
1258
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);",
|
|
1259
1278
|
"err": {},
|
|
1260
|
-
"uuid": "
|
|
1261
|
-
"parentUUID": "
|
|
1279
|
+
"uuid": "f6ad9b8c-5b2d-47a8-80ca-69852e60c3e9",
|
|
1280
|
+
"parentUUID": "2adeb690-a823-4388-a3ed-c5a39e42190e",
|
|
1262
1281
|
"isHook": false,
|
|
1263
1282
|
"skipped": false
|
|
1264
1283
|
}
|
|
1265
1284
|
],
|
|
1266
1285
|
"suites": [],
|
|
1267
1286
|
"passes": [
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1287
|
+
"f7ba2f36-dfbe-44c5-8792-bd32f61a0a92",
|
|
1288
|
+
"f6ad9b8c-5b2d-47a8-80ca-69852e60c3e9"
|
|
1270
1289
|
],
|
|
1271
1290
|
"failures": [],
|
|
1272
1291
|
"pending": [],
|
|
1273
1292
|
"skipped": [],
|
|
1274
|
-
"duration":
|
|
1293
|
+
"duration": 0,
|
|
1275
1294
|
"root": false,
|
|
1276
1295
|
"rootEmpty": false,
|
|
1277
1296
|
"_timeout": 2000
|
|
1278
1297
|
},
|
|
1279
1298
|
{
|
|
1280
|
-
"uuid": "
|
|
1299
|
+
"uuid": "edb40c7a-dd89-4b31-ba78-ee397a6c6aa5",
|
|
1281
1300
|
"title": "toString()",
|
|
1282
1301
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1283
1302
|
"file": "/test/device.ts",
|
|
@@ -1297,15 +1316,15 @@
|
|
|
1297
1316
|
"context": null,
|
|
1298
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)');",
|
|
1299
1318
|
"err": {},
|
|
1300
|
-
"uuid": "
|
|
1301
|
-
"parentUUID": "
|
|
1319
|
+
"uuid": "f2613c05-7422-47ff-a7c1-8d4621d54cd4",
|
|
1320
|
+
"parentUUID": "edb40c7a-dd89-4b31-ba78-ee397a6c6aa5",
|
|
1302
1321
|
"isHook": false,
|
|
1303
1322
|
"skipped": false
|
|
1304
1323
|
}
|
|
1305
1324
|
],
|
|
1306
1325
|
"suites": [],
|
|
1307
1326
|
"passes": [
|
|
1308
|
-
"
|
|
1327
|
+
"f2613c05-7422-47ff-a7c1-8d4621d54cd4"
|
|
1309
1328
|
],
|
|
1310
1329
|
"failures": [],
|
|
1311
1330
|
"pending": [],
|
|
@@ -1316,7 +1335,7 @@
|
|
|
1316
1335
|
"_timeout": 2000
|
|
1317
1336
|
},
|
|
1318
1337
|
{
|
|
1319
|
-
"uuid": "
|
|
1338
|
+
"uuid": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1320
1339
|
"title": "getState()",
|
|
1321
1340
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1322
1341
|
"file": "/test/device.ts",
|
|
@@ -1336,8 +1355,8 @@
|
|
|
1336
1355
|
"context": null,
|
|
1337
1356
|
"code": "",
|
|
1338
1357
|
"err": {},
|
|
1339
|
-
"uuid": "
|
|
1340
|
-
"parentUUID": "
|
|
1358
|
+
"uuid": "4e8adfc6-fb63-4c6b-90b0-a43508e48203",
|
|
1359
|
+
"parentUUID": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1341
1360
|
"isHook": false,
|
|
1342
1361
|
"skipped": false
|
|
1343
1362
|
},
|
|
@@ -1354,8 +1373,26 @@
|
|
|
1354
1373
|
"context": null,
|
|
1355
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});",
|
|
1356
1375
|
"err": {},
|
|
1357
|
-
"uuid": "
|
|
1358
|
-
"parentUUID": "
|
|
1376
|
+
"uuid": "eceec493-e7ba-4953-8279-3fc71ae6b814",
|
|
1377
|
+
"parentUUID": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1378
|
+
"isHook": false,
|
|
1379
|
+
"skipped": false
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"title": "should reject with error if pyatv fails",
|
|
1383
|
+
"fullTitle": "NodePyATVDevice getState() should reject with error if pyatv fails",
|
|
1384
|
+
"timedOut": false,
|
|
1385
|
+
"duration": 0,
|
|
1386
|
+
"state": "passed",
|
|
1387
|
+
"speed": "fast",
|
|
1388
|
+
"pass": true,
|
|
1389
|
+
"fail": false,
|
|
1390
|
+
"pending": false,
|
|
1391
|
+
"context": null,
|
|
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
|
+
"err": {},
|
|
1394
|
+
"uuid": "d91aafee-4981-4f7b-add9-ab1c1a2a970a",
|
|
1395
|
+
"parentUUID": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1359
1396
|
"isHook": false,
|
|
1360
1397
|
"skipped": false
|
|
1361
1398
|
},
|
|
@@ -1363,7 +1400,7 @@
|
|
|
1363
1400
|
"title": "should cache requests for a bit",
|
|
1364
1401
|
"fullTitle": "NodePyATVDevice getState() should cache requests for a bit",
|
|
1365
1402
|
"timedOut": false,
|
|
1366
|
-
"duration":
|
|
1403
|
+
"duration": 1,
|
|
1367
1404
|
"state": "passed",
|
|
1368
1405
|
"speed": "fast",
|
|
1369
1406
|
"pass": true,
|
|
@@ -1372,8 +1409,8 @@
|
|
|
1372
1409
|
"context": null,
|
|
1373
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});",
|
|
1374
1411
|
"err": {},
|
|
1375
|
-
"uuid": "
|
|
1376
|
-
"parentUUID": "
|
|
1412
|
+
"uuid": "f0404b67-2619-418c-8f5f-c3961a12cd74",
|
|
1413
|
+
"parentUUID": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1377
1414
|
"isHook": false,
|
|
1378
1415
|
"skipped": false
|
|
1379
1416
|
},
|
|
@@ -1381,7 +1418,7 @@
|
|
|
1381
1418
|
"title": "should update the position if cache was used",
|
|
1382
1419
|
"fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
|
|
1383
1420
|
"timedOut": false,
|
|
1384
|
-
"duration":
|
|
1421
|
+
"duration": 1,
|
|
1385
1422
|
"state": "passed",
|
|
1386
1423
|
"speed": "fast",
|
|
1387
1424
|
"pass": true,
|
|
@@ -1390,30 +1427,31 @@
|
|
|
1390
1427
|
"context": null,
|
|
1391
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});",
|
|
1392
1429
|
"err": {},
|
|
1393
|
-
"uuid": "
|
|
1394
|
-
"parentUUID": "
|
|
1430
|
+
"uuid": "f65415eb-1ee8-42dc-b954-065caaa9804e",
|
|
1431
|
+
"parentUUID": "9b532d55-d0a9-41f4-8c0e-1175c8a310da",
|
|
1395
1432
|
"isHook": false,
|
|
1396
1433
|
"skipped": false
|
|
1397
1434
|
}
|
|
1398
1435
|
],
|
|
1399
1436
|
"suites": [],
|
|
1400
1437
|
"passes": [
|
|
1401
|
-
"
|
|
1402
|
-
"
|
|
1403
|
-
"
|
|
1438
|
+
"eceec493-e7ba-4953-8279-3fc71ae6b814",
|
|
1439
|
+
"d91aafee-4981-4f7b-add9-ab1c1a2a970a",
|
|
1440
|
+
"f0404b67-2619-418c-8f5f-c3961a12cd74",
|
|
1441
|
+
"f65415eb-1ee8-42dc-b954-065caaa9804e"
|
|
1404
1442
|
],
|
|
1405
1443
|
"failures": [],
|
|
1406
1444
|
"pending": [
|
|
1407
|
-
"
|
|
1445
|
+
"4e8adfc6-fb63-4c6b-90b0-a43508e48203"
|
|
1408
1446
|
],
|
|
1409
1447
|
"skipped": [],
|
|
1410
|
-
"duration":
|
|
1448
|
+
"duration": 4,
|
|
1411
1449
|
"root": false,
|
|
1412
1450
|
"rootEmpty": false,
|
|
1413
1451
|
"_timeout": 2000
|
|
1414
1452
|
},
|
|
1415
1453
|
{
|
|
1416
|
-
"uuid": "
|
|
1454
|
+
"uuid": "48b4350f-ce9c-4f3a-a65b-c73c43e1a305",
|
|
1417
1455
|
"title": "clearState()",
|
|
1418
1456
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1419
1457
|
"file": "/test/device.ts",
|
|
@@ -1433,15 +1471,15 @@
|
|
|
1433
1471
|
"context": null,
|
|
1434
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});",
|
|
1435
1473
|
"err": {},
|
|
1436
|
-
"uuid": "
|
|
1437
|
-
"parentUUID": "
|
|
1474
|
+
"uuid": "d1f64fbf-c91a-46b6-9c13-add52c3b21e2",
|
|
1475
|
+
"parentUUID": "48b4350f-ce9c-4f3a-a65b-c73c43e1a305",
|
|
1438
1476
|
"isHook": false,
|
|
1439
1477
|
"skipped": false
|
|
1440
1478
|
}
|
|
1441
1479
|
],
|
|
1442
1480
|
"suites": [],
|
|
1443
1481
|
"passes": [
|
|
1444
|
-
"
|
|
1482
|
+
"d1f64fbf-c91a-46b6-9c13-add52c3b21e2"
|
|
1445
1483
|
],
|
|
1446
1484
|
"failures": [],
|
|
1447
1485
|
"pending": [],
|
|
@@ -1452,7 +1490,7 @@
|
|
|
1452
1490
|
"_timeout": 2000
|
|
1453
1491
|
},
|
|
1454
1492
|
{
|
|
1455
|
-
"uuid": "
|
|
1493
|
+
"uuid": "dc597ed6-5c46-444a-a915-84c2322ba378",
|
|
1456
1494
|
"title": "getDateTime()",
|
|
1457
1495
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1458
1496
|
"file": "/test/device.ts",
|
|
@@ -1472,15 +1510,15 @@
|
|
|
1472
1510
|
"context": null,
|
|
1473
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});",
|
|
1474
1512
|
"err": {},
|
|
1475
|
-
"uuid": "
|
|
1476
|
-
"parentUUID": "
|
|
1513
|
+
"uuid": "928c33e3-b196-4f3a-a7f5-a8449aa9bec0",
|
|
1514
|
+
"parentUUID": "dc597ed6-5c46-444a-a915-84c2322ba378",
|
|
1477
1515
|
"isHook": false,
|
|
1478
1516
|
"skipped": false
|
|
1479
1517
|
}
|
|
1480
1518
|
],
|
|
1481
1519
|
"suites": [],
|
|
1482
1520
|
"passes": [
|
|
1483
|
-
"
|
|
1521
|
+
"928c33e3-b196-4f3a-a7f5-a8449aa9bec0"
|
|
1484
1522
|
],
|
|
1485
1523
|
"failures": [],
|
|
1486
1524
|
"pending": [],
|
|
@@ -1491,7 +1529,7 @@
|
|
|
1491
1529
|
"_timeout": 2000
|
|
1492
1530
|
},
|
|
1493
1531
|
{
|
|
1494
|
-
"uuid": "
|
|
1532
|
+
"uuid": "1daf759c-369e-4b50-a687-ba71c771d6c2",
|
|
1495
1533
|
"title": "getHash()",
|
|
1496
1534
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1497
1535
|
"file": "/test/device.ts",
|
|
@@ -1511,15 +1549,15 @@
|
|
|
1511
1549
|
"context": null,
|
|
1512
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});",
|
|
1513
1551
|
"err": {},
|
|
1514
|
-
"uuid": "
|
|
1515
|
-
"parentUUID": "
|
|
1552
|
+
"uuid": "7521724b-ae55-46bb-b837-16b8d9de7238",
|
|
1553
|
+
"parentUUID": "1daf759c-369e-4b50-a687-ba71c771d6c2",
|
|
1516
1554
|
"isHook": false,
|
|
1517
1555
|
"skipped": false
|
|
1518
1556
|
}
|
|
1519
1557
|
],
|
|
1520
1558
|
"suites": [],
|
|
1521
1559
|
"passes": [
|
|
1522
|
-
"
|
|
1560
|
+
"7521724b-ae55-46bb-b837-16b8d9de7238"
|
|
1523
1561
|
],
|
|
1524
1562
|
"failures": [],
|
|
1525
1563
|
"pending": [],
|
|
@@ -1530,7 +1568,7 @@
|
|
|
1530
1568
|
"_timeout": 2000
|
|
1531
1569
|
},
|
|
1532
1570
|
{
|
|
1533
|
-
"uuid": "
|
|
1571
|
+
"uuid": "ae54cbf6-7393-443d-9c08-8e49c8dc3f73",
|
|
1534
1572
|
"title": "getMediaType()",
|
|
1535
1573
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1536
1574
|
"file": "/test/device.ts",
|
|
@@ -1541,7 +1579,7 @@
|
|
|
1541
1579
|
"title": "should work",
|
|
1542
1580
|
"fullTitle": "NodePyATVDevice getMediaType() should work",
|
|
1543
1581
|
"timedOut": false,
|
|
1544
|
-
"duration":
|
|
1582
|
+
"duration": 0,
|
|
1545
1583
|
"state": "passed",
|
|
1546
1584
|
"speed": "fast",
|
|
1547
1585
|
"pass": true,
|
|
@@ -1550,26 +1588,26 @@
|
|
|
1550
1588
|
"context": null,
|
|
1551
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});",
|
|
1552
1590
|
"err": {},
|
|
1553
|
-
"uuid": "
|
|
1554
|
-
"parentUUID": "
|
|
1591
|
+
"uuid": "7478d827-cfd1-4348-8271-fee04d2640c4",
|
|
1592
|
+
"parentUUID": "ae54cbf6-7393-443d-9c08-8e49c8dc3f73",
|
|
1555
1593
|
"isHook": false,
|
|
1556
1594
|
"skipped": false
|
|
1557
1595
|
}
|
|
1558
1596
|
],
|
|
1559
1597
|
"suites": [],
|
|
1560
1598
|
"passes": [
|
|
1561
|
-
"
|
|
1599
|
+
"7478d827-cfd1-4348-8271-fee04d2640c4"
|
|
1562
1600
|
],
|
|
1563
1601
|
"failures": [],
|
|
1564
1602
|
"pending": [],
|
|
1565
1603
|
"skipped": [],
|
|
1566
|
-
"duration":
|
|
1604
|
+
"duration": 0,
|
|
1567
1605
|
"root": false,
|
|
1568
1606
|
"rootEmpty": false,
|
|
1569
1607
|
"_timeout": 2000
|
|
1570
1608
|
},
|
|
1571
1609
|
{
|
|
1572
|
-
"uuid": "
|
|
1610
|
+
"uuid": "0676ae49-a396-4428-bd18-8eda311c5850",
|
|
1573
1611
|
"title": "getDeviceState()",
|
|
1574
1612
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1575
1613
|
"file": "/test/device.ts",
|
|
@@ -1589,15 +1627,15 @@
|
|
|
1589
1627
|
"context": null,
|
|
1590
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});",
|
|
1591
1629
|
"err": {},
|
|
1592
|
-
"uuid": "
|
|
1593
|
-
"parentUUID": "
|
|
1630
|
+
"uuid": "643913bf-5c16-47e5-94be-0246b5c96eb0",
|
|
1631
|
+
"parentUUID": "0676ae49-a396-4428-bd18-8eda311c5850",
|
|
1594
1632
|
"isHook": false,
|
|
1595
1633
|
"skipped": false
|
|
1596
1634
|
}
|
|
1597
1635
|
],
|
|
1598
1636
|
"suites": [],
|
|
1599
1637
|
"passes": [
|
|
1600
|
-
"
|
|
1638
|
+
"643913bf-5c16-47e5-94be-0246b5c96eb0"
|
|
1601
1639
|
],
|
|
1602
1640
|
"failures": [],
|
|
1603
1641
|
"pending": [],
|
|
@@ -1608,7 +1646,7 @@
|
|
|
1608
1646
|
"_timeout": 2000
|
|
1609
1647
|
},
|
|
1610
1648
|
{
|
|
1611
|
-
"uuid": "
|
|
1649
|
+
"uuid": "25f8c764-8c4e-425e-98c5-385c8da6e4d8",
|
|
1612
1650
|
"title": "getTitle()",
|
|
1613
1651
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1614
1652
|
"file": "/test/device.ts",
|
|
@@ -1619,7 +1657,7 @@
|
|
|
1619
1657
|
"title": "should work",
|
|
1620
1658
|
"fullTitle": "NodePyATVDevice getTitle() should work",
|
|
1621
1659
|
"timedOut": false,
|
|
1622
|
-
"duration":
|
|
1660
|
+
"duration": 2,
|
|
1623
1661
|
"state": "passed",
|
|
1624
1662
|
"speed": "fast",
|
|
1625
1663
|
"pass": true,
|
|
@@ -1628,26 +1666,26 @@
|
|
|
1628
1666
|
"context": null,
|
|
1629
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});",
|
|
1630
1668
|
"err": {},
|
|
1631
|
-
"uuid": "
|
|
1632
|
-
"parentUUID": "
|
|
1669
|
+
"uuid": "c824fe0b-8127-4046-9ccf-7adb7d07af3c",
|
|
1670
|
+
"parentUUID": "25f8c764-8c4e-425e-98c5-385c8da6e4d8",
|
|
1633
1671
|
"isHook": false,
|
|
1634
1672
|
"skipped": false
|
|
1635
1673
|
}
|
|
1636
1674
|
],
|
|
1637
1675
|
"suites": [],
|
|
1638
1676
|
"passes": [
|
|
1639
|
-
"
|
|
1677
|
+
"c824fe0b-8127-4046-9ccf-7adb7d07af3c"
|
|
1640
1678
|
],
|
|
1641
1679
|
"failures": [],
|
|
1642
1680
|
"pending": [],
|
|
1643
1681
|
"skipped": [],
|
|
1644
|
-
"duration":
|
|
1682
|
+
"duration": 2,
|
|
1645
1683
|
"root": false,
|
|
1646
1684
|
"rootEmpty": false,
|
|
1647
1685
|
"_timeout": 2000
|
|
1648
1686
|
},
|
|
1649
1687
|
{
|
|
1650
|
-
"uuid": "
|
|
1688
|
+
"uuid": "bc958652-f6f7-4533-978f-ed89203630e6",
|
|
1651
1689
|
"title": "getArtist()",
|
|
1652
1690
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1653
1691
|
"file": "/test/device.ts",
|
|
@@ -1667,15 +1705,15 @@
|
|
|
1667
1705
|
"context": null,
|
|
1668
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});",
|
|
1669
1707
|
"err": {},
|
|
1670
|
-
"uuid": "
|
|
1671
|
-
"parentUUID": "
|
|
1708
|
+
"uuid": "2ec63618-09a6-4f81-b9be-ca852b343ec6",
|
|
1709
|
+
"parentUUID": "bc958652-f6f7-4533-978f-ed89203630e6",
|
|
1672
1710
|
"isHook": false,
|
|
1673
1711
|
"skipped": false
|
|
1674
1712
|
}
|
|
1675
1713
|
],
|
|
1676
1714
|
"suites": [],
|
|
1677
1715
|
"passes": [
|
|
1678
|
-
"
|
|
1716
|
+
"2ec63618-09a6-4f81-b9be-ca852b343ec6"
|
|
1679
1717
|
],
|
|
1680
1718
|
"failures": [],
|
|
1681
1719
|
"pending": [],
|
|
@@ -1686,7 +1724,7 @@
|
|
|
1686
1724
|
"_timeout": 2000
|
|
1687
1725
|
},
|
|
1688
1726
|
{
|
|
1689
|
-
"uuid": "
|
|
1727
|
+
"uuid": "b1322436-003d-46fc-b285-33b989225b51",
|
|
1690
1728
|
"title": "getAlbum()",
|
|
1691
1729
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1692
1730
|
"file": "/test/device.ts",
|
|
@@ -1706,15 +1744,15 @@
|
|
|
1706
1744
|
"context": null,
|
|
1707
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});",
|
|
1708
1746
|
"err": {},
|
|
1709
|
-
"uuid": "
|
|
1710
|
-
"parentUUID": "
|
|
1747
|
+
"uuid": "41bb4e78-5cf1-4c8e-a32f-1618a24dcdab",
|
|
1748
|
+
"parentUUID": "b1322436-003d-46fc-b285-33b989225b51",
|
|
1711
1749
|
"isHook": false,
|
|
1712
1750
|
"skipped": false
|
|
1713
1751
|
}
|
|
1714
1752
|
],
|
|
1715
1753
|
"suites": [],
|
|
1716
1754
|
"passes": [
|
|
1717
|
-
"
|
|
1755
|
+
"41bb4e78-5cf1-4c8e-a32f-1618a24dcdab"
|
|
1718
1756
|
],
|
|
1719
1757
|
"failures": [],
|
|
1720
1758
|
"pending": [],
|
|
@@ -1725,7 +1763,7 @@
|
|
|
1725
1763
|
"_timeout": 2000
|
|
1726
1764
|
},
|
|
1727
1765
|
{
|
|
1728
|
-
"uuid": "
|
|
1766
|
+
"uuid": "7155ff39-d299-47e3-b4e2-e28db4192d73",
|
|
1729
1767
|
"title": "getGenre()",
|
|
1730
1768
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1731
1769
|
"file": "/test/device.ts",
|
|
@@ -1736,7 +1774,7 @@
|
|
|
1736
1774
|
"title": "should work",
|
|
1737
1775
|
"fullTitle": "NodePyATVDevice getGenre() should work",
|
|
1738
1776
|
"timedOut": false,
|
|
1739
|
-
"duration":
|
|
1777
|
+
"duration": 2,
|
|
1740
1778
|
"state": "passed",
|
|
1741
1779
|
"speed": "fast",
|
|
1742
1780
|
"pass": true,
|
|
@@ -1745,26 +1783,26 @@
|
|
|
1745
1783
|
"context": null,
|
|
1746
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});",
|
|
1747
1785
|
"err": {},
|
|
1748
|
-
"uuid": "
|
|
1749
|
-
"parentUUID": "
|
|
1786
|
+
"uuid": "698aefdd-5863-4606-8a82-ad4a926b7642",
|
|
1787
|
+
"parentUUID": "7155ff39-d299-47e3-b4e2-e28db4192d73",
|
|
1750
1788
|
"isHook": false,
|
|
1751
1789
|
"skipped": false
|
|
1752
1790
|
}
|
|
1753
1791
|
],
|
|
1754
1792
|
"suites": [],
|
|
1755
1793
|
"passes": [
|
|
1756
|
-
"
|
|
1794
|
+
"698aefdd-5863-4606-8a82-ad4a926b7642"
|
|
1757
1795
|
],
|
|
1758
1796
|
"failures": [],
|
|
1759
1797
|
"pending": [],
|
|
1760
1798
|
"skipped": [],
|
|
1761
|
-
"duration":
|
|
1799
|
+
"duration": 2,
|
|
1762
1800
|
"root": false,
|
|
1763
1801
|
"rootEmpty": false,
|
|
1764
1802
|
"_timeout": 2000
|
|
1765
1803
|
},
|
|
1766
1804
|
{
|
|
1767
|
-
"uuid": "
|
|
1805
|
+
"uuid": "b755e418-2b90-496f-8ca2-9271bc6654bc",
|
|
1768
1806
|
"title": "getTotalTime()",
|
|
1769
1807
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1770
1808
|
"file": "/test/device.ts",
|
|
@@ -1775,7 +1813,7 @@
|
|
|
1775
1813
|
"title": "should work",
|
|
1776
1814
|
"fullTitle": "NodePyATVDevice getTotalTime() should work",
|
|
1777
1815
|
"timedOut": false,
|
|
1778
|
-
"duration":
|
|
1816
|
+
"duration": 2,
|
|
1779
1817
|
"state": "passed",
|
|
1780
1818
|
"speed": "fast",
|
|
1781
1819
|
"pass": true,
|
|
@@ -1784,26 +1822,26 @@
|
|
|
1784
1822
|
"context": null,
|
|
1785
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});",
|
|
1786
1824
|
"err": {},
|
|
1787
|
-
"uuid": "
|
|
1788
|
-
"parentUUID": "
|
|
1825
|
+
"uuid": "6842dbeb-16fc-4c66-a2a5-bc65c587a1bc",
|
|
1826
|
+
"parentUUID": "b755e418-2b90-496f-8ca2-9271bc6654bc",
|
|
1789
1827
|
"isHook": false,
|
|
1790
1828
|
"skipped": false
|
|
1791
1829
|
}
|
|
1792
1830
|
],
|
|
1793
1831
|
"suites": [],
|
|
1794
1832
|
"passes": [
|
|
1795
|
-
"
|
|
1833
|
+
"6842dbeb-16fc-4c66-a2a5-bc65c587a1bc"
|
|
1796
1834
|
],
|
|
1797
1835
|
"failures": [],
|
|
1798
1836
|
"pending": [],
|
|
1799
1837
|
"skipped": [],
|
|
1800
|
-
"duration":
|
|
1838
|
+
"duration": 2,
|
|
1801
1839
|
"root": false,
|
|
1802
1840
|
"rootEmpty": false,
|
|
1803
1841
|
"_timeout": 2000
|
|
1804
1842
|
},
|
|
1805
1843
|
{
|
|
1806
|
-
"uuid": "
|
|
1844
|
+
"uuid": "884651be-8116-4185-adf2-d79401801dd0",
|
|
1807
1845
|
"title": "getPosition()",
|
|
1808
1846
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1809
1847
|
"file": "/test/device.ts",
|
|
@@ -1814,7 +1852,7 @@
|
|
|
1814
1852
|
"title": "should work",
|
|
1815
1853
|
"fullTitle": "NodePyATVDevice getPosition() should work",
|
|
1816
1854
|
"timedOut": false,
|
|
1817
|
-
"duration":
|
|
1855
|
+
"duration": 2,
|
|
1818
1856
|
"state": "passed",
|
|
1819
1857
|
"speed": "fast",
|
|
1820
1858
|
"pass": true,
|
|
@@ -1823,26 +1861,26 @@
|
|
|
1823
1861
|
"context": null,
|
|
1824
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});",
|
|
1825
1863
|
"err": {},
|
|
1826
|
-
"uuid": "
|
|
1827
|
-
"parentUUID": "
|
|
1864
|
+
"uuid": "3c5216e7-8ae6-42da-b799-c00918417ea7",
|
|
1865
|
+
"parentUUID": "884651be-8116-4185-adf2-d79401801dd0",
|
|
1828
1866
|
"isHook": false,
|
|
1829
1867
|
"skipped": false
|
|
1830
1868
|
}
|
|
1831
1869
|
],
|
|
1832
1870
|
"suites": [],
|
|
1833
1871
|
"passes": [
|
|
1834
|
-
"
|
|
1872
|
+
"3c5216e7-8ae6-42da-b799-c00918417ea7"
|
|
1835
1873
|
],
|
|
1836
1874
|
"failures": [],
|
|
1837
1875
|
"pending": [],
|
|
1838
1876
|
"skipped": [],
|
|
1839
|
-
"duration":
|
|
1877
|
+
"duration": 2,
|
|
1840
1878
|
"root": false,
|
|
1841
1879
|
"rootEmpty": false,
|
|
1842
1880
|
"_timeout": 2000
|
|
1843
1881
|
},
|
|
1844
1882
|
{
|
|
1845
|
-
"uuid": "
|
|
1883
|
+
"uuid": "68dd1346-0680-436d-b181-c055f6e07dcd",
|
|
1846
1884
|
"title": "getShuffle()",
|
|
1847
1885
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1848
1886
|
"file": "/test/device.ts",
|
|
@@ -1853,7 +1891,7 @@
|
|
|
1853
1891
|
"title": "should work",
|
|
1854
1892
|
"fullTitle": "NodePyATVDevice getShuffle() should work",
|
|
1855
1893
|
"timedOut": false,
|
|
1856
|
-
"duration":
|
|
1894
|
+
"duration": 1,
|
|
1857
1895
|
"state": "passed",
|
|
1858
1896
|
"speed": "fast",
|
|
1859
1897
|
"pass": true,
|
|
@@ -1862,26 +1900,26 @@
|
|
|
1862
1900
|
"context": null,
|
|
1863
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});",
|
|
1864
1902
|
"err": {},
|
|
1865
|
-
"uuid": "
|
|
1866
|
-
"parentUUID": "
|
|
1903
|
+
"uuid": "4afff1d8-93a8-4dcb-a0b0-2da9cbde4a7d",
|
|
1904
|
+
"parentUUID": "68dd1346-0680-436d-b181-c055f6e07dcd",
|
|
1867
1905
|
"isHook": false,
|
|
1868
1906
|
"skipped": false
|
|
1869
1907
|
}
|
|
1870
1908
|
],
|
|
1871
1909
|
"suites": [],
|
|
1872
1910
|
"passes": [
|
|
1873
|
-
"
|
|
1911
|
+
"4afff1d8-93a8-4dcb-a0b0-2da9cbde4a7d"
|
|
1874
1912
|
],
|
|
1875
1913
|
"failures": [],
|
|
1876
1914
|
"pending": [],
|
|
1877
1915
|
"skipped": [],
|
|
1878
|
-
"duration":
|
|
1916
|
+
"duration": 1,
|
|
1879
1917
|
"root": false,
|
|
1880
1918
|
"rootEmpty": false,
|
|
1881
1919
|
"_timeout": 2000
|
|
1882
1920
|
},
|
|
1883
1921
|
{
|
|
1884
|
-
"uuid": "
|
|
1922
|
+
"uuid": "12b50fe6-1002-4e1e-9358-f96cdf6ff617",
|
|
1885
1923
|
"title": "getRepeat()",
|
|
1886
1924
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1887
1925
|
"file": "/test/device.ts",
|
|
@@ -1892,7 +1930,7 @@
|
|
|
1892
1930
|
"title": "should work",
|
|
1893
1931
|
"fullTitle": "NodePyATVDevice getRepeat() should work",
|
|
1894
1932
|
"timedOut": false,
|
|
1895
|
-
"duration":
|
|
1933
|
+
"duration": 1,
|
|
1896
1934
|
"state": "passed",
|
|
1897
1935
|
"speed": "fast",
|
|
1898
1936
|
"pass": true,
|
|
@@ -1901,26 +1939,26 @@
|
|
|
1901
1939
|
"context": null,
|
|
1902
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});",
|
|
1903
1941
|
"err": {},
|
|
1904
|
-
"uuid": "
|
|
1905
|
-
"parentUUID": "
|
|
1942
|
+
"uuid": "7f3ce69a-f2bb-4702-9e05-53c386b479b0",
|
|
1943
|
+
"parentUUID": "12b50fe6-1002-4e1e-9358-f96cdf6ff617",
|
|
1906
1944
|
"isHook": false,
|
|
1907
1945
|
"skipped": false
|
|
1908
1946
|
}
|
|
1909
1947
|
],
|
|
1910
1948
|
"suites": [],
|
|
1911
1949
|
"passes": [
|
|
1912
|
-
"
|
|
1950
|
+
"7f3ce69a-f2bb-4702-9e05-53c386b479b0"
|
|
1913
1951
|
],
|
|
1914
1952
|
"failures": [],
|
|
1915
1953
|
"pending": [],
|
|
1916
1954
|
"skipped": [],
|
|
1917
|
-
"duration":
|
|
1955
|
+
"duration": 1,
|
|
1918
1956
|
"root": false,
|
|
1919
1957
|
"rootEmpty": false,
|
|
1920
1958
|
"_timeout": 2000
|
|
1921
1959
|
},
|
|
1922
1960
|
{
|
|
1923
|
-
"uuid": "
|
|
1961
|
+
"uuid": "f8a920c8-e2f3-414b-a53c-92cdba621033",
|
|
1924
1962
|
"title": "getApp()",
|
|
1925
1963
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1926
1964
|
"file": "/test/device.ts",
|
|
@@ -1931,7 +1969,7 @@
|
|
|
1931
1969
|
"title": "should work",
|
|
1932
1970
|
"fullTitle": "NodePyATVDevice getApp() should work",
|
|
1933
1971
|
"timedOut": false,
|
|
1934
|
-
"duration":
|
|
1972
|
+
"duration": 0,
|
|
1935
1973
|
"state": "passed",
|
|
1936
1974
|
"speed": "fast",
|
|
1937
1975
|
"pass": true,
|
|
@@ -1940,26 +1978,26 @@
|
|
|
1940
1978
|
"context": null,
|
|
1941
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});",
|
|
1942
1980
|
"err": {},
|
|
1943
|
-
"uuid": "
|
|
1944
|
-
"parentUUID": "
|
|
1981
|
+
"uuid": "c39678fd-5ac6-4846-a43c-5833b28d53e6",
|
|
1982
|
+
"parentUUID": "f8a920c8-e2f3-414b-a53c-92cdba621033",
|
|
1945
1983
|
"isHook": false,
|
|
1946
1984
|
"skipped": false
|
|
1947
1985
|
}
|
|
1948
1986
|
],
|
|
1949
1987
|
"suites": [],
|
|
1950
1988
|
"passes": [
|
|
1951
|
-
"
|
|
1989
|
+
"c39678fd-5ac6-4846-a43c-5833b28d53e6"
|
|
1952
1990
|
],
|
|
1953
1991
|
"failures": [],
|
|
1954
1992
|
"pending": [],
|
|
1955
1993
|
"skipped": [],
|
|
1956
|
-
"duration":
|
|
1994
|
+
"duration": 0,
|
|
1957
1995
|
"root": false,
|
|
1958
1996
|
"rootEmpty": false,
|
|
1959
1997
|
"_timeout": 2000
|
|
1960
1998
|
},
|
|
1961
1999
|
{
|
|
1962
|
-
"uuid": "
|
|
2000
|
+
"uuid": "3f386be8-185e-4964-a634-d8853b7edf86",
|
|
1963
2001
|
"title": "getAppId()",
|
|
1964
2002
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1965
2003
|
"file": "/test/device.ts",
|
|
@@ -1970,7 +2008,7 @@
|
|
|
1970
2008
|
"title": "should work",
|
|
1971
2009
|
"fullTitle": "NodePyATVDevice getAppId() should work",
|
|
1972
2010
|
"timedOut": false,
|
|
1973
|
-
"duration":
|
|
2011
|
+
"duration": 2,
|
|
1974
2012
|
"state": "passed",
|
|
1975
2013
|
"speed": "fast",
|
|
1976
2014
|
"pass": true,
|
|
@@ -1979,26 +2017,26 @@
|
|
|
1979
2017
|
"context": null,
|
|
1980
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});",
|
|
1981
2019
|
"err": {},
|
|
1982
|
-
"uuid": "
|
|
1983
|
-
"parentUUID": "
|
|
2020
|
+
"uuid": "3d304771-31b4-4d60-bb64-f6c36d5f6a2c",
|
|
2021
|
+
"parentUUID": "3f386be8-185e-4964-a634-d8853b7edf86",
|
|
1984
2022
|
"isHook": false,
|
|
1985
2023
|
"skipped": false
|
|
1986
2024
|
}
|
|
1987
2025
|
],
|
|
1988
2026
|
"suites": [],
|
|
1989
2027
|
"passes": [
|
|
1990
|
-
"
|
|
2028
|
+
"3d304771-31b4-4d60-bb64-f6c36d5f6a2c"
|
|
1991
2029
|
],
|
|
1992
2030
|
"failures": [],
|
|
1993
2031
|
"pending": [],
|
|
1994
2032
|
"skipped": [],
|
|
1995
|
-
"duration":
|
|
2033
|
+
"duration": 2,
|
|
1996
2034
|
"root": false,
|
|
1997
2035
|
"rootEmpty": false,
|
|
1998
2036
|
"_timeout": 2000
|
|
1999
2037
|
},
|
|
2000
2038
|
{
|
|
2001
|
-
"uuid": "
|
|
2039
|
+
"uuid": "9ef087e0-a04f-4f60-92b6-b59f7895aee9",
|
|
2002
2040
|
"title": "pressKey()",
|
|
2003
2041
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2004
2042
|
"file": "/test/device.ts",
|
|
@@ -2009,7 +2047,7 @@
|
|
|
2009
2047
|
"title": "should work with valid key",
|
|
2010
2048
|
"fullTitle": "NodePyATVDevice pressKey() should work with valid key",
|
|
2011
2049
|
"timedOut": false,
|
|
2012
|
-
"duration":
|
|
2050
|
+
"duration": 2,
|
|
2013
2051
|
"state": "passed",
|
|
2014
2052
|
"speed": "fast",
|
|
2015
2053
|
"pass": true,
|
|
@@ -2018,8 +2056,8 @@
|
|
|
2018
2056
|
"context": null,
|
|
2019
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});",
|
|
2020
2058
|
"err": {},
|
|
2021
|
-
"uuid": "
|
|
2022
|
-
"parentUUID": "
|
|
2059
|
+
"uuid": "48783653-d9af-48b3-9ef6-3f17a06b10d3",
|
|
2060
|
+
"parentUUID": "9ef087e0-a04f-4f60-92b6-b59f7895aee9",
|
|
2023
2061
|
"isHook": false,
|
|
2024
2062
|
"skipped": false
|
|
2025
2063
|
},
|
|
@@ -2036,8 +2074,8 @@
|
|
|
2036
2074
|
"context": null,
|
|
2037
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});",
|
|
2038
2076
|
"err": {},
|
|
2039
|
-
"uuid": "
|
|
2040
|
-
"parentUUID": "
|
|
2077
|
+
"uuid": "f38afbf6-2e69-4338-ae7b-d2dc0b7caeb3",
|
|
2078
|
+
"parentUUID": "9ef087e0-a04f-4f60-92b6-b59f7895aee9",
|
|
2041
2079
|
"isHook": false,
|
|
2042
2080
|
"skipped": false
|
|
2043
2081
|
},
|
|
@@ -2045,7 +2083,7 @@
|
|
|
2045
2083
|
"title": "should throw error if pyatv result is not success",
|
|
2046
2084
|
"fullTitle": "NodePyATVDevice pressKey() should throw error if pyatv result is not success",
|
|
2047
2085
|
"timedOut": false,
|
|
2048
|
-
"duration":
|
|
2086
|
+
"duration": 1,
|
|
2049
2087
|
"state": "passed",
|
|
2050
2088
|
"speed": "fast",
|
|
2051
2089
|
"pass": true,
|
|
@@ -2054,28 +2092,28 @@
|
|
|
2054
2092
|
"context": null,
|
|
2055
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});",
|
|
2056
2094
|
"err": {},
|
|
2057
|
-
"uuid": "
|
|
2058
|
-
"parentUUID": "
|
|
2095
|
+
"uuid": "0d5d1f7d-03c4-45bd-9c97-803e658015e9",
|
|
2096
|
+
"parentUUID": "9ef087e0-a04f-4f60-92b6-b59f7895aee9",
|
|
2059
2097
|
"isHook": false,
|
|
2060
2098
|
"skipped": false
|
|
2061
2099
|
}
|
|
2062
2100
|
],
|
|
2063
2101
|
"suites": [],
|
|
2064
2102
|
"passes": [
|
|
2065
|
-
"
|
|
2066
|
-
"
|
|
2067
|
-
"
|
|
2103
|
+
"48783653-d9af-48b3-9ef6-3f17a06b10d3",
|
|
2104
|
+
"f38afbf6-2e69-4338-ae7b-d2dc0b7caeb3",
|
|
2105
|
+
"0d5d1f7d-03c4-45bd-9c97-803e658015e9"
|
|
2068
2106
|
],
|
|
2069
2107
|
"failures": [],
|
|
2070
2108
|
"pending": [],
|
|
2071
2109
|
"skipped": [],
|
|
2072
|
-
"duration":
|
|
2110
|
+
"duration": 4,
|
|
2073
2111
|
"root": false,
|
|
2074
2112
|
"rootEmpty": false,
|
|
2075
2113
|
"_timeout": 2000
|
|
2076
2114
|
},
|
|
2077
2115
|
{
|
|
2078
|
-
"uuid": "
|
|
2116
|
+
"uuid": "6bf4c75a-39bc-45da-9c60-c87e85070bea",
|
|
2079
2117
|
"title": "down()",
|
|
2080
2118
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2081
2119
|
"file": "/test/device.ts",
|
|
@@ -2095,15 +2133,15 @@
|
|
|
2095
2133
|
"context": null,
|
|
2096
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});",
|
|
2097
2135
|
"err": {},
|
|
2098
|
-
"uuid": "
|
|
2099
|
-
"parentUUID": "
|
|
2136
|
+
"uuid": "6ab2b699-d351-4a05-af24-45142f6204c0",
|
|
2137
|
+
"parentUUID": "6bf4c75a-39bc-45da-9c60-c87e85070bea",
|
|
2100
2138
|
"isHook": false,
|
|
2101
2139
|
"skipped": false
|
|
2102
2140
|
}
|
|
2103
2141
|
],
|
|
2104
2142
|
"suites": [],
|
|
2105
2143
|
"passes": [
|
|
2106
|
-
"
|
|
2144
|
+
"6ab2b699-d351-4a05-af24-45142f6204c0"
|
|
2107
2145
|
],
|
|
2108
2146
|
"failures": [],
|
|
2109
2147
|
"pending": [],
|
|
@@ -2114,7 +2152,7 @@
|
|
|
2114
2152
|
"_timeout": 2000
|
|
2115
2153
|
},
|
|
2116
2154
|
{
|
|
2117
|
-
"uuid": "
|
|
2155
|
+
"uuid": "bea24fbe-978f-4400-9a10-0c20b9163d0f",
|
|
2118
2156
|
"title": "home()",
|
|
2119
2157
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2120
2158
|
"file": "/test/device.ts",
|
|
@@ -2134,15 +2172,15 @@
|
|
|
2134
2172
|
"context": null,
|
|
2135
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});",
|
|
2136
2174
|
"err": {},
|
|
2137
|
-
"uuid": "
|
|
2138
|
-
"parentUUID": "
|
|
2175
|
+
"uuid": "e3b5b761-81c2-4560-bc74-f3f46677088c",
|
|
2176
|
+
"parentUUID": "bea24fbe-978f-4400-9a10-0c20b9163d0f",
|
|
2139
2177
|
"isHook": false,
|
|
2140
2178
|
"skipped": false
|
|
2141
2179
|
}
|
|
2142
2180
|
],
|
|
2143
2181
|
"suites": [],
|
|
2144
2182
|
"passes": [
|
|
2145
|
-
"
|
|
2183
|
+
"e3b5b761-81c2-4560-bc74-f3f46677088c"
|
|
2146
2184
|
],
|
|
2147
2185
|
"failures": [],
|
|
2148
2186
|
"pending": [],
|
|
@@ -2153,7 +2191,7 @@
|
|
|
2153
2191
|
"_timeout": 2000
|
|
2154
2192
|
},
|
|
2155
2193
|
{
|
|
2156
|
-
"uuid": "
|
|
2194
|
+
"uuid": "abd5f9fb-a8fb-4210-a74d-e9b97da9096f",
|
|
2157
2195
|
"title": "homeHold()",
|
|
2158
2196
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2159
2197
|
"file": "/test/device.ts",
|
|
@@ -2173,15 +2211,15 @@
|
|
|
2173
2211
|
"context": null,
|
|
2174
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});",
|
|
2175
2213
|
"err": {},
|
|
2176
|
-
"uuid": "
|
|
2177
|
-
"parentUUID": "
|
|
2214
|
+
"uuid": "ad36ecfc-035a-4dec-9981-47b90baa9c18",
|
|
2215
|
+
"parentUUID": "abd5f9fb-a8fb-4210-a74d-e9b97da9096f",
|
|
2178
2216
|
"isHook": false,
|
|
2179
2217
|
"skipped": false
|
|
2180
2218
|
}
|
|
2181
2219
|
],
|
|
2182
2220
|
"suites": [],
|
|
2183
2221
|
"passes": [
|
|
2184
|
-
"
|
|
2222
|
+
"ad36ecfc-035a-4dec-9981-47b90baa9c18"
|
|
2185
2223
|
],
|
|
2186
2224
|
"failures": [],
|
|
2187
2225
|
"pending": [],
|
|
@@ -2192,7 +2230,7 @@
|
|
|
2192
2230
|
"_timeout": 2000
|
|
2193
2231
|
},
|
|
2194
2232
|
{
|
|
2195
|
-
"uuid": "
|
|
2233
|
+
"uuid": "532f0846-a14e-40c2-a466-27b5bf9fb429",
|
|
2196
2234
|
"title": "left()",
|
|
2197
2235
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2198
2236
|
"file": "/test/device.ts",
|
|
@@ -2203,7 +2241,7 @@
|
|
|
2203
2241
|
"title": "should work",
|
|
2204
2242
|
"fullTitle": "NodePyATVDevice left() should work",
|
|
2205
2243
|
"timedOut": false,
|
|
2206
|
-
"duration":
|
|
2244
|
+
"duration": 1,
|
|
2207
2245
|
"state": "passed",
|
|
2208
2246
|
"speed": "fast",
|
|
2209
2247
|
"pass": true,
|
|
@@ -2212,26 +2250,26 @@
|
|
|
2212
2250
|
"context": null,
|
|
2213
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});",
|
|
2214
2252
|
"err": {},
|
|
2215
|
-
"uuid": "
|
|
2216
|
-
"parentUUID": "
|
|
2253
|
+
"uuid": "3fdfb742-370f-4146-9720-d0c5dbb4c5e2",
|
|
2254
|
+
"parentUUID": "532f0846-a14e-40c2-a466-27b5bf9fb429",
|
|
2217
2255
|
"isHook": false,
|
|
2218
2256
|
"skipped": false
|
|
2219
2257
|
}
|
|
2220
2258
|
],
|
|
2221
2259
|
"suites": [],
|
|
2222
2260
|
"passes": [
|
|
2223
|
-
"
|
|
2261
|
+
"3fdfb742-370f-4146-9720-d0c5dbb4c5e2"
|
|
2224
2262
|
],
|
|
2225
2263
|
"failures": [],
|
|
2226
2264
|
"pending": [],
|
|
2227
2265
|
"skipped": [],
|
|
2228
|
-
"duration":
|
|
2266
|
+
"duration": 1,
|
|
2229
2267
|
"root": false,
|
|
2230
2268
|
"rootEmpty": false,
|
|
2231
2269
|
"_timeout": 2000
|
|
2232
2270
|
},
|
|
2233
2271
|
{
|
|
2234
|
-
"uuid": "
|
|
2272
|
+
"uuid": "d4c38b32-9980-479a-be62-588fc797478e",
|
|
2235
2273
|
"title": "menu()",
|
|
2236
2274
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2237
2275
|
"file": "/test/device.ts",
|
|
@@ -2251,15 +2289,15 @@
|
|
|
2251
2289
|
"context": null,
|
|
2252
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});",
|
|
2253
2291
|
"err": {},
|
|
2254
|
-
"uuid": "
|
|
2255
|
-
"parentUUID": "
|
|
2292
|
+
"uuid": "b99e6a7b-b5ba-45c7-b9ea-e7d479e579e6",
|
|
2293
|
+
"parentUUID": "d4c38b32-9980-479a-be62-588fc797478e",
|
|
2256
2294
|
"isHook": false,
|
|
2257
2295
|
"skipped": false
|
|
2258
2296
|
}
|
|
2259
2297
|
],
|
|
2260
2298
|
"suites": [],
|
|
2261
2299
|
"passes": [
|
|
2262
|
-
"
|
|
2300
|
+
"b99e6a7b-b5ba-45c7-b9ea-e7d479e579e6"
|
|
2263
2301
|
],
|
|
2264
2302
|
"failures": [],
|
|
2265
2303
|
"pending": [],
|
|
@@ -2270,7 +2308,7 @@
|
|
|
2270
2308
|
"_timeout": 2000
|
|
2271
2309
|
},
|
|
2272
2310
|
{
|
|
2273
|
-
"uuid": "
|
|
2311
|
+
"uuid": "46653fa1-2550-44b9-a191-a4e8d4b70b76",
|
|
2274
2312
|
"title": "next()",
|
|
2275
2313
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2276
2314
|
"file": "/test/device.ts",
|
|
@@ -2281,7 +2319,7 @@
|
|
|
2281
2319
|
"title": "should work",
|
|
2282
2320
|
"fullTitle": "NodePyATVDevice next() should work",
|
|
2283
2321
|
"timedOut": false,
|
|
2284
|
-
"duration":
|
|
2322
|
+
"duration": 1,
|
|
2285
2323
|
"state": "passed",
|
|
2286
2324
|
"speed": "fast",
|
|
2287
2325
|
"pass": true,
|
|
@@ -2290,26 +2328,26 @@
|
|
|
2290
2328
|
"context": null,
|
|
2291
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});",
|
|
2292
2330
|
"err": {},
|
|
2293
|
-
"uuid": "
|
|
2294
|
-
"parentUUID": "
|
|
2331
|
+
"uuid": "4068195a-afa5-440e-bbc8-78052d05b0b7",
|
|
2332
|
+
"parentUUID": "46653fa1-2550-44b9-a191-a4e8d4b70b76",
|
|
2295
2333
|
"isHook": false,
|
|
2296
2334
|
"skipped": false
|
|
2297
2335
|
}
|
|
2298
2336
|
],
|
|
2299
2337
|
"suites": [],
|
|
2300
2338
|
"passes": [
|
|
2301
|
-
"
|
|
2339
|
+
"4068195a-afa5-440e-bbc8-78052d05b0b7"
|
|
2302
2340
|
],
|
|
2303
2341
|
"failures": [],
|
|
2304
2342
|
"pending": [],
|
|
2305
2343
|
"skipped": [],
|
|
2306
|
-
"duration":
|
|
2344
|
+
"duration": 1,
|
|
2307
2345
|
"root": false,
|
|
2308
2346
|
"rootEmpty": false,
|
|
2309
2347
|
"_timeout": 2000
|
|
2310
2348
|
},
|
|
2311
2349
|
{
|
|
2312
|
-
"uuid": "
|
|
2350
|
+
"uuid": "8e9152e3-9e32-4147-97c0-32aa972528e5",
|
|
2313
2351
|
"title": "pause()",
|
|
2314
2352
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2315
2353
|
"file": "/test/device.ts",
|
|
@@ -2320,7 +2358,7 @@
|
|
|
2320
2358
|
"title": "should work",
|
|
2321
2359
|
"fullTitle": "NodePyATVDevice pause() should work",
|
|
2322
2360
|
"timedOut": false,
|
|
2323
|
-
"duration":
|
|
2361
|
+
"duration": 2,
|
|
2324
2362
|
"state": "passed",
|
|
2325
2363
|
"speed": "fast",
|
|
2326
2364
|
"pass": true,
|
|
@@ -2329,26 +2367,26 @@
|
|
|
2329
2367
|
"context": null,
|
|
2330
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});",
|
|
2331
2369
|
"err": {},
|
|
2332
|
-
"uuid": "
|
|
2333
|
-
"parentUUID": "
|
|
2370
|
+
"uuid": "62ead88e-2737-4f26-9cc7-d77d3671ed61",
|
|
2371
|
+
"parentUUID": "8e9152e3-9e32-4147-97c0-32aa972528e5",
|
|
2334
2372
|
"isHook": false,
|
|
2335
2373
|
"skipped": false
|
|
2336
2374
|
}
|
|
2337
2375
|
],
|
|
2338
2376
|
"suites": [],
|
|
2339
2377
|
"passes": [
|
|
2340
|
-
"
|
|
2378
|
+
"62ead88e-2737-4f26-9cc7-d77d3671ed61"
|
|
2341
2379
|
],
|
|
2342
2380
|
"failures": [],
|
|
2343
2381
|
"pending": [],
|
|
2344
2382
|
"skipped": [],
|
|
2345
|
-
"duration":
|
|
2383
|
+
"duration": 2,
|
|
2346
2384
|
"root": false,
|
|
2347
2385
|
"rootEmpty": false,
|
|
2348
2386
|
"_timeout": 2000
|
|
2349
2387
|
},
|
|
2350
2388
|
{
|
|
2351
|
-
"uuid": "
|
|
2389
|
+
"uuid": "713fe620-5280-4005-a421-8b9d7304e547",
|
|
2352
2390
|
"title": "play()",
|
|
2353
2391
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2354
2392
|
"file": "/test/device.ts",
|
|
@@ -2368,15 +2406,15 @@
|
|
|
2368
2406
|
"context": null,
|
|
2369
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});",
|
|
2370
2408
|
"err": {},
|
|
2371
|
-
"uuid": "
|
|
2372
|
-
"parentUUID": "
|
|
2409
|
+
"uuid": "6702c3bf-8efb-4e77-bf82-ffe95686d300",
|
|
2410
|
+
"parentUUID": "713fe620-5280-4005-a421-8b9d7304e547",
|
|
2373
2411
|
"isHook": false,
|
|
2374
2412
|
"skipped": false
|
|
2375
2413
|
}
|
|
2376
2414
|
],
|
|
2377
2415
|
"suites": [],
|
|
2378
2416
|
"passes": [
|
|
2379
|
-
"
|
|
2417
|
+
"6702c3bf-8efb-4e77-bf82-ffe95686d300"
|
|
2380
2418
|
],
|
|
2381
2419
|
"failures": [],
|
|
2382
2420
|
"pending": [],
|
|
@@ -2387,7 +2425,7 @@
|
|
|
2387
2425
|
"_timeout": 2000
|
|
2388
2426
|
},
|
|
2389
2427
|
{
|
|
2390
|
-
"uuid": "
|
|
2428
|
+
"uuid": "a2a9c847-091c-4bf6-8bf5-3a3b153f5370",
|
|
2391
2429
|
"title": "playPause()",
|
|
2392
2430
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2393
2431
|
"file": "/test/device.ts",
|
|
@@ -2398,7 +2436,7 @@
|
|
|
2398
2436
|
"title": "should work",
|
|
2399
2437
|
"fullTitle": "NodePyATVDevice playPause() should work",
|
|
2400
2438
|
"timedOut": false,
|
|
2401
|
-
"duration":
|
|
2439
|
+
"duration": 2,
|
|
2402
2440
|
"state": "passed",
|
|
2403
2441
|
"speed": "fast",
|
|
2404
2442
|
"pass": true,
|
|
@@ -2407,26 +2445,26 @@
|
|
|
2407
2445
|
"context": null,
|
|
2408
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});",
|
|
2409
2447
|
"err": {},
|
|
2410
|
-
"uuid": "
|
|
2411
|
-
"parentUUID": "
|
|
2448
|
+
"uuid": "94e72bc3-23f1-4389-a743-34b06d00eb02",
|
|
2449
|
+
"parentUUID": "a2a9c847-091c-4bf6-8bf5-3a3b153f5370",
|
|
2412
2450
|
"isHook": false,
|
|
2413
2451
|
"skipped": false
|
|
2414
2452
|
}
|
|
2415
2453
|
],
|
|
2416
2454
|
"suites": [],
|
|
2417
2455
|
"passes": [
|
|
2418
|
-
"
|
|
2456
|
+
"94e72bc3-23f1-4389-a743-34b06d00eb02"
|
|
2419
2457
|
],
|
|
2420
2458
|
"failures": [],
|
|
2421
2459
|
"pending": [],
|
|
2422
2460
|
"skipped": [],
|
|
2423
|
-
"duration":
|
|
2461
|
+
"duration": 2,
|
|
2424
2462
|
"root": false,
|
|
2425
2463
|
"rootEmpty": false,
|
|
2426
2464
|
"_timeout": 2000
|
|
2427
2465
|
},
|
|
2428
2466
|
{
|
|
2429
|
-
"uuid": "
|
|
2467
|
+
"uuid": "0eaa6727-94e4-4750-98b5-aafe8e234de6",
|
|
2430
2468
|
"title": "previous()",
|
|
2431
2469
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2432
2470
|
"file": "/test/device.ts",
|
|
@@ -2446,15 +2484,15 @@
|
|
|
2446
2484
|
"context": null,
|
|
2447
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});",
|
|
2448
2486
|
"err": {},
|
|
2449
|
-
"uuid": "
|
|
2450
|
-
"parentUUID": "
|
|
2487
|
+
"uuid": "8b10db83-b0d4-4b29-98b8-8fb1c6858d7c",
|
|
2488
|
+
"parentUUID": "0eaa6727-94e4-4750-98b5-aafe8e234de6",
|
|
2451
2489
|
"isHook": false,
|
|
2452
2490
|
"skipped": false
|
|
2453
2491
|
}
|
|
2454
2492
|
],
|
|
2455
2493
|
"suites": [],
|
|
2456
2494
|
"passes": [
|
|
2457
|
-
"
|
|
2495
|
+
"8b10db83-b0d4-4b29-98b8-8fb1c6858d7c"
|
|
2458
2496
|
],
|
|
2459
2497
|
"failures": [],
|
|
2460
2498
|
"pending": [],
|
|
@@ -2465,7 +2503,7 @@
|
|
|
2465
2503
|
"_timeout": 2000
|
|
2466
2504
|
},
|
|
2467
2505
|
{
|
|
2468
|
-
"uuid": "
|
|
2506
|
+
"uuid": "5e4ea771-a8a9-4a85-8aa2-22ac948a01f2",
|
|
2469
2507
|
"title": "right()",
|
|
2470
2508
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2471
2509
|
"file": "/test/device.ts",
|
|
@@ -2485,15 +2523,15 @@
|
|
|
2485
2523
|
"context": null,
|
|
2486
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});",
|
|
2487
2525
|
"err": {},
|
|
2488
|
-
"uuid": "
|
|
2489
|
-
"parentUUID": "
|
|
2526
|
+
"uuid": "7f36a61f-fe88-4fcc-a546-c15fb339485f",
|
|
2527
|
+
"parentUUID": "5e4ea771-a8a9-4a85-8aa2-22ac948a01f2",
|
|
2490
2528
|
"isHook": false,
|
|
2491
2529
|
"skipped": false
|
|
2492
2530
|
}
|
|
2493
2531
|
],
|
|
2494
2532
|
"suites": [],
|
|
2495
2533
|
"passes": [
|
|
2496
|
-
"
|
|
2534
|
+
"7f36a61f-fe88-4fcc-a546-c15fb339485f"
|
|
2497
2535
|
],
|
|
2498
2536
|
"failures": [],
|
|
2499
2537
|
"pending": [],
|
|
@@ -2504,7 +2542,7 @@
|
|
|
2504
2542
|
"_timeout": 2000
|
|
2505
2543
|
},
|
|
2506
2544
|
{
|
|
2507
|
-
"uuid": "
|
|
2545
|
+
"uuid": "526205c3-90dd-44f0-b200-8a89c77bb32c",
|
|
2508
2546
|
"title": "select()",
|
|
2509
2547
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2510
2548
|
"file": "/test/device.ts",
|
|
@@ -2515,7 +2553,7 @@
|
|
|
2515
2553
|
"title": "should work",
|
|
2516
2554
|
"fullTitle": "NodePyATVDevice select() should work",
|
|
2517
2555
|
"timedOut": false,
|
|
2518
|
-
"duration":
|
|
2556
|
+
"duration": 2,
|
|
2519
2557
|
"state": "passed",
|
|
2520
2558
|
"speed": "fast",
|
|
2521
2559
|
"pass": true,
|
|
@@ -2524,26 +2562,26 @@
|
|
|
2524
2562
|
"context": null,
|
|
2525
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});",
|
|
2526
2564
|
"err": {},
|
|
2527
|
-
"uuid": "
|
|
2528
|
-
"parentUUID": "
|
|
2565
|
+
"uuid": "1ab9061c-9c0b-4753-a293-f5b127dbf890",
|
|
2566
|
+
"parentUUID": "526205c3-90dd-44f0-b200-8a89c77bb32c",
|
|
2529
2567
|
"isHook": false,
|
|
2530
2568
|
"skipped": false
|
|
2531
2569
|
}
|
|
2532
2570
|
],
|
|
2533
2571
|
"suites": [],
|
|
2534
2572
|
"passes": [
|
|
2535
|
-
"
|
|
2573
|
+
"1ab9061c-9c0b-4753-a293-f5b127dbf890"
|
|
2536
2574
|
],
|
|
2537
2575
|
"failures": [],
|
|
2538
2576
|
"pending": [],
|
|
2539
2577
|
"skipped": [],
|
|
2540
|
-
"duration":
|
|
2578
|
+
"duration": 2,
|
|
2541
2579
|
"root": false,
|
|
2542
2580
|
"rootEmpty": false,
|
|
2543
2581
|
"_timeout": 2000
|
|
2544
2582
|
},
|
|
2545
2583
|
{
|
|
2546
|
-
"uuid": "
|
|
2584
|
+
"uuid": "ceac39ab-ed59-4846-bdd7-ead0a798009c",
|
|
2547
2585
|
"title": "skipBackward()",
|
|
2548
2586
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2549
2587
|
"file": "/test/device.ts",
|
|
@@ -2563,15 +2601,15 @@
|
|
|
2563
2601
|
"context": null,
|
|
2564
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});",
|
|
2565
2603
|
"err": {},
|
|
2566
|
-
"uuid": "
|
|
2567
|
-
"parentUUID": "
|
|
2604
|
+
"uuid": "2dbfe6e2-5ed7-450a-a571-8028462ccea0",
|
|
2605
|
+
"parentUUID": "ceac39ab-ed59-4846-bdd7-ead0a798009c",
|
|
2568
2606
|
"isHook": false,
|
|
2569
2607
|
"skipped": false
|
|
2570
2608
|
}
|
|
2571
2609
|
],
|
|
2572
2610
|
"suites": [],
|
|
2573
2611
|
"passes": [
|
|
2574
|
-
"
|
|
2612
|
+
"2dbfe6e2-5ed7-450a-a571-8028462ccea0"
|
|
2575
2613
|
],
|
|
2576
2614
|
"failures": [],
|
|
2577
2615
|
"pending": [],
|
|
@@ -2582,7 +2620,7 @@
|
|
|
2582
2620
|
"_timeout": 2000
|
|
2583
2621
|
},
|
|
2584
2622
|
{
|
|
2585
|
-
"uuid": "
|
|
2623
|
+
"uuid": "91185665-6e4e-40c1-9bc7-a7a267f998bf",
|
|
2586
2624
|
"title": "skipForward()",
|
|
2587
2625
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2588
2626
|
"file": "/test/device.ts",
|
|
@@ -2593,7 +2631,7 @@
|
|
|
2593
2631
|
"title": "should work",
|
|
2594
2632
|
"fullTitle": "NodePyATVDevice skipForward() should work",
|
|
2595
2633
|
"timedOut": false,
|
|
2596
|
-
"duration":
|
|
2634
|
+
"duration": 2,
|
|
2597
2635
|
"state": "passed",
|
|
2598
2636
|
"speed": "fast",
|
|
2599
2637
|
"pass": true,
|
|
@@ -2602,26 +2640,26 @@
|
|
|
2602
2640
|
"context": null,
|
|
2603
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});",
|
|
2604
2642
|
"err": {},
|
|
2605
|
-
"uuid": "
|
|
2606
|
-
"parentUUID": "
|
|
2643
|
+
"uuid": "e5549d16-9612-4b30-8274-94612752e7f3",
|
|
2644
|
+
"parentUUID": "91185665-6e4e-40c1-9bc7-a7a267f998bf",
|
|
2607
2645
|
"isHook": false,
|
|
2608
2646
|
"skipped": false
|
|
2609
2647
|
}
|
|
2610
2648
|
],
|
|
2611
2649
|
"suites": [],
|
|
2612
2650
|
"passes": [
|
|
2613
|
-
"
|
|
2651
|
+
"e5549d16-9612-4b30-8274-94612752e7f3"
|
|
2614
2652
|
],
|
|
2615
2653
|
"failures": [],
|
|
2616
2654
|
"pending": [],
|
|
2617
2655
|
"skipped": [],
|
|
2618
|
-
"duration":
|
|
2656
|
+
"duration": 2,
|
|
2619
2657
|
"root": false,
|
|
2620
2658
|
"rootEmpty": false,
|
|
2621
2659
|
"_timeout": 2000
|
|
2622
2660
|
},
|
|
2623
2661
|
{
|
|
2624
|
-
"uuid": "
|
|
2662
|
+
"uuid": "3cec0678-2836-4106-aa9e-8337f161b202",
|
|
2625
2663
|
"title": "stop()",
|
|
2626
2664
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2627
2665
|
"file": "/test/device.ts",
|
|
@@ -2632,7 +2670,7 @@
|
|
|
2632
2670
|
"title": "should work",
|
|
2633
2671
|
"fullTitle": "NodePyATVDevice stop() should work",
|
|
2634
2672
|
"timedOut": false,
|
|
2635
|
-
"duration":
|
|
2673
|
+
"duration": 1,
|
|
2636
2674
|
"state": "passed",
|
|
2637
2675
|
"speed": "fast",
|
|
2638
2676
|
"pass": true,
|
|
@@ -2641,26 +2679,26 @@
|
|
|
2641
2679
|
"context": null,
|
|
2642
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});",
|
|
2643
2681
|
"err": {},
|
|
2644
|
-
"uuid": "
|
|
2645
|
-
"parentUUID": "
|
|
2682
|
+
"uuid": "37753af8-3e57-4e52-a49c-8e6289056d89",
|
|
2683
|
+
"parentUUID": "3cec0678-2836-4106-aa9e-8337f161b202",
|
|
2646
2684
|
"isHook": false,
|
|
2647
2685
|
"skipped": false
|
|
2648
2686
|
}
|
|
2649
2687
|
],
|
|
2650
2688
|
"suites": [],
|
|
2651
2689
|
"passes": [
|
|
2652
|
-
"
|
|
2690
|
+
"37753af8-3e57-4e52-a49c-8e6289056d89"
|
|
2653
2691
|
],
|
|
2654
2692
|
"failures": [],
|
|
2655
2693
|
"pending": [],
|
|
2656
2694
|
"skipped": [],
|
|
2657
|
-
"duration":
|
|
2695
|
+
"duration": 1,
|
|
2658
2696
|
"root": false,
|
|
2659
2697
|
"rootEmpty": false,
|
|
2660
2698
|
"_timeout": 2000
|
|
2661
2699
|
},
|
|
2662
2700
|
{
|
|
2663
|
-
"uuid": "
|
|
2701
|
+
"uuid": "a0419dda-99db-4ea9-8bc7-d5c8cfabc78b",
|
|
2664
2702
|
"title": "suspend()",
|
|
2665
2703
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2666
2704
|
"file": "/test/device.ts",
|
|
@@ -2671,7 +2709,7 @@
|
|
|
2671
2709
|
"title": "should work",
|
|
2672
2710
|
"fullTitle": "NodePyATVDevice suspend() should work",
|
|
2673
2711
|
"timedOut": false,
|
|
2674
|
-
"duration":
|
|
2712
|
+
"duration": 2,
|
|
2675
2713
|
"state": "passed",
|
|
2676
2714
|
"speed": "fast",
|
|
2677
2715
|
"pass": true,
|
|
@@ -2680,26 +2718,26 @@
|
|
|
2680
2718
|
"context": null,
|
|
2681
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});",
|
|
2682
2720
|
"err": {},
|
|
2683
|
-
"uuid": "
|
|
2684
|
-
"parentUUID": "
|
|
2721
|
+
"uuid": "1b7646ce-9e64-4edf-ae7c-a90f2668b26a",
|
|
2722
|
+
"parentUUID": "a0419dda-99db-4ea9-8bc7-d5c8cfabc78b",
|
|
2685
2723
|
"isHook": false,
|
|
2686
2724
|
"skipped": false
|
|
2687
2725
|
}
|
|
2688
2726
|
],
|
|
2689
2727
|
"suites": [],
|
|
2690
2728
|
"passes": [
|
|
2691
|
-
"
|
|
2729
|
+
"1b7646ce-9e64-4edf-ae7c-a90f2668b26a"
|
|
2692
2730
|
],
|
|
2693
2731
|
"failures": [],
|
|
2694
2732
|
"pending": [],
|
|
2695
2733
|
"skipped": [],
|
|
2696
|
-
"duration":
|
|
2734
|
+
"duration": 2,
|
|
2697
2735
|
"root": false,
|
|
2698
2736
|
"rootEmpty": false,
|
|
2699
2737
|
"_timeout": 2000
|
|
2700
2738
|
},
|
|
2701
2739
|
{
|
|
2702
|
-
"uuid": "
|
|
2740
|
+
"uuid": "32906798-88dc-48eb-acca-f7ba12b2d57b",
|
|
2703
2741
|
"title": "topMenu()",
|
|
2704
2742
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2705
2743
|
"file": "/test/device.ts",
|
|
@@ -2719,15 +2757,15 @@
|
|
|
2719
2757
|
"context": null,
|
|
2720
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});",
|
|
2721
2759
|
"err": {},
|
|
2722
|
-
"uuid": "
|
|
2723
|
-
"parentUUID": "
|
|
2760
|
+
"uuid": "563ea26e-4f2d-4ba0-a070-c2c4139935a1",
|
|
2761
|
+
"parentUUID": "32906798-88dc-48eb-acca-f7ba12b2d57b",
|
|
2724
2762
|
"isHook": false,
|
|
2725
2763
|
"skipped": false
|
|
2726
2764
|
}
|
|
2727
2765
|
],
|
|
2728
2766
|
"suites": [],
|
|
2729
2767
|
"passes": [
|
|
2730
|
-
"
|
|
2768
|
+
"563ea26e-4f2d-4ba0-a070-c2c4139935a1"
|
|
2731
2769
|
],
|
|
2732
2770
|
"failures": [],
|
|
2733
2771
|
"pending": [],
|
|
@@ -2738,7 +2776,7 @@
|
|
|
2738
2776
|
"_timeout": 2000
|
|
2739
2777
|
},
|
|
2740
2778
|
{
|
|
2741
|
-
"uuid": "
|
|
2779
|
+
"uuid": "08450232-7f94-4311-b174-bc2b02007b30",
|
|
2742
2780
|
"title": "up()",
|
|
2743
2781
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2744
2782
|
"file": "/test/device.ts",
|
|
@@ -2758,15 +2796,15 @@
|
|
|
2758
2796
|
"context": null,
|
|
2759
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});",
|
|
2760
2798
|
"err": {},
|
|
2761
|
-
"uuid": "
|
|
2762
|
-
"parentUUID": "
|
|
2799
|
+
"uuid": "c33f7de6-dee8-4bdf-b41c-adeafe2b6434",
|
|
2800
|
+
"parentUUID": "08450232-7f94-4311-b174-bc2b02007b30",
|
|
2763
2801
|
"isHook": false,
|
|
2764
2802
|
"skipped": false
|
|
2765
2803
|
}
|
|
2766
2804
|
],
|
|
2767
2805
|
"suites": [],
|
|
2768
2806
|
"passes": [
|
|
2769
|
-
"
|
|
2807
|
+
"c33f7de6-dee8-4bdf-b41c-adeafe2b6434"
|
|
2770
2808
|
],
|
|
2771
2809
|
"failures": [],
|
|
2772
2810
|
"pending": [],
|
|
@@ -2777,7 +2815,7 @@
|
|
|
2777
2815
|
"_timeout": 2000
|
|
2778
2816
|
},
|
|
2779
2817
|
{
|
|
2780
|
-
"uuid": "
|
|
2818
|
+
"uuid": "c70fed91-6fce-43e0-96eb-3250e044ed99",
|
|
2781
2819
|
"title": "volumeDown()",
|
|
2782
2820
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2783
2821
|
"file": "/test/device.ts",
|
|
@@ -2788,7 +2826,7 @@
|
|
|
2788
2826
|
"title": "should work",
|
|
2789
2827
|
"fullTitle": "NodePyATVDevice volumeDown() should work",
|
|
2790
2828
|
"timedOut": false,
|
|
2791
|
-
"duration":
|
|
2829
|
+
"duration": 1,
|
|
2792
2830
|
"state": "passed",
|
|
2793
2831
|
"speed": "fast",
|
|
2794
2832
|
"pass": true,
|
|
@@ -2797,26 +2835,26 @@
|
|
|
2797
2835
|
"context": null,
|
|
2798
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});",
|
|
2799
2837
|
"err": {},
|
|
2800
|
-
"uuid": "
|
|
2801
|
-
"parentUUID": "
|
|
2838
|
+
"uuid": "8fbe1bcf-c5b9-4a43-ae09-b533bf652703",
|
|
2839
|
+
"parentUUID": "c70fed91-6fce-43e0-96eb-3250e044ed99",
|
|
2802
2840
|
"isHook": false,
|
|
2803
2841
|
"skipped": false
|
|
2804
2842
|
}
|
|
2805
2843
|
],
|
|
2806
2844
|
"suites": [],
|
|
2807
2845
|
"passes": [
|
|
2808
|
-
"
|
|
2846
|
+
"8fbe1bcf-c5b9-4a43-ae09-b533bf652703"
|
|
2809
2847
|
],
|
|
2810
2848
|
"failures": [],
|
|
2811
2849
|
"pending": [],
|
|
2812
2850
|
"skipped": [],
|
|
2813
|
-
"duration":
|
|
2851
|
+
"duration": 1,
|
|
2814
2852
|
"root": false,
|
|
2815
2853
|
"rootEmpty": false,
|
|
2816
2854
|
"_timeout": 2000
|
|
2817
2855
|
},
|
|
2818
2856
|
{
|
|
2819
|
-
"uuid": "
|
|
2857
|
+
"uuid": "88aaff08-bda5-4629-825d-39441eaa2f19",
|
|
2820
2858
|
"title": "volumeUp()",
|
|
2821
2859
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2822
2860
|
"file": "/test/device.ts",
|
|
@@ -2836,15 +2874,15 @@
|
|
|
2836
2874
|
"context": null,
|
|
2837
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});",
|
|
2838
2876
|
"err": {},
|
|
2839
|
-
"uuid": "
|
|
2840
|
-
"parentUUID": "
|
|
2877
|
+
"uuid": "83536c6a-91ac-4b20-b0b4-b59f6ac915c8",
|
|
2878
|
+
"parentUUID": "88aaff08-bda5-4629-825d-39441eaa2f19",
|
|
2841
2879
|
"isHook": false,
|
|
2842
2880
|
"skipped": false
|
|
2843
2881
|
}
|
|
2844
2882
|
],
|
|
2845
2883
|
"suites": [],
|
|
2846
2884
|
"passes": [
|
|
2847
|
-
"
|
|
2885
|
+
"83536c6a-91ac-4b20-b0b4-b59f6ac915c8"
|
|
2848
2886
|
],
|
|
2849
2887
|
"failures": [],
|
|
2850
2888
|
"pending": [],
|
|
@@ -2855,7 +2893,7 @@
|
|
|
2855
2893
|
"_timeout": 2000
|
|
2856
2894
|
},
|
|
2857
2895
|
{
|
|
2858
|
-
"uuid": "
|
|
2896
|
+
"uuid": "8ccf2111-9fe1-4829-aa14-9d339d0dd365",
|
|
2859
2897
|
"title": "wakeup()",
|
|
2860
2898
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2861
2899
|
"file": "/test/device.ts",
|
|
@@ -2875,15 +2913,15 @@
|
|
|
2875
2913
|
"context": null,
|
|
2876
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});",
|
|
2877
2915
|
"err": {},
|
|
2878
|
-
"uuid": "
|
|
2879
|
-
"parentUUID": "
|
|
2916
|
+
"uuid": "118ce868-8e11-4cdf-8486-910f4871b349",
|
|
2917
|
+
"parentUUID": "8ccf2111-9fe1-4829-aa14-9d339d0dd365",
|
|
2880
2918
|
"isHook": false,
|
|
2881
2919
|
"skipped": false
|
|
2882
2920
|
}
|
|
2883
2921
|
],
|
|
2884
2922
|
"suites": [],
|
|
2885
2923
|
"passes": [
|
|
2886
|
-
"
|
|
2924
|
+
"118ce868-8e11-4cdf-8486-910f4871b349"
|
|
2887
2925
|
],
|
|
2888
2926
|
"failures": [],
|
|
2889
2927
|
"pending": [],
|
|
@@ -2904,7 +2942,7 @@
|
|
|
2904
2942
|
"_timeout": 2000
|
|
2905
2943
|
},
|
|
2906
2944
|
{
|
|
2907
|
-
"uuid": "
|
|
2945
|
+
"uuid": "0a4d61e1-bbd9-4bbf-a335-ecba6b804a7e",
|
|
2908
2946
|
"title": "NodePyATVInstance",
|
|
2909
2947
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2910
2948
|
"file": "/test/instance.ts",
|
|
@@ -2913,7 +2951,7 @@
|
|
|
2913
2951
|
"tests": [],
|
|
2914
2952
|
"suites": [
|
|
2915
2953
|
{
|
|
2916
|
-
"uuid": "
|
|
2954
|
+
"uuid": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
2917
2955
|
"title": "static version()",
|
|
2918
2956
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2919
2957
|
"file": "/test/instance.ts",
|
|
@@ -2924,7 +2962,7 @@
|
|
|
2924
2962
|
"title": "should work with pyatv [L]",
|
|
2925
2963
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
2926
2964
|
"timedOut": false,
|
|
2927
|
-
"duration":
|
|
2965
|
+
"duration": 683,
|
|
2928
2966
|
"state": "passed",
|
|
2929
2967
|
"speed": "slow",
|
|
2930
2968
|
"pass": true,
|
|
@@ -2933,8 +2971,8 @@
|
|
|
2933
2971
|
"context": null,
|
|
2934
2972
|
"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});",
|
|
2935
2973
|
"err": {},
|
|
2936
|
-
"uuid": "
|
|
2937
|
-
"parentUUID": "
|
|
2974
|
+
"uuid": "bde93e87-49d5-423e-9412-8aee7cda14f0",
|
|
2975
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
2938
2976
|
"isHook": false,
|
|
2939
2977
|
"skipped": false
|
|
2940
2978
|
},
|
|
@@ -2942,7 +2980,7 @@
|
|
|
2942
2980
|
"title": "should return the pyatv version",
|
|
2943
2981
|
"fullTitle": "NodePyATVInstance static version() should return the pyatv version",
|
|
2944
2982
|
"timedOut": false,
|
|
2945
|
-
"duration":
|
|
2983
|
+
"duration": 2,
|
|
2946
2984
|
"state": "passed",
|
|
2947
2985
|
"speed": "fast",
|
|
2948
2986
|
"pass": true,
|
|
@@ -2951,8 +2989,8 @@
|
|
|
2951
2989
|
"context": null,
|
|
2952
2990
|
"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});",
|
|
2953
2991
|
"err": {},
|
|
2954
|
-
"uuid": "
|
|
2955
|
-
"parentUUID": "
|
|
2992
|
+
"uuid": "c009c1ca-371e-4a33-a16c-fc929e6592fa",
|
|
2993
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
2956
2994
|
"isHook": false,
|
|
2957
2995
|
"skipped": false
|
|
2958
2996
|
},
|
|
@@ -2969,8 +3007,8 @@
|
|
|
2969
3007
|
"context": null,
|
|
2970
3008
|
"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});",
|
|
2971
3009
|
"err": {},
|
|
2972
|
-
"uuid": "
|
|
2973
|
-
"parentUUID": "
|
|
3010
|
+
"uuid": "b0dcf7b0-262b-48a3-a4a9-26d8229fbc7f",
|
|
3011
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
2974
3012
|
"isHook": false,
|
|
2975
3013
|
"skipped": false
|
|
2976
3014
|
},
|
|
@@ -2978,7 +3016,7 @@
|
|
|
2978
3016
|
"title": "should handle option.atvremotePath",
|
|
2979
3017
|
"fullTitle": "NodePyATVInstance static version() should handle option.atvremotePath",
|
|
2980
3018
|
"timedOut": false,
|
|
2981
|
-
"duration":
|
|
3019
|
+
"duration": 2,
|
|
2982
3020
|
"state": "passed",
|
|
2983
3021
|
"speed": "fast",
|
|
2984
3022
|
"pass": true,
|
|
@@ -2987,8 +3025,8 @@
|
|
|
2987
3025
|
"context": null,
|
|
2988
3026
|
"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});",
|
|
2989
3027
|
"err": {},
|
|
2990
|
-
"uuid": "
|
|
2991
|
-
"parentUUID": "
|
|
3028
|
+
"uuid": "cebccf82-30c8-486b-b5eb-b25cd37bec13",
|
|
3029
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
2992
3030
|
"isHook": false,
|
|
2993
3031
|
"skipped": false
|
|
2994
3032
|
},
|
|
@@ -2996,7 +3034,7 @@
|
|
|
2996
3034
|
"title": "should work with option.debug = true",
|
|
2997
3035
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
2998
3036
|
"timedOut": false,
|
|
2999
|
-
"duration":
|
|
3037
|
+
"duration": 2,
|
|
3000
3038
|
"state": "passed",
|
|
3001
3039
|
"speed": "fast",
|
|
3002
3040
|
"pass": true,
|
|
@@ -3005,8 +3043,8 @@
|
|
|
3005
3043
|
"context": null,
|
|
3006
3044
|
"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});",
|
|
3007
3045
|
"err": {},
|
|
3008
|
-
"uuid": "
|
|
3009
|
-
"parentUUID": "
|
|
3046
|
+
"uuid": "dad23fc9-16fe-4524-a127-cc46135106a4",
|
|
3047
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3010
3048
|
"isHook": false,
|
|
3011
3049
|
"skipped": false
|
|
3012
3050
|
},
|
|
@@ -3023,8 +3061,8 @@
|
|
|
3023
3061
|
"context": null,
|
|
3024
3062
|
"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});",
|
|
3025
3063
|
"err": {},
|
|
3026
|
-
"uuid": "
|
|
3027
|
-
"parentUUID": "
|
|
3064
|
+
"uuid": "22fb6ef8-0c1f-40bf-bd12-3bb2fc57d31a",
|
|
3065
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3028
3066
|
"isHook": false,
|
|
3029
3067
|
"skipped": false
|
|
3030
3068
|
},
|
|
@@ -3032,7 +3070,7 @@
|
|
|
3032
3070
|
"title": "should return null on pyatv stderr output",
|
|
3033
3071
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv stderr output",
|
|
3034
3072
|
"timedOut": false,
|
|
3035
|
-
"duration":
|
|
3073
|
+
"duration": 2,
|
|
3036
3074
|
"state": "passed",
|
|
3037
3075
|
"speed": "fast",
|
|
3038
3076
|
"pass": true,
|
|
@@ -3041,8 +3079,8 @@
|
|
|
3041
3079
|
"context": null,
|
|
3042
3080
|
"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});",
|
|
3043
3081
|
"err": {},
|
|
3044
|
-
"uuid": "
|
|
3045
|
-
"parentUUID": "
|
|
3082
|
+
"uuid": "7e099935-0384-4211-9ed7-ce4827f9b5f5",
|
|
3083
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3046
3084
|
"isHook": false,
|
|
3047
3085
|
"skipped": false
|
|
3048
3086
|
},
|
|
@@ -3050,7 +3088,7 @@
|
|
|
3050
3088
|
"title": "should return null on pyatv error",
|
|
3051
3089
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv error",
|
|
3052
3090
|
"timedOut": false,
|
|
3053
|
-
"duration":
|
|
3091
|
+
"duration": 2,
|
|
3054
3092
|
"state": "passed",
|
|
3055
3093
|
"speed": "fast",
|
|
3056
3094
|
"pass": true,
|
|
@@ -3059,8 +3097,8 @@
|
|
|
3059
3097
|
"context": null,
|
|
3060
3098
|
"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});",
|
|
3061
3099
|
"err": {},
|
|
3062
|
-
"uuid": "
|
|
3063
|
-
"parentUUID": "
|
|
3100
|
+
"uuid": "bffd869d-e7e8-4f1d-9f4e-df135c89ef66",
|
|
3101
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3064
3102
|
"isHook": false,
|
|
3065
3103
|
"skipped": false
|
|
3066
3104
|
},
|
|
@@ -3077,8 +3115,8 @@
|
|
|
3077
3115
|
"context": null,
|
|
3078
3116
|
"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});",
|
|
3079
3117
|
"err": {},
|
|
3080
|
-
"uuid": "
|
|
3081
|
-
"parentUUID": "
|
|
3118
|
+
"uuid": "fdcf4108-1df5-4825-9b8e-d08c78b2be0f",
|
|
3119
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3082
3120
|
"isHook": false,
|
|
3083
3121
|
"skipped": false
|
|
3084
3122
|
},
|
|
@@ -3086,7 +3124,7 @@
|
|
|
3086
3124
|
"title": "should return null on empty module version",
|
|
3087
3125
|
"fullTitle": "NodePyATVInstance static version() should return null on empty module version",
|
|
3088
3126
|
"timedOut": false,
|
|
3089
|
-
"duration":
|
|
3127
|
+
"duration": 1,
|
|
3090
3128
|
"state": "passed",
|
|
3091
3129
|
"speed": "fast",
|
|
3092
3130
|
"pass": true,
|
|
@@ -3095,8 +3133,8 @@
|
|
|
3095
3133
|
"context": null,
|
|
3096
3134
|
"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});",
|
|
3097
3135
|
"err": {},
|
|
3098
|
-
"uuid": "
|
|
3099
|
-
"parentUUID": "
|
|
3136
|
+
"uuid": "7bc1225f-249d-47e9-b7eb-63ac9eced819",
|
|
3137
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3100
3138
|
"isHook": false,
|
|
3101
3139
|
"skipped": false
|
|
3102
3140
|
},
|
|
@@ -3104,7 +3142,7 @@
|
|
|
3104
3142
|
"title": "should return null on invalid module version",
|
|
3105
3143
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid module version",
|
|
3106
3144
|
"timedOut": false,
|
|
3107
|
-
"duration":
|
|
3145
|
+
"duration": 1,
|
|
3108
3146
|
"state": "passed",
|
|
3109
3147
|
"speed": "fast",
|
|
3110
3148
|
"pass": true,
|
|
@@ -3113,36 +3151,36 @@
|
|
|
3113
3151
|
"context": null,
|
|
3114
3152
|
"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});",
|
|
3115
3153
|
"err": {},
|
|
3116
|
-
"uuid": "
|
|
3117
|
-
"parentUUID": "
|
|
3154
|
+
"uuid": "6a1b0ed0-ac12-4ed7-97ac-ecc3c298556f",
|
|
3155
|
+
"parentUUID": "d8376a07-8eb2-4e4a-b9bb-9413a8b68626",
|
|
3118
3156
|
"isHook": false,
|
|
3119
3157
|
"skipped": false
|
|
3120
3158
|
}
|
|
3121
3159
|
],
|
|
3122
3160
|
"suites": [],
|
|
3123
3161
|
"passes": [
|
|
3124
|
-
"
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
"
|
|
3129
|
-
"
|
|
3130
|
-
"
|
|
3131
|
-
"
|
|
3132
|
-
"
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3162
|
+
"bde93e87-49d5-423e-9412-8aee7cda14f0",
|
|
3163
|
+
"c009c1ca-371e-4a33-a16c-fc929e6592fa",
|
|
3164
|
+
"b0dcf7b0-262b-48a3-a4a9-26d8229fbc7f",
|
|
3165
|
+
"cebccf82-30c8-486b-b5eb-b25cd37bec13",
|
|
3166
|
+
"dad23fc9-16fe-4524-a127-cc46135106a4",
|
|
3167
|
+
"22fb6ef8-0c1f-40bf-bd12-3bb2fc57d31a",
|
|
3168
|
+
"7e099935-0384-4211-9ed7-ce4827f9b5f5",
|
|
3169
|
+
"bffd869d-e7e8-4f1d-9f4e-df135c89ef66",
|
|
3170
|
+
"fdcf4108-1df5-4825-9b8e-d08c78b2be0f",
|
|
3171
|
+
"7bc1225f-249d-47e9-b7eb-63ac9eced819",
|
|
3172
|
+
"6a1b0ed0-ac12-4ed7-97ac-ecc3c298556f"
|
|
3135
3173
|
],
|
|
3136
3174
|
"failures": [],
|
|
3137
3175
|
"pending": [],
|
|
3138
3176
|
"skipped": [],
|
|
3139
|
-
"duration":
|
|
3177
|
+
"duration": 698,
|
|
3140
3178
|
"root": false,
|
|
3141
3179
|
"rootEmpty": false,
|
|
3142
3180
|
"_timeout": 2000
|
|
3143
3181
|
},
|
|
3144
3182
|
{
|
|
3145
|
-
"uuid": "
|
|
3183
|
+
"uuid": "cf7512f0-a3b3-4ed0-b6b7-fc5597e45dba",
|
|
3146
3184
|
"title": "static check()",
|
|
3147
3185
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3148
3186
|
"file": "/test/instance.ts",
|
|
@@ -3153,7 +3191,7 @@
|
|
|
3153
3191
|
"title": "should resolve in test environment [L]",
|
|
3154
3192
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3155
3193
|
"timedOut": false,
|
|
3156
|
-
"duration":
|
|
3194
|
+
"duration": 5881,
|
|
3157
3195
|
"state": "passed",
|
|
3158
3196
|
"speed": "slow",
|
|
3159
3197
|
"pass": true,
|
|
@@ -3162,8 +3200,8 @@
|
|
|
3162
3200
|
"context": null,
|
|
3163
3201
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield index_1.default.check();\n});",
|
|
3164
3202
|
"err": {},
|
|
3165
|
-
"uuid": "
|
|
3166
|
-
"parentUUID": "
|
|
3203
|
+
"uuid": "3bd6b99f-308b-4db6-bf5f-10d33e0a9f2e",
|
|
3204
|
+
"parentUUID": "cf7512f0-a3b3-4ed0-b6b7-fc5597e45dba",
|
|
3167
3205
|
"isHook": false,
|
|
3168
3206
|
"skipped": false
|
|
3169
3207
|
},
|
|
@@ -3180,8 +3218,8 @@
|
|
|
3180
3218
|
"context": null,
|
|
3181
3219
|
"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});",
|
|
3182
3220
|
"err": {},
|
|
3183
|
-
"uuid": "
|
|
3184
|
-
"parentUUID": "
|
|
3221
|
+
"uuid": "a9e094d8-90ca-4b9f-bbac-120aab41f994",
|
|
3222
|
+
"parentUUID": "cf7512f0-a3b3-4ed0-b6b7-fc5597e45dba",
|
|
3185
3223
|
"isHook": false,
|
|
3186
3224
|
"skipped": false
|
|
3187
3225
|
},
|
|
@@ -3189,7 +3227,7 @@
|
|
|
3189
3227
|
"title": "should return nice error message if myatv is too old",
|
|
3190
3228
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if myatv is too old",
|
|
3191
3229
|
"timedOut": false,
|
|
3192
|
-
"duration":
|
|
3230
|
+
"duration": 2,
|
|
3193
3231
|
"state": "passed",
|
|
3194
3232
|
"speed": "fast",
|
|
3195
3233
|
"pass": true,
|
|
@@ -3198,8 +3236,8 @@
|
|
|
3198
3236
|
"context": null,
|
|
3199
3237
|
"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});",
|
|
3200
3238
|
"err": {},
|
|
3201
|
-
"uuid": "
|
|
3202
|
-
"parentUUID": "
|
|
3239
|
+
"uuid": "47ed9b2e-c0f4-420a-b352-5ce33f3f9ea5",
|
|
3240
|
+
"parentUUID": "cf7512f0-a3b3-4ed0-b6b7-fc5597e45dba",
|
|
3203
3241
|
"isHook": false,
|
|
3204
3242
|
"skipped": false
|
|
3205
3243
|
},
|
|
@@ -3216,29 +3254,29 @@
|
|
|
3216
3254
|
"context": null,
|
|
3217
3255
|
"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});",
|
|
3218
3256
|
"err": {},
|
|
3219
|
-
"uuid": "
|
|
3220
|
-
"parentUUID": "
|
|
3257
|
+
"uuid": "d1e27c87-d1b4-4015-9ec0-da01361eb3ea",
|
|
3258
|
+
"parentUUID": "cf7512f0-a3b3-4ed0-b6b7-fc5597e45dba",
|
|
3221
3259
|
"isHook": false,
|
|
3222
3260
|
"skipped": false
|
|
3223
3261
|
}
|
|
3224
3262
|
],
|
|
3225
3263
|
"suites": [],
|
|
3226
3264
|
"passes": [
|
|
3227
|
-
"
|
|
3228
|
-
"
|
|
3229
|
-
"
|
|
3230
|
-
"
|
|
3265
|
+
"3bd6b99f-308b-4db6-bf5f-10d33e0a9f2e",
|
|
3266
|
+
"a9e094d8-90ca-4b9f-bbac-120aab41f994",
|
|
3267
|
+
"47ed9b2e-c0f4-420a-b352-5ce33f3f9ea5",
|
|
3268
|
+
"d1e27c87-d1b4-4015-9ec0-da01361eb3ea"
|
|
3231
3269
|
],
|
|
3232
3270
|
"failures": [],
|
|
3233
3271
|
"pending": [],
|
|
3234
3272
|
"skipped": [],
|
|
3235
|
-
"duration":
|
|
3273
|
+
"duration": 5888,
|
|
3236
3274
|
"root": false,
|
|
3237
3275
|
"rootEmpty": false,
|
|
3238
3276
|
"_timeout": 2000
|
|
3239
3277
|
},
|
|
3240
3278
|
{
|
|
3241
|
-
"uuid": "
|
|
3279
|
+
"uuid": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3242
3280
|
"title": "static find()",
|
|
3243
3281
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3244
3282
|
"file": "/test/instance.ts",
|
|
@@ -3249,7 +3287,7 @@
|
|
|
3249
3287
|
"title": "should work [L]",
|
|
3250
3288
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3251
3289
|
"timedOut": false,
|
|
3252
|
-
"duration":
|
|
3290
|
+
"duration": 5442,
|
|
3253
3291
|
"state": "passed",
|
|
3254
3292
|
"speed": "slow",
|
|
3255
3293
|
"pass": true,
|
|
@@ -3258,8 +3296,8 @@
|
|
|
3258
3296
|
"context": null,
|
|
3259
3297
|
"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});",
|
|
3260
3298
|
"err": {},
|
|
3261
|
-
"uuid": "
|
|
3262
|
-
"parentUUID": "
|
|
3299
|
+
"uuid": "9fd80e5d-6f3c-4caf-a49b-8545cd9337fc",
|
|
3300
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3263
3301
|
"isHook": false,
|
|
3264
3302
|
"skipped": false
|
|
3265
3303
|
},
|
|
@@ -3267,7 +3305,7 @@
|
|
|
3267
3305
|
"title": "should handle option.atvscriptPath",
|
|
3268
3306
|
"fullTitle": "NodePyATVInstance static find() should handle option.atvscriptPath",
|
|
3269
3307
|
"timedOut": false,
|
|
3270
|
-
"duration":
|
|
3308
|
+
"duration": 2,
|
|
3271
3309
|
"state": "passed",
|
|
3272
3310
|
"speed": "fast",
|
|
3273
3311
|
"pass": true,
|
|
@@ -3276,8 +3314,8 @@
|
|
|
3276
3314
|
"context": null,
|
|
3277
3315
|
"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});",
|
|
3278
3316
|
"err": {},
|
|
3279
|
-
"uuid": "
|
|
3280
|
-
"parentUUID": "
|
|
3317
|
+
"uuid": "4961efec-2363-4d58-a846-822fe858749e",
|
|
3318
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3281
3319
|
"isHook": false,
|
|
3282
3320
|
"skipped": false
|
|
3283
3321
|
},
|
|
@@ -3285,7 +3323,7 @@
|
|
|
3285
3323
|
"title": "should throw error on stderr output",
|
|
3286
3324
|
"fullTitle": "NodePyATVInstance static find() should throw error on stderr output",
|
|
3287
3325
|
"timedOut": false,
|
|
3288
|
-
"duration":
|
|
3326
|
+
"duration": 0,
|
|
3289
3327
|
"state": "passed",
|
|
3290
3328
|
"speed": "fast",
|
|
3291
3329
|
"pass": true,
|
|
@@ -3294,8 +3332,8 @@
|
|
|
3294
3332
|
"context": null,
|
|
3295
3333
|
"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});",
|
|
3296
3334
|
"err": {},
|
|
3297
|
-
"uuid": "
|
|
3298
|
-
"parentUUID": "
|
|
3335
|
+
"uuid": "92e18c69-9eea-45a6-a4f1-797dfd20e2fe",
|
|
3336
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3299
3337
|
"isHook": false,
|
|
3300
3338
|
"skipped": false
|
|
3301
3339
|
},
|
|
@@ -3303,7 +3341,7 @@
|
|
|
3303
3341
|
"title": "should throw error on error",
|
|
3304
3342
|
"fullTitle": "NodePyATVInstance static find() should throw error on error",
|
|
3305
3343
|
"timedOut": false,
|
|
3306
|
-
"duration":
|
|
3344
|
+
"duration": 1,
|
|
3307
3345
|
"state": "passed",
|
|
3308
3346
|
"speed": "fast",
|
|
3309
3347
|
"pass": true,
|
|
@@ -3312,8 +3350,8 @@
|
|
|
3312
3350
|
"context": null,
|
|
3313
3351
|
"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});",
|
|
3314
3352
|
"err": {},
|
|
3315
|
-
"uuid": "
|
|
3316
|
-
"parentUUID": "
|
|
3353
|
+
"uuid": "6dca71ea-aca6-492f-b001-4f62b35a11be",
|
|
3354
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3317
3355
|
"isHook": false,
|
|
3318
3356
|
"skipped": false
|
|
3319
3357
|
},
|
|
@@ -3330,8 +3368,8 @@
|
|
|
3330
3368
|
"context": null,
|
|
3331
3369
|
"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});",
|
|
3332
3370
|
"err": {},
|
|
3333
|
-
"uuid": "
|
|
3334
|
-
"parentUUID": "
|
|
3371
|
+
"uuid": "3a9d1e3a-eb8b-4214-8cac-902935be014a",
|
|
3372
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3335
3373
|
"isHook": false,
|
|
3336
3374
|
"skipped": false
|
|
3337
3375
|
},
|
|
@@ -3348,8 +3386,8 @@
|
|
|
3348
3386
|
"context": null,
|
|
3349
3387
|
"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});",
|
|
3350
3388
|
"err": {},
|
|
3351
|
-
"uuid": "
|
|
3352
|
-
"parentUUID": "
|
|
3389
|
+
"uuid": "1bc0b4bc-1a95-44db-92dd-d4cdc2873064",
|
|
3390
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3353
3391
|
"isHook": false,
|
|
3354
3392
|
"skipped": false
|
|
3355
3393
|
},
|
|
@@ -3357,7 +3395,7 @@
|
|
|
3357
3395
|
"title": "should throw error if atvscript result is without device array",
|
|
3358
3396
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3359
3397
|
"timedOut": false,
|
|
3360
|
-
"duration":
|
|
3398
|
+
"duration": 2,
|
|
3361
3399
|
"state": "passed",
|
|
3362
3400
|
"speed": "fast",
|
|
3363
3401
|
"pass": true,
|
|
@@ -3366,32 +3404,32 @@
|
|
|
3366
3404
|
"context": null,
|
|
3367
3405
|
"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});",
|
|
3368
3406
|
"err": {},
|
|
3369
|
-
"uuid": "
|
|
3370
|
-
"parentUUID": "
|
|
3407
|
+
"uuid": "bd6dc2d6-b4a8-4772-9b0c-8cd75a205745",
|
|
3408
|
+
"parentUUID": "4ad6b81a-4a80-417a-a05d-278c304e7543",
|
|
3371
3409
|
"isHook": false,
|
|
3372
3410
|
"skipped": false
|
|
3373
3411
|
}
|
|
3374
3412
|
],
|
|
3375
3413
|
"suites": [],
|
|
3376
3414
|
"passes": [
|
|
3377
|
-
"
|
|
3378
|
-
"
|
|
3379
|
-
"
|
|
3380
|
-
"
|
|
3381
|
-
"
|
|
3382
|
-
"
|
|
3383
|
-
"
|
|
3415
|
+
"9fd80e5d-6f3c-4caf-a49b-8545cd9337fc",
|
|
3416
|
+
"4961efec-2363-4d58-a846-822fe858749e",
|
|
3417
|
+
"92e18c69-9eea-45a6-a4f1-797dfd20e2fe",
|
|
3418
|
+
"6dca71ea-aca6-492f-b001-4f62b35a11be",
|
|
3419
|
+
"3a9d1e3a-eb8b-4214-8cac-902935be014a",
|
|
3420
|
+
"1bc0b4bc-1a95-44db-92dd-d4cdc2873064",
|
|
3421
|
+
"bd6dc2d6-b4a8-4772-9b0c-8cd75a205745"
|
|
3384
3422
|
],
|
|
3385
3423
|
"failures": [],
|
|
3386
3424
|
"pending": [],
|
|
3387
3425
|
"skipped": [],
|
|
3388
|
-
"duration":
|
|
3426
|
+
"duration": 5449,
|
|
3389
3427
|
"root": false,
|
|
3390
3428
|
"rootEmpty": false,
|
|
3391
3429
|
"_timeout": 2000
|
|
3392
3430
|
},
|
|
3393
3431
|
{
|
|
3394
|
-
"uuid": "
|
|
3432
|
+
"uuid": "9b04a9e7-8618-46d9-9f74-920da58ded9d",
|
|
3395
3433
|
"title": "static device()",
|
|
3396
3434
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3397
3435
|
"file": "/test/instance.ts",
|
|
@@ -3411,15 +3449,15 @@
|
|
|
3411
3449
|
"context": null,
|
|
3412
3450
|
"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');",
|
|
3413
3451
|
"err": {},
|
|
3414
|
-
"uuid": "
|
|
3415
|
-
"parentUUID": "
|
|
3452
|
+
"uuid": "d495ce27-7547-487c-b3d5-9596a6564f99",
|
|
3453
|
+
"parentUUID": "9b04a9e7-8618-46d9-9f74-920da58ded9d",
|
|
3416
3454
|
"isHook": false,
|
|
3417
3455
|
"skipped": false
|
|
3418
3456
|
}
|
|
3419
3457
|
],
|
|
3420
3458
|
"suites": [],
|
|
3421
3459
|
"passes": [
|
|
3422
|
-
"
|
|
3460
|
+
"d495ce27-7547-487c-b3d5-9596a6564f99"
|
|
3423
3461
|
],
|
|
3424
3462
|
"failures": [],
|
|
3425
3463
|
"pending": [],
|
|
@@ -3430,7 +3468,7 @@
|
|
|
3430
3468
|
"_timeout": 2000
|
|
3431
3469
|
},
|
|
3432
3470
|
{
|
|
3433
|
-
"uuid": "
|
|
3471
|
+
"uuid": "3103e135-1983-402f-9654-1e94f174d12e",
|
|
3434
3472
|
"title": "version()",
|
|
3435
3473
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3436
3474
|
"file": "/test/instance.ts",
|
|
@@ -3450,15 +3488,15 @@
|
|
|
3450
3488
|
"context": null,
|
|
3451
3489
|
"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});",
|
|
3452
3490
|
"err": {},
|
|
3453
|
-
"uuid": "
|
|
3454
|
-
"parentUUID": "
|
|
3491
|
+
"uuid": "f64c2f00-addc-4395-b61c-c554a155cc82",
|
|
3492
|
+
"parentUUID": "3103e135-1983-402f-9654-1e94f174d12e",
|
|
3455
3493
|
"isHook": false,
|
|
3456
3494
|
"skipped": false
|
|
3457
3495
|
}
|
|
3458
3496
|
],
|
|
3459
3497
|
"suites": [],
|
|
3460
3498
|
"passes": [
|
|
3461
|
-
"
|
|
3499
|
+
"f64c2f00-addc-4395-b61c-c554a155cc82"
|
|
3462
3500
|
],
|
|
3463
3501
|
"failures": [],
|
|
3464
3502
|
"pending": [],
|
|
@@ -3469,7 +3507,7 @@
|
|
|
3469
3507
|
"_timeout": 2000
|
|
3470
3508
|
},
|
|
3471
3509
|
{
|
|
3472
|
-
"uuid": "
|
|
3510
|
+
"uuid": "b8c1d033-82c0-4b12-b272-1c8cc0347db2",
|
|
3473
3511
|
"title": "check()",
|
|
3474
3512
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3475
3513
|
"file": "/test/instance.ts",
|
|
@@ -3480,7 +3518,7 @@
|
|
|
3480
3518
|
"title": "should merge options from constructor",
|
|
3481
3519
|
"fullTitle": "NodePyATVInstance check() should merge options from constructor",
|
|
3482
3520
|
"timedOut": false,
|
|
3483
|
-
"duration":
|
|
3521
|
+
"duration": 2,
|
|
3484
3522
|
"state": "passed",
|
|
3485
3523
|
"speed": "fast",
|
|
3486
3524
|
"pass": true,
|
|
@@ -3489,26 +3527,26 @@
|
|
|
3489
3527
|
"context": null,
|
|
3490
3528
|
"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});",
|
|
3491
3529
|
"err": {},
|
|
3492
|
-
"uuid": "
|
|
3493
|
-
"parentUUID": "
|
|
3530
|
+
"uuid": "28e0155c-e5de-4e3d-910e-7604483e01f9",
|
|
3531
|
+
"parentUUID": "b8c1d033-82c0-4b12-b272-1c8cc0347db2",
|
|
3494
3532
|
"isHook": false,
|
|
3495
3533
|
"skipped": false
|
|
3496
3534
|
}
|
|
3497
3535
|
],
|
|
3498
3536
|
"suites": [],
|
|
3499
3537
|
"passes": [
|
|
3500
|
-
"
|
|
3538
|
+
"28e0155c-e5de-4e3d-910e-7604483e01f9"
|
|
3501
3539
|
],
|
|
3502
3540
|
"failures": [],
|
|
3503
3541
|
"pending": [],
|
|
3504
3542
|
"skipped": [],
|
|
3505
|
-
"duration":
|
|
3543
|
+
"duration": 2,
|
|
3506
3544
|
"root": false,
|
|
3507
3545
|
"rootEmpty": false,
|
|
3508
3546
|
"_timeout": 2000
|
|
3509
3547
|
},
|
|
3510
3548
|
{
|
|
3511
|
-
"uuid": "
|
|
3549
|
+
"uuid": "34acfb0e-d7bb-4a01-9114-cba946e22767",
|
|
3512
3550
|
"title": "find()",
|
|
3513
3551
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3514
3552
|
"file": "/test/instance.ts",
|
|
@@ -3528,15 +3566,15 @@
|
|
|
3528
3566
|
"context": null,
|
|
3529
3567
|
"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});",
|
|
3530
3568
|
"err": {},
|
|
3531
|
-
"uuid": "
|
|
3532
|
-
"parentUUID": "
|
|
3569
|
+
"uuid": "cf479b1c-1f57-42d1-8b7f-96fd4da2ce50",
|
|
3570
|
+
"parentUUID": "34acfb0e-d7bb-4a01-9114-cba946e22767",
|
|
3533
3571
|
"isHook": false,
|
|
3534
3572
|
"skipped": false
|
|
3535
3573
|
}
|
|
3536
3574
|
],
|
|
3537
3575
|
"suites": [],
|
|
3538
3576
|
"passes": [
|
|
3539
|
-
"
|
|
3577
|
+
"cf479b1c-1f57-42d1-8b7f-96fd4da2ce50"
|
|
3540
3578
|
],
|
|
3541
3579
|
"failures": [],
|
|
3542
3580
|
"pending": [],
|
|
@@ -3547,7 +3585,7 @@
|
|
|
3547
3585
|
"_timeout": 2000
|
|
3548
3586
|
},
|
|
3549
3587
|
{
|
|
3550
|
-
"uuid": "
|
|
3588
|
+
"uuid": "ceab2fd6-3bc6-4fbe-adf6-4a8e946e7ee3",
|
|
3551
3589
|
"title": "device()",
|
|
3552
3590
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3553
3591
|
"file": "/test/instance.ts",
|
|
@@ -3567,15 +3605,15 @@
|
|
|
3567
3605
|
"context": null,
|
|
3568
3606
|
"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});",
|
|
3569
3607
|
"err": {},
|
|
3570
|
-
"uuid": "
|
|
3571
|
-
"parentUUID": "
|
|
3608
|
+
"uuid": "2e0b74c1-a74e-4f81-8e14-3c9f20e7718c",
|
|
3609
|
+
"parentUUID": "ceab2fd6-3bc6-4fbe-adf6-4a8e946e7ee3",
|
|
3572
3610
|
"isHook": false,
|
|
3573
3611
|
"skipped": false
|
|
3574
3612
|
}
|
|
3575
3613
|
],
|
|
3576
3614
|
"suites": [],
|
|
3577
3615
|
"passes": [
|
|
3578
|
-
"
|
|
3616
|
+
"2e0b74c1-a74e-4f81-8e14-3c9f20e7718c"
|
|
3579
3617
|
],
|
|
3580
3618
|
"failures": [],
|
|
3581
3619
|
"pending": [],
|
|
@@ -3586,7 +3624,7 @@
|
|
|
3586
3624
|
"_timeout": 2000
|
|
3587
3625
|
},
|
|
3588
3626
|
{
|
|
3589
|
-
"uuid": "
|
|
3627
|
+
"uuid": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3590
3628
|
"title": "Type Exports",
|
|
3591
3629
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3592
3630
|
"file": "/test/instance.ts",
|
|
@@ -3597,7 +3635,7 @@
|
|
|
3597
3635
|
"title": "Type NodePyATVProtocol should be exported",
|
|
3598
3636
|
"fullTitle": "NodePyATVInstance Type Exports Type NodePyATVProtocol should be exported",
|
|
3599
3637
|
"timedOut": false,
|
|
3600
|
-
"duration":
|
|
3638
|
+
"duration": 0,
|
|
3601
3639
|
"state": "passed",
|
|
3602
3640
|
"speed": "fast",
|
|
3603
3641
|
"pass": true,
|
|
@@ -3606,8 +3644,8 @@
|
|
|
3606
3644
|
"context": null,
|
|
3607
3645
|
"code": "assert_1.default.ok(index_1.NodePyATVProtocol);",
|
|
3608
3646
|
"err": {},
|
|
3609
|
-
"uuid": "
|
|
3610
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "4a4bda08-8d32-4d78-b2e1-ce45b884fae0",
|
|
3648
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3611
3649
|
"isHook": false,
|
|
3612
3650
|
"skipped": false
|
|
3613
3651
|
},
|
|
@@ -3624,8 +3662,8 @@
|
|
|
3624
3662
|
"context": null,
|
|
3625
3663
|
"code": "assert_1.default.ok(index_1.NodePyATVMediaType);",
|
|
3626
3664
|
"err": {},
|
|
3627
|
-
"uuid": "
|
|
3628
|
-
"parentUUID": "
|
|
3665
|
+
"uuid": "a824cd9e-4d8c-4516-b68b-5d7777a0123f",
|
|
3666
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3629
3667
|
"isHook": false,
|
|
3630
3668
|
"skipped": false
|
|
3631
3669
|
},
|
|
@@ -3642,8 +3680,8 @@
|
|
|
3642
3680
|
"context": null,
|
|
3643
3681
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceEvent);",
|
|
3644
3682
|
"err": {},
|
|
3645
|
-
"uuid": "
|
|
3646
|
-
"parentUUID": "
|
|
3683
|
+
"uuid": "35ac0dd2-a7b3-4ae9-af85-2c00e5864039",
|
|
3684
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3647
3685
|
"isHook": false,
|
|
3648
3686
|
"skipped": false
|
|
3649
3687
|
},
|
|
@@ -3660,8 +3698,8 @@
|
|
|
3660
3698
|
"context": null,
|
|
3661
3699
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceState);",
|
|
3662
3700
|
"err": {},
|
|
3663
|
-
"uuid": "
|
|
3664
|
-
"parentUUID": "
|
|
3701
|
+
"uuid": "76e6ed08-80a0-4e63-b6c6-5da87d9ac4ab",
|
|
3702
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3665
3703
|
"isHook": false,
|
|
3666
3704
|
"skipped": false
|
|
3667
3705
|
},
|
|
@@ -3678,8 +3716,8 @@
|
|
|
3678
3716
|
"context": null,
|
|
3679
3717
|
"code": "assert_1.default.ok(index_1.NodePyATVRepeatState);",
|
|
3680
3718
|
"err": {},
|
|
3681
|
-
"uuid": "
|
|
3682
|
-
"parentUUID": "
|
|
3719
|
+
"uuid": "db7147c1-a42a-4769-ac1e-9f03095a077f",
|
|
3720
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3683
3721
|
"isHook": false,
|
|
3684
3722
|
"skipped": false
|
|
3685
3723
|
},
|
|
@@ -3696,8 +3734,8 @@
|
|
|
3696
3734
|
"context": null,
|
|
3697
3735
|
"code": "assert_1.default.ok(index_1.NodePyATVShuffleState);",
|
|
3698
3736
|
"err": {},
|
|
3699
|
-
"uuid": "
|
|
3700
|
-
"parentUUID": "
|
|
3737
|
+
"uuid": "0ac986a6-46a4-45fa-bff2-a74bb8f99876",
|
|
3738
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3701
3739
|
"isHook": false,
|
|
3702
3740
|
"skipped": false
|
|
3703
3741
|
},
|
|
@@ -3714,26 +3752,64 @@
|
|
|
3714
3752
|
"context": null,
|
|
3715
3753
|
"code": "assert_1.default.ok(index_1.NodePyATVKeys);",
|
|
3716
3754
|
"err": {},
|
|
3717
|
-
"uuid": "
|
|
3718
|
-
"parentUUID": "
|
|
3755
|
+
"uuid": "287c1659-1661-4d36-9678-9019c5b805f6",
|
|
3756
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3757
|
+
"isHook": false,
|
|
3758
|
+
"skipped": false
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"title": "Type NodePyATVInstanceOptions should be exported",
|
|
3762
|
+
"fullTitle": "NodePyATVInstance Type Exports Type NodePyATVInstanceOptions should be exported",
|
|
3763
|
+
"timedOut": false,
|
|
3764
|
+
"duration": 0,
|
|
3765
|
+
"state": "passed",
|
|
3766
|
+
"speed": "fast",
|
|
3767
|
+
"pass": true,
|
|
3768
|
+
"fail": false,
|
|
3769
|
+
"pending": false,
|
|
3770
|
+
"context": null,
|
|
3771
|
+
"code": "assert_1.default.ok(index_1.NodePyATVListenerState);",
|
|
3772
|
+
"err": {},
|
|
3773
|
+
"uuid": "303ef86e-94a6-4437-a5e0-885d088ef102",
|
|
3774
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3775
|
+
"isHook": false,
|
|
3776
|
+
"skipped": false
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"title": "Type NodePyATVPowerState should be exported",
|
|
3780
|
+
"fullTitle": "NodePyATVInstance Type Exports Type NodePyATVPowerState should be exported",
|
|
3781
|
+
"timedOut": false,
|
|
3782
|
+
"duration": 0,
|
|
3783
|
+
"state": "passed",
|
|
3784
|
+
"speed": "fast",
|
|
3785
|
+
"pass": true,
|
|
3786
|
+
"fail": false,
|
|
3787
|
+
"pending": false,
|
|
3788
|
+
"context": null,
|
|
3789
|
+
"code": "assert_1.default.ok(index_1.NodePyATVPowerState);",
|
|
3790
|
+
"err": {},
|
|
3791
|
+
"uuid": "6598080c-1461-4406-b24c-84cfe720a4cb",
|
|
3792
|
+
"parentUUID": "d2f0977a-2a95-455e-a238-f11c25794fae",
|
|
3719
3793
|
"isHook": false,
|
|
3720
3794
|
"skipped": false
|
|
3721
3795
|
}
|
|
3722
3796
|
],
|
|
3723
3797
|
"suites": [],
|
|
3724
3798
|
"passes": [
|
|
3725
|
-
"
|
|
3726
|
-
"
|
|
3727
|
-
"
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3730
|
-
"
|
|
3731
|
-
"
|
|
3799
|
+
"4a4bda08-8d32-4d78-b2e1-ce45b884fae0",
|
|
3800
|
+
"a824cd9e-4d8c-4516-b68b-5d7777a0123f",
|
|
3801
|
+
"35ac0dd2-a7b3-4ae9-af85-2c00e5864039",
|
|
3802
|
+
"76e6ed08-80a0-4e63-b6c6-5da87d9ac4ab",
|
|
3803
|
+
"db7147c1-a42a-4769-ac1e-9f03095a077f",
|
|
3804
|
+
"0ac986a6-46a4-45fa-bff2-a74bb8f99876",
|
|
3805
|
+
"287c1659-1661-4d36-9678-9019c5b805f6",
|
|
3806
|
+
"303ef86e-94a6-4437-a5e0-885d088ef102",
|
|
3807
|
+
"6598080c-1461-4406-b24c-84cfe720a4cb"
|
|
3732
3808
|
],
|
|
3733
3809
|
"failures": [],
|
|
3734
3810
|
"pending": [],
|
|
3735
3811
|
"skipped": [],
|
|
3736
|
-
"duration":
|
|
3812
|
+
"duration": 0,
|
|
3737
3813
|
"root": false,
|
|
3738
3814
|
"rootEmpty": false,
|
|
3739
3815
|
"_timeout": 2000
|
|
@@ -3749,7 +3825,7 @@
|
|
|
3749
3825
|
"_timeout": 2000
|
|
3750
3826
|
},
|
|
3751
3827
|
{
|
|
3752
|
-
"uuid": "
|
|
3828
|
+
"uuid": "26536cdd-ddbb-46af-ab9a-6184e2fd40a1",
|
|
3753
3829
|
"title": "Tools",
|
|
3754
3830
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3755
3831
|
"file": "/test/tools.ts",
|
|
@@ -3758,7 +3834,7 @@
|
|
|
3758
3834
|
"tests": [],
|
|
3759
3835
|
"suites": [
|
|
3760
3836
|
{
|
|
3761
|
-
"uuid": "
|
|
3837
|
+
"uuid": "df5171c3-426d-4b4f-a917-1e22b1f34b77",
|
|
3762
3838
|
"title": "addRequestId() / removeRequestId()",
|
|
3763
3839
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3764
3840
|
"file": "/test/tools.ts",
|
|
@@ -3769,7 +3845,7 @@
|
|
|
3769
3845
|
"title": "should return a string",
|
|
3770
3846
|
"fullTitle": "Tools addRequestId() / removeRequestId() should return a string",
|
|
3771
3847
|
"timedOut": false,
|
|
3772
|
-
"duration":
|
|
3848
|
+
"duration": 1,
|
|
3773
3849
|
"state": "passed",
|
|
3774
3850
|
"speed": "fast",
|
|
3775
3851
|
"pass": true,
|
|
@@ -3778,8 +3854,8 @@
|
|
|
3778
3854
|
"context": null,
|
|
3779
3855
|
"code": "const id = (0, tools_1.addRequestId)();\nassert_1.default.strictEqual(typeof id, 'string');\n(0, tools_1.removeRequestId)(id);",
|
|
3780
3856
|
"err": {},
|
|
3781
|
-
"uuid": "
|
|
3782
|
-
"parentUUID": "
|
|
3857
|
+
"uuid": "57407bf5-1574-4e5d-bd81-a13ffb0709e8",
|
|
3858
|
+
"parentUUID": "df5171c3-426d-4b4f-a917-1e22b1f34b77",
|
|
3783
3859
|
"isHook": false,
|
|
3784
3860
|
"skipped": false
|
|
3785
3861
|
},
|
|
@@ -3796,27 +3872,27 @@
|
|
|
3796
3872
|
"context": null,
|
|
3797
3873
|
"code": "(0, tools_1.removeRequestId)('FOO');",
|
|
3798
3874
|
"err": {},
|
|
3799
|
-
"uuid": "
|
|
3800
|
-
"parentUUID": "
|
|
3875
|
+
"uuid": "5a28f79e-30ba-4fa9-b542-f6c4902f9874",
|
|
3876
|
+
"parentUUID": "df5171c3-426d-4b4f-a917-1e22b1f34b77",
|
|
3801
3877
|
"isHook": false,
|
|
3802
3878
|
"skipped": false
|
|
3803
3879
|
}
|
|
3804
3880
|
],
|
|
3805
3881
|
"suites": [],
|
|
3806
3882
|
"passes": [
|
|
3807
|
-
"
|
|
3808
|
-
"
|
|
3883
|
+
"57407bf5-1574-4e5d-bd81-a13ffb0709e8",
|
|
3884
|
+
"5a28f79e-30ba-4fa9-b542-f6c4902f9874"
|
|
3809
3885
|
],
|
|
3810
3886
|
"failures": [],
|
|
3811
3887
|
"pending": [],
|
|
3812
3888
|
"skipped": [],
|
|
3813
|
-
"duration":
|
|
3889
|
+
"duration": 1,
|
|
3814
3890
|
"root": false,
|
|
3815
3891
|
"rootEmpty": false,
|
|
3816
3892
|
"_timeout": 2000
|
|
3817
3893
|
},
|
|
3818
3894
|
{
|
|
3819
|
-
"uuid": "
|
|
3895
|
+
"uuid": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3820
3896
|
"title": "debug()",
|
|
3821
3897
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3822
3898
|
"file": "/test/tools.ts",
|
|
@@ -3836,8 +3912,8 @@
|
|
|
3836
3912
|
"context": null,
|
|
3837
3913
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {});",
|
|
3838
3914
|
"err": {},
|
|
3839
|
-
"uuid": "
|
|
3840
|
-
"parentUUID": "
|
|
3915
|
+
"uuid": "2916960e-c12a-4713-b12f-b03ca983a583",
|
|
3916
|
+
"parentUUID": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3841
3917
|
"isHook": false,
|
|
3842
3918
|
"skipped": false
|
|
3843
3919
|
},
|
|
@@ -3854,8 +3930,8 @@
|
|
|
3854
3930
|
"context": null,
|
|
3855
3931
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { debug: true });",
|
|
3856
3932
|
"err": {},
|
|
3857
|
-
"uuid": "
|
|
3858
|
-
"parentUUID": "
|
|
3933
|
+
"uuid": "8a67ce71-6bd8-40d6-bf8b-243bf1cbb10e",
|
|
3934
|
+
"parentUUID": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3859
3935
|
"isHook": false,
|
|
3860
3936
|
"skipped": false
|
|
3861
3937
|
},
|
|
@@ -3872,8 +3948,8 @@
|
|
|
3872
3948
|
"context": null,
|
|
3873
3949
|
"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});",
|
|
3874
3950
|
"err": {},
|
|
3875
|
-
"uuid": "
|
|
3876
|
-
"parentUUID": "
|
|
3951
|
+
"uuid": "ace799f1-df29-43a5-96d8-4f70ac6f8554",
|
|
3952
|
+
"parentUUID": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3877
3953
|
"isHook": false,
|
|
3878
3954
|
"skipped": false
|
|
3879
3955
|
},
|
|
@@ -3890,8 +3966,8 @@
|
|
|
3890
3966
|
"context": null,
|
|
3891
3967
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { noColors: true });",
|
|
3892
3968
|
"err": {},
|
|
3893
|
-
"uuid": "
|
|
3894
|
-
"parentUUID": "
|
|
3969
|
+
"uuid": "3806b50e-3327-4160-bb87-01558cd135c3",
|
|
3970
|
+
"parentUUID": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3895
3971
|
"isHook": false,
|
|
3896
3972
|
"skipped": false
|
|
3897
3973
|
},
|
|
@@ -3908,19 +3984,19 @@
|
|
|
3908
3984
|
"context": null,
|
|
3909
3985
|
"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});",
|
|
3910
3986
|
"err": {},
|
|
3911
|
-
"uuid": "
|
|
3912
|
-
"parentUUID": "
|
|
3987
|
+
"uuid": "279b7c15-cd6b-4d04-91d1-c32e23a92f88",
|
|
3988
|
+
"parentUUID": "917969c3-44e5-4931-b6f5-6ba9ffde86ad",
|
|
3913
3989
|
"isHook": false,
|
|
3914
3990
|
"skipped": false
|
|
3915
3991
|
}
|
|
3916
3992
|
],
|
|
3917
3993
|
"suites": [],
|
|
3918
3994
|
"passes": [
|
|
3919
|
-
"
|
|
3920
|
-
"
|
|
3921
|
-
"
|
|
3922
|
-
"
|
|
3923
|
-
"
|
|
3995
|
+
"2916960e-c12a-4713-b12f-b03ca983a583",
|
|
3996
|
+
"8a67ce71-6bd8-40d6-bf8b-243bf1cbb10e",
|
|
3997
|
+
"ace799f1-df29-43a5-96d8-4f70ac6f8554",
|
|
3998
|
+
"3806b50e-3327-4160-bb87-01558cd135c3",
|
|
3999
|
+
"279b7c15-cd6b-4d04-91d1-c32e23a92f88"
|
|
3924
4000
|
],
|
|
3925
4001
|
"failures": [],
|
|
3926
4002
|
"pending": [],
|
|
@@ -3931,7 +4007,7 @@
|
|
|
3931
4007
|
"_timeout": 2000
|
|
3932
4008
|
},
|
|
3933
4009
|
{
|
|
3934
|
-
"uuid": "
|
|
4010
|
+
"uuid": "75dc20f4-8cf0-4ba7-b291-c3400a30305d",
|
|
3935
4011
|
"title": "getExecutable()",
|
|
3936
4012
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3937
4013
|
"file": "/test/tools.ts",
|
|
@@ -3942,7 +4018,7 @@
|
|
|
3942
4018
|
"title": "should handle atvremotePath if set",
|
|
3943
4019
|
"fullTitle": "Tools getExecutable() should handle atvremotePath if set",
|
|
3944
4020
|
"timedOut": false,
|
|
3945
|
-
"duration":
|
|
4021
|
+
"duration": 0,
|
|
3946
4022
|
"state": "passed",
|
|
3947
4023
|
"speed": "fast",
|
|
3948
4024
|
"pass": true,
|
|
@@ -3951,8 +4027,8 @@
|
|
|
3951
4027
|
"context": null,
|
|
3952
4028
|
"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');",
|
|
3953
4029
|
"err": {},
|
|
3954
|
-
"uuid": "
|
|
3955
|
-
"parentUUID": "
|
|
4030
|
+
"uuid": "51d4c667-37f0-45cd-8afa-0f91b9b6725b",
|
|
4031
|
+
"parentUUID": "75dc20f4-8cf0-4ba7-b291-c3400a30305d",
|
|
3956
4032
|
"isHook": false,
|
|
3957
4033
|
"skipped": false
|
|
3958
4034
|
},
|
|
@@ -3969,8 +4045,8 @@
|
|
|
3969
4045
|
"context": null,
|
|
3970
4046
|
"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');",
|
|
3971
4047
|
"err": {},
|
|
3972
|
-
"uuid": "
|
|
3973
|
-
"parentUUID": "
|
|
4048
|
+
"uuid": "61ddfbe0-f813-46b2-bfc9-7b0c64024896",
|
|
4049
|
+
"parentUUID": "75dc20f4-8cf0-4ba7-b291-c3400a30305d",
|
|
3974
4050
|
"isHook": false,
|
|
3975
4051
|
"skipped": false
|
|
3976
4052
|
},
|
|
@@ -3987,8 +4063,8 @@
|
|
|
3987
4063
|
"context": null,
|
|
3988
4064
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvremote');",
|
|
3989
4065
|
"err": {},
|
|
3990
|
-
"uuid": "
|
|
3991
|
-
"parentUUID": "
|
|
4066
|
+
"uuid": "8ba984bc-8f0c-4d30-97f2-2413706c0f95",
|
|
4067
|
+
"parentUUID": "75dc20f4-8cf0-4ba7-b291-c3400a30305d",
|
|
3992
4068
|
"isHook": false,
|
|
3993
4069
|
"skipped": false
|
|
3994
4070
|
},
|
|
@@ -4005,29 +4081,29 @@
|
|
|
4005
4081
|
"context": null,
|
|
4006
4082
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvscript');",
|
|
4007
4083
|
"err": {},
|
|
4008
|
-
"uuid": "
|
|
4009
|
-
"parentUUID": "
|
|
4084
|
+
"uuid": "74c93663-a438-4f44-8d16-6321038330a5",
|
|
4085
|
+
"parentUUID": "75dc20f4-8cf0-4ba7-b291-c3400a30305d",
|
|
4010
4086
|
"isHook": false,
|
|
4011
4087
|
"skipped": false
|
|
4012
4088
|
}
|
|
4013
4089
|
],
|
|
4014
4090
|
"suites": [],
|
|
4015
4091
|
"passes": [
|
|
4016
|
-
"
|
|
4017
|
-
"
|
|
4018
|
-
"
|
|
4019
|
-
"
|
|
4092
|
+
"51d4c667-37f0-45cd-8afa-0f91b9b6725b",
|
|
4093
|
+
"61ddfbe0-f813-46b2-bfc9-7b0c64024896",
|
|
4094
|
+
"8ba984bc-8f0c-4d30-97f2-2413706c0f95",
|
|
4095
|
+
"74c93663-a438-4f44-8d16-6321038330a5"
|
|
4020
4096
|
],
|
|
4021
4097
|
"failures": [],
|
|
4022
4098
|
"pending": [],
|
|
4023
4099
|
"skipped": [],
|
|
4024
|
-
"duration":
|
|
4100
|
+
"duration": 0,
|
|
4025
4101
|
"root": false,
|
|
4026
4102
|
"rootEmpty": false,
|
|
4027
4103
|
"_timeout": 2000
|
|
4028
4104
|
},
|
|
4029
4105
|
{
|
|
4030
|
-
"uuid": "
|
|
4106
|
+
"uuid": "cde5c4ea-86f0-45de-8db6-7567849d8aab",
|
|
4031
4107
|
"title": "getParameters()",
|
|
4032
4108
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4033
4109
|
"file": "/test/tools.ts",
|
|
@@ -4047,8 +4123,8 @@
|
|
|
4047
4123
|
"context": null,
|
|
4048
4124
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)();\n assert_1.default.deepEqual(result, []);\n});",
|
|
4049
4125
|
"err": {},
|
|
4050
|
-
"uuid": "
|
|
4051
|
-
"parentUUID": "
|
|
4126
|
+
"uuid": "0184b681-7bf6-4481-a23c-c044733db160",
|
|
4127
|
+
"parentUUID": "cde5c4ea-86f0-45de-8db6-7567849d8aab",
|
|
4052
4128
|
"isHook": false,
|
|
4053
4129
|
"skipped": false
|
|
4054
4130
|
},
|
|
@@ -4056,7 +4132,7 @@
|
|
|
4056
4132
|
"title": "easy case",
|
|
4057
4133
|
"fullTitle": "Tools getParameters() easy case",
|
|
4058
4134
|
"timedOut": false,
|
|
4059
|
-
"duration":
|
|
4135
|
+
"duration": 1,
|
|
4060
4136
|
"state": "passed",
|
|
4061
4137
|
"speed": "fast",
|
|
4062
4138
|
"pass": true,
|
|
@@ -4065,8 +4141,8 @@
|
|
|
4065
4141
|
"context": null,
|
|
4066
4142
|
"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});",
|
|
4067
4143
|
"err": {},
|
|
4068
|
-
"uuid": "
|
|
4069
|
-
"parentUUID": "
|
|
4144
|
+
"uuid": "ce2ed557-3eed-4698-a8a0-2446160253dc",
|
|
4145
|
+
"parentUUID": "cde5c4ea-86f0-45de-8db6-7567849d8aab",
|
|
4070
4146
|
"isHook": false,
|
|
4071
4147
|
"skipped": false
|
|
4072
4148
|
},
|
|
@@ -4083,28 +4159,28 @@
|
|
|
4083
4159
|
"context": null,
|
|
4084
4160
|
"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});",
|
|
4085
4161
|
"err": {},
|
|
4086
|
-
"uuid": "
|
|
4087
|
-
"parentUUID": "
|
|
4162
|
+
"uuid": "4d03d97a-b057-4fb3-a672-a97c4d145443",
|
|
4163
|
+
"parentUUID": "cde5c4ea-86f0-45de-8db6-7567849d8aab",
|
|
4088
4164
|
"isHook": false,
|
|
4089
4165
|
"skipped": false
|
|
4090
4166
|
}
|
|
4091
4167
|
],
|
|
4092
4168
|
"suites": [],
|
|
4093
4169
|
"passes": [
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4096
|
-
"
|
|
4170
|
+
"0184b681-7bf6-4481-a23c-c044733db160",
|
|
4171
|
+
"ce2ed557-3eed-4698-a8a0-2446160253dc",
|
|
4172
|
+
"4d03d97a-b057-4fb3-a672-a97c4d145443"
|
|
4097
4173
|
],
|
|
4098
4174
|
"failures": [],
|
|
4099
4175
|
"pending": [],
|
|
4100
4176
|
"skipped": [],
|
|
4101
|
-
"duration":
|
|
4177
|
+
"duration": 1,
|
|
4102
4178
|
"root": false,
|
|
4103
4179
|
"rootEmpty": false,
|
|
4104
4180
|
"_timeout": 2000
|
|
4105
4181
|
},
|
|
4106
4182
|
{
|
|
4107
|
-
"uuid": "
|
|
4183
|
+
"uuid": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4108
4184
|
"title": "parseState()",
|
|
4109
4185
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4110
4186
|
"file": "/test/tools.ts",
|
|
@@ -4124,8 +4200,8 @@
|
|
|
4124
4200
|
"context": null,
|
|
4125
4201
|
"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});",
|
|
4126
4202
|
"err": {},
|
|
4127
|
-
"uuid": "
|
|
4128
|
-
"parentUUID": "
|
|
4203
|
+
"uuid": "62ca1b27-15c2-4e1b-918e-9a1f28fce370",
|
|
4204
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4129
4205
|
"isHook": false,
|
|
4130
4206
|
"skipped": false
|
|
4131
4207
|
},
|
|
@@ -4133,7 +4209,7 @@
|
|
|
4133
4209
|
"title": "should work without data",
|
|
4134
4210
|
"fullTitle": "Tools parseState() should work without data",
|
|
4135
4211
|
"timedOut": false,
|
|
4136
|
-
"duration":
|
|
4212
|
+
"duration": 0,
|
|
4137
4213
|
"state": "passed",
|
|
4138
4214
|
"speed": "fast",
|
|
4139
4215
|
"pass": true,
|
|
@@ -4142,8 +4218,8 @@
|
|
|
4142
4218
|
"context": null,
|
|
4143
4219
|
"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});",
|
|
4144
4220
|
"err": {},
|
|
4145
|
-
"uuid": "
|
|
4146
|
-
"parentUUID": "
|
|
4221
|
+
"uuid": "cc6df7aa-f515-4544-ab42-9e65b5028d80",
|
|
4222
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4147
4223
|
"isHook": false,
|
|
4148
4224
|
"skipped": false
|
|
4149
4225
|
},
|
|
@@ -4160,8 +4236,26 @@
|
|
|
4160
4236
|
"context": null,
|
|
4161
4237
|
"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});",
|
|
4162
4238
|
"err": {},
|
|
4163
|
-
"uuid": "
|
|
4164
|
-
"parentUUID": "
|
|
4239
|
+
"uuid": "31600746-565d-4b12-9e5b-d8fd95cc0d3d",
|
|
4240
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4241
|
+
"isHook": false,
|
|
4242
|
+
"skipped": false
|
|
4243
|
+
},
|
|
4244
|
+
{
|
|
4245
|
+
"title": "should throw an error for pyatv exceptions",
|
|
4246
|
+
"fullTitle": "Tools parseState() should throw an error for pyatv exceptions",
|
|
4247
|
+
"timedOut": false,
|
|
4248
|
+
"duration": 0,
|
|
4249
|
+
"state": "passed",
|
|
4250
|
+
"speed": "fast",
|
|
4251
|
+
"pass": true,
|
|
4252
|
+
"fail": false,
|
|
4253
|
+
"pending": false,
|
|
4254
|
+
"context": null,
|
|
4255
|
+
"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/);",
|
|
4256
|
+
"err": {},
|
|
4257
|
+
"uuid": "ab38b0f9-cee0-4360-800e-2438cf6e8a24",
|
|
4258
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4165
4259
|
"isHook": false,
|
|
4166
4260
|
"skipped": false
|
|
4167
4261
|
},
|
|
@@ -4169,7 +4263,7 @@
|
|
|
4169
4263
|
"title": "should ignore date if it's an invalid date",
|
|
4170
4264
|
"fullTitle": "Tools parseState() should ignore date if it's an invalid date",
|
|
4171
4265
|
"timedOut": false,
|
|
4172
|
-
"duration":
|
|
4266
|
+
"duration": 1,
|
|
4173
4267
|
"state": "passed",
|
|
4174
4268
|
"speed": "fast",
|
|
4175
4269
|
"pass": true,
|
|
@@ -4178,8 +4272,8 @@
|
|
|
4178
4272
|
"context": null,
|
|
4179
4273
|
"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});",
|
|
4180
4274
|
"err": {},
|
|
4181
|
-
"uuid": "
|
|
4182
|
-
"parentUUID": "
|
|
4275
|
+
"uuid": "3391dc03-000c-487e-9c31-4e359f64d60e",
|
|
4276
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4183
4277
|
"isHook": false,
|
|
4184
4278
|
"skipped": false
|
|
4185
4279
|
},
|
|
@@ -4196,8 +4290,8 @@
|
|
|
4196
4290
|
"context": null,
|
|
4197
4291
|
"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});",
|
|
4198
4292
|
"err": {},
|
|
4199
|
-
"uuid": "
|
|
4200
|
-
"parentUUID": "
|
|
4293
|
+
"uuid": "90f317b4-ebc5-4144-a616-85a9e53ed810",
|
|
4294
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4201
4295
|
"isHook": false,
|
|
4202
4296
|
"skipped": false
|
|
4203
4297
|
},
|
|
@@ -4214,20 +4308,21 @@
|
|
|
4214
4308
|
"context": null,
|
|
4215
4309
|
"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});",
|
|
4216
4310
|
"err": {},
|
|
4217
|
-
"uuid": "
|
|
4218
|
-
"parentUUID": "
|
|
4311
|
+
"uuid": "a82fd440-a6b3-445b-9aa0-5c7f8eab37d0",
|
|
4312
|
+
"parentUUID": "1c68dc90-f1d7-4295-b2a8-36f2587e7d28",
|
|
4219
4313
|
"isHook": false,
|
|
4220
4314
|
"skipped": false
|
|
4221
4315
|
}
|
|
4222
4316
|
],
|
|
4223
4317
|
"suites": [],
|
|
4224
4318
|
"passes": [
|
|
4225
|
-
"
|
|
4226
|
-
"
|
|
4227
|
-
"
|
|
4228
|
-
"
|
|
4229
|
-
"
|
|
4230
|
-
"
|
|
4319
|
+
"62ca1b27-15c2-4e1b-918e-9a1f28fce370",
|
|
4320
|
+
"cc6df7aa-f515-4544-ab42-9e65b5028d80",
|
|
4321
|
+
"31600746-565d-4b12-9e5b-d8fd95cc0d3d",
|
|
4322
|
+
"ab38b0f9-cee0-4360-800e-2438cf6e8a24",
|
|
4323
|
+
"3391dc03-000c-487e-9c31-4e359f64d60e",
|
|
4324
|
+
"90f317b4-ebc5-4144-a616-85a9e53ed810",
|
|
4325
|
+
"a82fd440-a6b3-445b-9aa0-5c7f8eab37d0"
|
|
4231
4326
|
],
|
|
4232
4327
|
"failures": [],
|
|
4233
4328
|
"pending": [],
|
|
@@ -4260,7 +4355,7 @@
|
|
|
4260
4355
|
],
|
|
4261
4356
|
"meta": {
|
|
4262
4357
|
"mocha": {
|
|
4263
|
-
"version": "9.1.
|
|
4358
|
+
"version": "9.1.3"
|
|
4264
4359
|
},
|
|
4265
4360
|
"mochawesome": {
|
|
4266
4361
|
"options": {
|
|
@@ -4272,11 +4367,11 @@
|
|
|
4272
4367
|
"useInlineDiffs": false,
|
|
4273
4368
|
"code": true
|
|
4274
4369
|
},
|
|
4275
|
-
"version": "
|
|
4370
|
+
"version": "7.0.1"
|
|
4276
4371
|
},
|
|
4277
4372
|
"marge": {
|
|
4278
4373
|
"options": null,
|
|
4279
|
-
"version": "
|
|
4374
|
+
"version": "6.0.1"
|
|
4280
4375
|
}
|
|
4281
4376
|
}
|
|
4282
4377
|
}
|