@sebbo2002/node-pyatv 4.3.0-develop.1 → 4.3.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/lib/types.d.ts +3 -1
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -1
- package/docs/coverage/cobertura-coverage.xml +206 -204
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +6 -6
- package/docs/coverage/device.ts.html +21 -21
- package/docs/coverage/fake-spawn.ts.html +22 -22
- package/docs/coverage/index.html +17 -17
- package/docs/coverage/index.ts.html +2 -2
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +102 -102
- package/docs/coverage/types.ts.html +11 -5
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/classes/NodePyATVDevice.html +60 -60
- package/docs/reference/classes/NodePyATVDeviceEvent.html +5 -5
- package/docs/reference/classes/default.html +10 -10
- package/docs/reference/enums/NodePyATVDeviceState.html +1 -1
- package/docs/reference/enums/NodePyATVKeys.html +1 -1
- package/docs/reference/enums/NodePyATVListenerState.html +1 -1
- package/docs/reference/enums/NodePyATVMediaType.html +1 -1
- package/docs/reference/enums/NodePyATVPowerState.html +1 -1
- package/docs/reference/enums/NodePyATVProtocol.html +1 -1
- package/docs/reference/enums/NodePyATVRepeatState.html +1 -1
- package/docs/reference/enums/NodePyATVShuffleState.html +1 -1
- package/docs/reference/index.html +1 -1
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVFindOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +1 -1
- package/docs/reference/interfaces/NodePyATVState.html +1 -1
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +1 -1
- package/docs/reference/modules.html +1 -1
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +685 -607
- package/package.json +1 -1
- package/src/lib/types.ts +3 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stats": {
|
|
3
|
-
"suites":
|
|
4
|
-
"tests":
|
|
5
|
-
"passes":
|
|
3
|
+
"suites": 84,
|
|
4
|
+
"tests": 143,
|
|
5
|
+
"passes": 141,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2022-01-21T22:
|
|
9
|
-
"end": "2022-01-21T22:
|
|
10
|
-
"duration":
|
|
11
|
-
"testsRegistered":
|
|
8
|
+
"start": "2022-01-21T22:14:28.559Z",
|
|
9
|
+
"end": "2022-01-21T22:14:40.627Z",
|
|
10
|
+
"duration": 12068,
|
|
11
|
+
"testsRegistered": 143,
|
|
12
12
|
"passPercent": 100,
|
|
13
|
-
"pendingPercent": 1.
|
|
13
|
+
"pendingPercent": 1.3986013986013985,
|
|
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": "1bb4076b-9b3e-4784-981f-4f6e78413d92",
|
|
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": "f3741aa4-85dd-4822-bc85-14311915a54b",
|
|
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": "037e829c-da3c-4081-82cf-3774497ed49d",
|
|
40
40
|
"title": "get key()",
|
|
41
41
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
42
42
|
"file": "/test/device-event.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"title": "should work",
|
|
48
48
|
"fullTitle": "NodePyATVDeviceEvent get key() should work",
|
|
49
49
|
"timedOut": false,
|
|
50
|
-
"duration":
|
|
50
|
+
"duration": 0,
|
|
51
51
|
"state": "passed",
|
|
52
52
|
"speed": "fast",
|
|
53
53
|
"pass": true,
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
"context": null,
|
|
57
57
|
"code": "const event = new device_event_1.default({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new device_1.default({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert_1.default.strictEqual(event.key, 'genre');",
|
|
58
58
|
"err": {},
|
|
59
|
-
"uuid": "
|
|
60
|
-
"parentUUID": "
|
|
59
|
+
"uuid": "2c83fdef-6c06-4e4c-9982-d27f93229741",
|
|
60
|
+
"parentUUID": "037e829c-da3c-4081-82cf-3774497ed49d",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"2c83fdef-6c06-4e4c-9982-d27f93229741"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
71
71
|
"skipped": [],
|
|
72
|
-
"duration":
|
|
72
|
+
"duration": 0,
|
|
73
73
|
"root": false,
|
|
74
74
|
"rootEmpty": false,
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "d8d200a1-eb40-464a-9eb0-e3bae037c2dc",
|
|
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": "bbcc278a-7766-4b06-9f54-61c15388e1a6",
|
|
99
|
+
"parentUUID": "d8d200a1-eb40-464a-9eb0-e3bae037c2dc",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"bbcc278a-7766-4b06-9f54-61c15388e1a6"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "d0abfee1-d883-4eb7-807f-d72991045f87",
|
|
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": "5d957a1b-4522-4f86-8f77-e3ad6fcc6383",
|
|
138
|
+
"parentUUID": "d0abfee1-d883-4eb7-807f-d72991045f87",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"5d957a1b-4522-4f86-8f77-e3ad6fcc6383"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "abe72164-e1f6-455f-9865-64f5b0797028",
|
|
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": "4091746f-c257-4bba-8379-f1830134cff0",
|
|
177
|
+
"parentUUID": "abe72164-e1f6-455f-9865-64f5b0797028",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"4091746f-c257-4bba-8379-f1830134cff0"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "7a5fe57a-32ee-43e5-9c2a-c5f0bedd433e",
|
|
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": "4194c988-3cd0-4a1c-bc34-b9291b0fffa8",
|
|
216
|
+
"parentUUID": "7a5fe57a-32ee-43e5-9c2a-c5f0bedd433e",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"4194c988-3cd0-4a1c-bc34-b9291b0fffa8"
|
|
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": "3bf19669-2a78-4e7c-9f29-471591a0530d",
|
|
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": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
254
254
|
"title": "applyStateAndEmitEvents()",
|
|
255
255
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
256
256
|
"file": "/test/device-events.ts",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"title": "should emit update:key event",
|
|
262
262
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event",
|
|
263
263
|
"timedOut": false,
|
|
264
|
-
"duration":
|
|
264
|
+
"duration": 3,
|
|
265
265
|
"state": "passed",
|
|
266
266
|
"speed": "fast",
|
|
267
267
|
"pass": true,
|
|
@@ -270,8 +270,8 @@
|
|
|
270
270
|
"context": null,
|
|
271
271
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:title', event => {\n assert_1.default.ok(event instanceof lib_1.NodePyATVDeviceEvent);\n assert_1.default.strictEqual(event.key, 'title');\n assert_1.default.strictEqual(event.oldValue, null);\n assert_1.default.strictEqual(event.newValue, 'My Movie');\n assert_1.default.strictEqual(event.value, 'My Movie');\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
272
272
|
"err": {},
|
|
273
|
-
"uuid": "
|
|
274
|
-
"parentUUID": "
|
|
273
|
+
"uuid": "5151292d-62ff-4cee-8d3c-8114daa963f9",
|
|
274
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"title": "should emit update event",
|
|
280
280
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update event",
|
|
281
281
|
"timedOut": false,
|
|
282
|
-
"duration":
|
|
282
|
+
"duration": 2,
|
|
283
283
|
"state": "passed",
|
|
284
284
|
"speed": "fast",
|
|
285
285
|
"pass": true,
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
"context": null,
|
|
289
289
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new 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": "67405483-115f-4aa9-a661-721c32f365fe",
|
|
292
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
293
293
|
"isHook": false,
|
|
294
294
|
"skipped": false
|
|
295
295
|
},
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"title": "should emit update:key event before update",
|
|
298
298
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event before update",
|
|
299
299
|
"timedOut": false,
|
|
300
|
-
"duration":
|
|
300
|
+
"duration": 2,
|
|
301
301
|
"state": "passed",
|
|
302
302
|
"speed": "fast",
|
|
303
303
|
"pass": true,
|
|
@@ -306,8 +306,8 @@
|
|
|
306
306
|
"context": null,
|
|
307
307
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const sort = [];\n yield Promise.race([\n new Promise(cb => {\n device.once('update', () => {\n sort.push('update');\n cb(undefined);\n });\n }),\n new Promise(cb => {\n device.once('update:title', () => {\n sort.push('update:title');\n cb(undefined);\n });\n })\n ]);\n assert_1.default.deepStrictEqual(sort, ['update:title', 'update']);\n});",
|
|
308
308
|
"err": {},
|
|
309
|
-
"uuid": "
|
|
310
|
-
"parentUUID": "
|
|
309
|
+
"uuid": "4a3c8198-49da-42aa-a514-65b561f333b6",
|
|
310
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
311
311
|
"isHook": false,
|
|
312
312
|
"skipped": false
|
|
313
313
|
},
|
|
@@ -324,8 +324,8 @@
|
|
|
324
324
|
"context": null,
|
|
325
325
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n yield new Promise(cb => {\n device.once('error', error => {\n assert_1.default.ok(error instanceof Error);\n assert_1.default.ok(error.toString().includes('invalid credentials: 321'));\n cb(undefined);\n });\n });\n});",
|
|
326
326
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
327
|
+
"uuid": "3cc50f69-9375-4f7b-8d5d-b70e9144a157",
|
|
328
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
329
329
|
"isHook": false,
|
|
330
330
|
"skipped": false
|
|
331
331
|
},
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"title": "should not emit an update if new value is same as old one",
|
|
334
334
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should not emit an update if new value is same as old one",
|
|
335
335
|
"timedOut": false,
|
|
336
|
-
"duration":
|
|
336
|
+
"duration": 4,
|
|
337
337
|
"state": "passed",
|
|
338
338
|
"speed": "fast",
|
|
339
339
|
"pass": true,
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
"context": null,
|
|
343
343
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n if (spawnCounter === 0) {\n cp.onStdIn(() => cp.end());\n }\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n spawnCounter++;\n if (spawnCounter >= 2) {\n cp.end();\n }\n })\n });\n const listener = () => {\n eventCounter++;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n yield device.getState();\n device.off('update', listener);\n assert_1.default.strictEqual(spawnCounter, 2);\n assert_1.default.strictEqual(eventCounter, 1);\n});",
|
|
344
344
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "c95fd138-4f63-4879-885b-6ff724bb2a09",
|
|
346
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
347
347
|
"isHook": false,
|
|
348
348
|
"skipped": false
|
|
349
349
|
},
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"title": "should emit error event if event listener throws an exception",
|
|
352
352
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error event if event listener throws an exception",
|
|
353
353
|
"timedOut": false,
|
|
354
|
-
"duration":
|
|
354
|
+
"duration": 2,
|
|
355
355
|
"state": "passed",
|
|
356
356
|
"speed": "fast",
|
|
357
357
|
"pass": true,
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
"context": null,
|
|
361
361
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n let callCounter = 0;\n const error = new Error('This is an error. Be nice.');\n device.once('error', err => {\n assert_1.default.strictEqual(err, error);\n callCounter++;\n });\n const listener = () => {\n throw error;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n device.off('update', listener);\n assert_1.default.strictEqual(callCounter, 1);\n});",
|
|
362
362
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "ed740617-9dd4-4c4c-97fd-0a04a39de2f7",
|
|
364
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
365
365
|
"isHook": false,
|
|
366
366
|
"skipped": false
|
|
367
367
|
},
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "should also work with powerState",
|
|
370
370
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should also work with powerState",
|
|
371
371
|
"timedOut": false,
|
|
372
|
-
"duration":
|
|
372
|
+
"duration": 1,
|
|
373
373
|
"state": "passed",
|
|
374
374
|
"speed": "fast",
|
|
375
375
|
"pass": true,
|
|
@@ -378,32 +378,32 @@
|
|
|
378
378
|
"context": null,
|
|
379
379
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n datetime: new Date().toJSON(),\n power_state: 'off'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:powerState', event => {\n assert_1.default.ok(event instanceof lib_1.NodePyATVDeviceEvent);\n assert_1.default.strictEqual(event.key, 'powerState');\n assert_1.default.strictEqual(event.oldValue, null);\n assert_1.default.strictEqual(event.newValue, 'off');\n assert_1.default.strictEqual(event.newValue, lib_1.NodePyATVPowerState.off);\n assert_1.default.strictEqual(event.value, 'off');\n assert_1.default.strictEqual(event.value, lib_1.NodePyATVPowerState.off);\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
380
380
|
"err": {},
|
|
381
|
-
"uuid": "
|
|
382
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "a4d3f536-b946-4182-aed1-e1cd4ca57fd9",
|
|
382
|
+
"parentUUID": "7dcaacf2-1411-4f2c-b29d-ca22824e5867",
|
|
383
383
|
"isHook": false,
|
|
384
384
|
"skipped": false
|
|
385
385
|
}
|
|
386
386
|
],
|
|
387
387
|
"suites": [],
|
|
388
388
|
"passes": [
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
389
|
+
"5151292d-62ff-4cee-8d3c-8114daa963f9",
|
|
390
|
+
"67405483-115f-4aa9-a661-721c32f365fe",
|
|
391
|
+
"4a3c8198-49da-42aa-a514-65b561f333b6",
|
|
392
|
+
"3cc50f69-9375-4f7b-8d5d-b70e9144a157",
|
|
393
|
+
"c95fd138-4f63-4879-885b-6ff724bb2a09",
|
|
394
|
+
"ed740617-9dd4-4c4c-97fd-0a04a39de2f7",
|
|
395
|
+
"a4d3f536-b946-4182-aed1-e1cd4ca57fd9"
|
|
396
396
|
],
|
|
397
397
|
"failures": [],
|
|
398
398
|
"pending": [],
|
|
399
399
|
"skipped": [],
|
|
400
|
-
"duration":
|
|
400
|
+
"duration": 16,
|
|
401
401
|
"root": false,
|
|
402
402
|
"rootEmpty": false,
|
|
403
403
|
"_timeout": 2000
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"uuid": "
|
|
406
|
+
"uuid": "9626d564-9a7f-4aaa-b504-6d6d97148208",
|
|
407
407
|
"title": "start|stopListening()",
|
|
408
408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
409
409
|
"file": "/test/device-events.ts",
|
|
@@ -423,8 +423,8 @@
|
|
|
423
423
|
"context": null,
|
|
424
424
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(error).end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
425
425
|
"err": {},
|
|
426
|
-
"uuid": "
|
|
427
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "8fb7653d-9d97-419e-b618-d50fcb7c084f",
|
|
427
|
+
"parentUUID": "9626d564-9a7f-4aaa-b504-6d6d97148208",
|
|
428
428
|
"isHook": false,
|
|
429
429
|
"skipped": false
|
|
430
430
|
},
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"title": "should emit error on stderr data",
|
|
433
433
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error on stderr data",
|
|
434
434
|
"timedOut": false,
|
|
435
|
-
"duration":
|
|
435
|
+
"duration": 2,
|
|
436
436
|
"state": "passed",
|
|
437
437
|
"speed": "fast",
|
|
438
438
|
"pass": true,
|
|
@@ -441,8 +441,8 @@
|
|
|
441
441
|
"context": null,
|
|
442
442
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stderr('Hello World!').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.ok(err instanceof Error);\n assert_1.default.ok(err.toString().includes('Got stderr output from pyatv: Hello World!'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
443
443
|
"err": {},
|
|
444
|
-
"uuid": "
|
|
445
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "62f272d3-1504-4993-be25-ca1d96cc599b",
|
|
445
|
+
"parentUUID": "9626d564-9a7f-4aaa-b504-6d6d97148208",
|
|
446
446
|
"isHook": false,
|
|
447
447
|
"skipped": false
|
|
448
448
|
},
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "should emit error if stdout is not valid json",
|
|
451
451
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if stdout is not valid json",
|
|
452
452
|
"timedOut": false,
|
|
453
|
-
"duration":
|
|
453
|
+
"duration": 5,
|
|
454
454
|
"state": "passed",
|
|
455
455
|
"speed": "fast",
|
|
456
456
|
"pass": true,
|
|
@@ -459,8 +459,8 @@
|
|
|
459
459
|
"context": null,
|
|
460
460
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('#').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.ok(err instanceof Error);\n assert_1.default.ok(err.toString().includes('Unable to parse stdout json: SyntaxError: ' +\n 'Unexpected token # in JSON at position 0'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
461
461
|
"err": {},
|
|
462
|
-
"uuid": "
|
|
463
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "6030b31a-22c2-4afc-92b3-0bbaff2a9861",
|
|
463
|
+
"parentUUID": "9626d564-9a7f-4aaa-b504-6d6d97148208",
|
|
464
464
|
"isHook": false,
|
|
465
465
|
"skipped": false
|
|
466
466
|
},
|
|
@@ -477,30 +477,30 @@
|
|
|
477
477
|
"context": null,
|
|
478
478
|
"code": "",
|
|
479
479
|
"err": {},
|
|
480
|
-
"uuid": "
|
|
481
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "8bcf8906-bd5f-412d-a4e1-eb74f1844573",
|
|
481
|
+
"parentUUID": "9626d564-9a7f-4aaa-b504-6d6d97148208",
|
|
482
482
|
"isHook": false,
|
|
483
483
|
"skipped": false
|
|
484
484
|
}
|
|
485
485
|
],
|
|
486
486
|
"suites": [],
|
|
487
487
|
"passes": [
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
488
|
+
"8fb7653d-9d97-419e-b618-d50fcb7c084f",
|
|
489
|
+
"62f272d3-1504-4993-be25-ca1d96cc599b",
|
|
490
|
+
"6030b31a-22c2-4afc-92b3-0bbaff2a9861"
|
|
491
491
|
],
|
|
492
492
|
"failures": [],
|
|
493
493
|
"pending": [
|
|
494
|
-
"
|
|
494
|
+
"8bcf8906-bd5f-412d-a4e1-eb74f1844573"
|
|
495
495
|
],
|
|
496
496
|
"skipped": [],
|
|
497
|
-
"duration":
|
|
497
|
+
"duration": 9,
|
|
498
498
|
"root": false,
|
|
499
499
|
"rootEmpty": false,
|
|
500
500
|
"_timeout": 2000
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
"uuid": "
|
|
503
|
+
"uuid": "5b3fe845-c28f-4953-8e22-569a536f873a",
|
|
504
504
|
"title": "addListener() / removeAllListeners()",
|
|
505
505
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
506
506
|
"file": "/test/device-events.ts",
|
|
@@ -520,15 +520,15 @@
|
|
|
520
520
|
"context": null,
|
|
521
521
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n device.removeAllListeners('update');\n});",
|
|
522
522
|
"err": {},
|
|
523
|
-
"uuid": "
|
|
524
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "bdd899db-4ae2-48b6-a66d-12044bc28a52",
|
|
524
|
+
"parentUUID": "5b3fe845-c28f-4953-8e22-569a536f873a",
|
|
525
525
|
"isHook": false,
|
|
526
526
|
"skipped": false
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
529
|
"suites": [],
|
|
530
530
|
"passes": [
|
|
531
|
-
"
|
|
531
|
+
"bdd899db-4ae2-48b6-a66d-12044bc28a52"
|
|
532
532
|
],
|
|
533
533
|
"failures": [],
|
|
534
534
|
"pending": [],
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
"_timeout": 2000
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
"uuid": "
|
|
542
|
+
"uuid": "49d8a788-1b10-46c1-92c2-6c52e0d0d6a7",
|
|
543
543
|
"title": "emit()",
|
|
544
544
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
545
545
|
"file": "/test/device-events.ts",
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
"title": "should work",
|
|
551
551
|
"fullTitle": "NodePyATVDeviceEvents emit() should work",
|
|
552
552
|
"timedOut": false,
|
|
553
|
-
"duration":
|
|
553
|
+
"duration": 0,
|
|
554
554
|
"state": "passed",
|
|
555
555
|
"speed": "fast",
|
|
556
556
|
"pass": true,
|
|
@@ -559,26 +559,26 @@
|
|
|
559
559
|
"context": null,
|
|
560
560
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst event = new lib_1.NodePyATVDeviceEvent({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert_1.default.strictEqual(e, event);\n assert_1.default.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
|
|
561
561
|
"err": {},
|
|
562
|
-
"uuid": "
|
|
563
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "6ed92452-3ab6-4c56-bd85-42c0c2ef5e1d",
|
|
563
|
+
"parentUUID": "49d8a788-1b10-46c1-92c2-6c52e0d0d6a7",
|
|
564
564
|
"isHook": false,
|
|
565
565
|
"skipped": false
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"suites": [],
|
|
569
569
|
"passes": [
|
|
570
|
-
"
|
|
570
|
+
"6ed92452-3ab6-4c56-bd85-42c0c2ef5e1d"
|
|
571
571
|
],
|
|
572
572
|
"failures": [],
|
|
573
573
|
"pending": [],
|
|
574
574
|
"skipped": [],
|
|
575
|
-
"duration":
|
|
575
|
+
"duration": 0,
|
|
576
576
|
"root": false,
|
|
577
577
|
"rootEmpty": false,
|
|
578
578
|
"_timeout": 2000
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
"uuid": "
|
|
581
|
+
"uuid": "a266659c-9c73-47d1-8c40-a53f77ba6946",
|
|
582
582
|
"title": "eventNames()",
|
|
583
583
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
584
584
|
"file": "/test/device-events.ts",
|
|
@@ -598,15 +598,15 @@
|
|
|
598
598
|
"context": null,
|
|
599
599
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
|
|
600
600
|
"err": {},
|
|
601
|
-
"uuid": "
|
|
602
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "b43998e2-bc84-4df6-987d-827f51fc56f9",
|
|
602
|
+
"parentUUID": "a266659c-9c73-47d1-8c40-a53f77ba6946",
|
|
603
603
|
"isHook": false,
|
|
604
604
|
"skipped": false
|
|
605
605
|
}
|
|
606
606
|
],
|
|
607
607
|
"suites": [],
|
|
608
608
|
"passes": [
|
|
609
|
-
"
|
|
609
|
+
"b43998e2-bc84-4df6-987d-827f51fc56f9"
|
|
610
610
|
],
|
|
611
611
|
"failures": [],
|
|
612
612
|
"pending": [],
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"_timeout": 2000
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"uuid": "
|
|
620
|
+
"uuid": "c7641184-aa85-4b2a-a2f6-fe69eb193e95",
|
|
621
621
|
"title": "getMaxListeners()",
|
|
622
622
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
623
623
|
"file": "/test/device-events.ts",
|
|
@@ -637,15 +637,15 @@
|
|
|
637
637
|
"context": null,
|
|
638
638
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert_1.default.ok(typeof result, 'number');\nassert_1.default.ok(result >= 10);",
|
|
639
639
|
"err": {},
|
|
640
|
-
"uuid": "
|
|
641
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "14fbfb3c-11ad-4418-9e62-d8acd9daa7b0",
|
|
641
|
+
"parentUUID": "c7641184-aa85-4b2a-a2f6-fe69eb193e95",
|
|
642
642
|
"isHook": false,
|
|
643
643
|
"skipped": false
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
646
|
"suites": [],
|
|
647
647
|
"passes": [
|
|
648
|
-
"
|
|
648
|
+
"14fbfb3c-11ad-4418-9e62-d8acd9daa7b0"
|
|
649
649
|
],
|
|
650
650
|
"failures": [],
|
|
651
651
|
"pending": [],
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"_timeout": 2000
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"uuid": "
|
|
659
|
+
"uuid": "43df7a1a-9fb6-4564-904f-88b15e44db1a",
|
|
660
660
|
"title": "listenerCount()",
|
|
661
661
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
662
662
|
"file": "/test/device-events.ts",
|
|
@@ -676,15 +676,15 @@
|
|
|
676
676
|
"context": null,
|
|
677
677
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
|
|
678
678
|
"err": {},
|
|
679
|
-
"uuid": "
|
|
680
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "2977abc7-1e7e-4113-8f45-7d01b2a745e4",
|
|
680
|
+
"parentUUID": "43df7a1a-9fb6-4564-904f-88b15e44db1a",
|
|
681
681
|
"isHook": false,
|
|
682
682
|
"skipped": false
|
|
683
683
|
}
|
|
684
684
|
],
|
|
685
685
|
"suites": [],
|
|
686
686
|
"passes": [
|
|
687
|
-
"
|
|
687
|
+
"2977abc7-1e7e-4113-8f45-7d01b2a745e4"
|
|
688
688
|
],
|
|
689
689
|
"failures": [],
|
|
690
690
|
"pending": [],
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
"_timeout": 2000
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
"uuid": "
|
|
698
|
+
"uuid": "af5fd271-bc69-4887-a41d-8918b71ca996",
|
|
699
699
|
"title": "listeners()",
|
|
700
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
701
701
|
"file": "/test/device-events.ts",
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"title": "should work",
|
|
707
707
|
"fullTitle": "NodePyATVDeviceEvents listeners() should work",
|
|
708
708
|
"timedOut": false,
|
|
709
|
-
"duration":
|
|
709
|
+
"duration": 1,
|
|
710
710
|
"state": "passed",
|
|
711
711
|
"speed": "fast",
|
|
712
712
|
"pass": true,
|
|
@@ -715,26 +715,26 @@
|
|
|
715
715
|
"context": null,
|
|
716
716
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
717
717
|
"err": {},
|
|
718
|
-
"uuid": "
|
|
719
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "55dd043a-daae-410d-b1d9-9326948fd8d1",
|
|
719
|
+
"parentUUID": "af5fd271-bc69-4887-a41d-8918b71ca996",
|
|
720
720
|
"isHook": false,
|
|
721
721
|
"skipped": false
|
|
722
722
|
}
|
|
723
723
|
],
|
|
724
724
|
"suites": [],
|
|
725
725
|
"passes": [
|
|
726
|
-
"
|
|
726
|
+
"55dd043a-daae-410d-b1d9-9326948fd8d1"
|
|
727
727
|
],
|
|
728
728
|
"failures": [],
|
|
729
729
|
"pending": [],
|
|
730
730
|
"skipped": [],
|
|
731
|
-
"duration":
|
|
731
|
+
"duration": 1,
|
|
732
732
|
"root": false,
|
|
733
733
|
"rootEmpty": false,
|
|
734
734
|
"_timeout": 2000
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
"uuid": "
|
|
737
|
+
"uuid": "16d4af21-34c0-48a6-8d27-3d2fd62e4b25",
|
|
738
738
|
"title": "prependListener()",
|
|
739
739
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
740
740
|
"file": "/test/device-events.ts",
|
|
@@ -754,15 +754,15 @@
|
|
|
754
754
|
"context": null,
|
|
755
755
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\nconst listener = () => {\n device.removeAllListeners('update');\n done();\n};\ndevice.prependListener('update', listener);",
|
|
756
756
|
"err": {},
|
|
757
|
-
"uuid": "
|
|
758
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "ce68bbde-0d22-462e-b204-71c7053fa1e3",
|
|
758
|
+
"parentUUID": "16d4af21-34c0-48a6-8d27-3d2fd62e4b25",
|
|
759
759
|
"isHook": false,
|
|
760
760
|
"skipped": false
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"suites": [],
|
|
764
764
|
"passes": [
|
|
765
|
-
"
|
|
765
|
+
"ce68bbde-0d22-462e-b204-71c7053fa1e3"
|
|
766
766
|
],
|
|
767
767
|
"failures": [],
|
|
768
768
|
"pending": [],
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"_timeout": 2000
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
|
-
"uuid": "
|
|
776
|
+
"uuid": "51c5a1a5-07f5-4587-afaf-18a9bfca71bc",
|
|
777
777
|
"title": "prependOnceListener()",
|
|
778
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
779
779
|
"file": "/test/device-events.ts",
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
"title": "should work",
|
|
785
785
|
"fullTitle": "NodePyATVDeviceEvents prependOnceListener() should work",
|
|
786
786
|
"timedOut": false,
|
|
787
|
-
"duration":
|
|
787
|
+
"duration": 2,
|
|
788
788
|
"state": "passed",
|
|
789
789
|
"speed": "fast",
|
|
790
790
|
"pass": true,
|
|
@@ -793,26 +793,26 @@
|
|
|
793
793
|
"context": null,
|
|
794
794
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\ndevice.prependOnceListener('update', () => done());",
|
|
795
795
|
"err": {},
|
|
796
|
-
"uuid": "
|
|
797
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "56f26872-371f-4cd8-9f9c-95c0abc84e05",
|
|
797
|
+
"parentUUID": "51c5a1a5-07f5-4587-afaf-18a9bfca71bc",
|
|
798
798
|
"isHook": false,
|
|
799
799
|
"skipped": false
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"suites": [],
|
|
803
803
|
"passes": [
|
|
804
|
-
"
|
|
804
|
+
"56f26872-371f-4cd8-9f9c-95c0abc84e05"
|
|
805
805
|
],
|
|
806
806
|
"failures": [],
|
|
807
807
|
"pending": [],
|
|
808
808
|
"skipped": [],
|
|
809
|
-
"duration":
|
|
809
|
+
"duration": 2,
|
|
810
810
|
"root": false,
|
|
811
811
|
"rootEmpty": false,
|
|
812
812
|
"_timeout": 2000
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"uuid": "
|
|
815
|
+
"uuid": "ab5e5a96-241a-44bd-b650-8ea57be51e45",
|
|
816
816
|
"title": "rawListeners()",
|
|
817
817
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
818
818
|
"file": "/test/device-events.ts",
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
"title": "should work",
|
|
824
824
|
"fullTitle": "NodePyATVDeviceEvents rawListeners() should work",
|
|
825
825
|
"timedOut": false,
|
|
826
|
-
"duration":
|
|
826
|
+
"duration": 1,
|
|
827
827
|
"state": "passed",
|
|
828
828
|
"speed": "fast",
|
|
829
829
|
"pass": true,
|
|
@@ -832,26 +832,26 @@
|
|
|
832
832
|
"context": null,
|
|
833
833
|
"code": "const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
834
834
|
"err": {},
|
|
835
|
-
"uuid": "
|
|
836
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "b4112f04-3a71-4126-8a9b-a0e8b8ad3abd",
|
|
836
|
+
"parentUUID": "ab5e5a96-241a-44bd-b650-8ea57be51e45",
|
|
837
837
|
"isHook": false,
|
|
838
838
|
"skipped": false
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
841
|
"suites": [],
|
|
842
842
|
"passes": [
|
|
843
|
-
"
|
|
843
|
+
"b4112f04-3a71-4126-8a9b-a0e8b8ad3abd"
|
|
844
844
|
],
|
|
845
845
|
"failures": [],
|
|
846
846
|
"pending": [],
|
|
847
847
|
"skipped": [],
|
|
848
|
-
"duration":
|
|
848
|
+
"duration": 1,
|
|
849
849
|
"root": false,
|
|
850
850
|
"rootEmpty": false,
|
|
851
851
|
"_timeout": 2000
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
|
-
"uuid": "
|
|
854
|
+
"uuid": "a4936791-bcb5-4e4e-8810-72e886e45c26",
|
|
855
855
|
"title": "removeListener()",
|
|
856
856
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
857
857
|
"file": "/test/device-events.ts",
|
|
@@ -871,15 +871,15 @@
|
|
|
871
871
|
"context": null,
|
|
872
872
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new lib_1.NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n assert_1.default.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert_1.default.deepStrictEqual(device.listenerCount('update'), 0);\n});",
|
|
873
873
|
"err": {},
|
|
874
|
-
"uuid": "
|
|
875
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "a8df6115-7fbe-44ca-b8f5-422a6b08457c",
|
|
875
|
+
"parentUUID": "a4936791-bcb5-4e4e-8810-72e886e45c26",
|
|
876
876
|
"isHook": false,
|
|
877
877
|
"skipped": false
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
880
|
"suites": [],
|
|
881
881
|
"passes": [
|
|
882
|
-
"
|
|
882
|
+
"a8df6115-7fbe-44ca-b8f5-422a6b08457c"
|
|
883
883
|
],
|
|
884
884
|
"failures": [],
|
|
885
885
|
"pending": [],
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"_timeout": 2000
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
"uuid": "
|
|
903
|
+
"uuid": "076aa61c-611c-4fbb-aee1-63a4a36f0b82",
|
|
904
904
|
"title": "NodePyATVDevice",
|
|
905
905
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
906
906
|
"file": "/test/device.ts",
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
"tests": [],
|
|
910
910
|
"suites": [
|
|
911
911
|
{
|
|
912
|
-
"uuid": "
|
|
912
|
+
"uuid": "837d1046-54bf-4531-b437-173d4785f316",
|
|
913
913
|
"title": "get name()",
|
|
914
914
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
915
915
|
"file": "/test/device.ts",
|
|
@@ -929,15 +929,15 @@
|
|
|
929
929
|
"context": null,
|
|
930
930
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
931
931
|
"err": {},
|
|
932
|
-
"uuid": "
|
|
933
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "febe9934-31eb-4c91-81d6-837383bb1df4",
|
|
933
|
+
"parentUUID": "837d1046-54bf-4531-b437-173d4785f316",
|
|
934
934
|
"isHook": false,
|
|
935
935
|
"skipped": false
|
|
936
936
|
}
|
|
937
937
|
],
|
|
938
938
|
"suites": [],
|
|
939
939
|
"passes": [
|
|
940
|
-
"
|
|
940
|
+
"febe9934-31eb-4c91-81d6-837383bb1df4"
|
|
941
941
|
],
|
|
942
942
|
"failures": [],
|
|
943
943
|
"pending": [],
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"_timeout": 2000
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
"uuid": "
|
|
951
|
+
"uuid": "1caf34c0-bb83-4fcb-b715-bacb80832a16",
|
|
952
952
|
"title": "get host()",
|
|
953
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
954
954
|
"file": "/test/device.ts",
|
|
@@ -968,15 +968,15 @@
|
|
|
968
968
|
"context": null,
|
|
969
969
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.host, '192.168.178.2');",
|
|
970
970
|
"err": {},
|
|
971
|
-
"uuid": "
|
|
972
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "300ce5a1-f8b0-4c2f-bc7d-ee13e5f39b02",
|
|
972
|
+
"parentUUID": "1caf34c0-bb83-4fcb-b715-bacb80832a16",
|
|
973
973
|
"isHook": false,
|
|
974
974
|
"skipped": false
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
977
|
"suites": [],
|
|
978
978
|
"passes": [
|
|
979
|
-
"
|
|
979
|
+
"300ce5a1-f8b0-4c2f-bc7d-ee13e5f39b02"
|
|
980
980
|
],
|
|
981
981
|
"failures": [],
|
|
982
982
|
"pending": [],
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
"_timeout": 2000
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
"uuid": "
|
|
990
|
+
"uuid": "f4f9d88f-cb87-450e-9337-9081c63c2ab4",
|
|
991
991
|
"title": "get id()",
|
|
992
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
993
993
|
"file": "/test/device.ts",
|
|
@@ -1007,15 +1007,15 @@
|
|
|
1007
1007
|
"context": null,
|
|
1008
1008
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert_1.default.strictEqual(device.id, '*****');",
|
|
1009
1009
|
"err": {},
|
|
1010
|
-
"uuid": "
|
|
1011
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "8978af6d-71a0-4211-8618-58266c67a28a",
|
|
1011
|
+
"parentUUID": "f4f9d88f-cb87-450e-9337-9081c63c2ab4",
|
|
1012
1012
|
"isHook": false,
|
|
1013
1013
|
"skipped": false
|
|
1014
1014
|
}
|
|
1015
1015
|
],
|
|
1016
1016
|
"suites": [],
|
|
1017
1017
|
"passes": [
|
|
1018
|
-
"
|
|
1018
|
+
"8978af6d-71a0-4211-8618-58266c67a28a"
|
|
1019
1019
|
],
|
|
1020
1020
|
"failures": [],
|
|
1021
1021
|
"pending": [],
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"_timeout": 2000
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"uuid": "
|
|
1029
|
+
"uuid": "3c52c5b2-69fc-4975-a2c6-d6138af4f30b",
|
|
1030
1030
|
"title": "get protocol()",
|
|
1031
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1032
1032
|
"file": "/test/device.ts",
|
|
@@ -1046,15 +1046,15 @@
|
|
|
1046
1046
|
"context": null,
|
|
1047
1047
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.strictEqual(device.protocol, types_1.NodePyATVProtocol.airplay);",
|
|
1048
1048
|
"err": {},
|
|
1049
|
-
"uuid": "
|
|
1050
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "69af8c93-0086-4ca8-b803-3b1fb7ea778e",
|
|
1050
|
+
"parentUUID": "3c52c5b2-69fc-4975-a2c6-d6138af4f30b",
|
|
1051
1051
|
"isHook": false,
|
|
1052
1052
|
"skipped": false
|
|
1053
1053
|
}
|
|
1054
1054
|
],
|
|
1055
1055
|
"suites": [],
|
|
1056
1056
|
"passes": [
|
|
1057
|
-
"
|
|
1057
|
+
"69af8c93-0086-4ca8-b803-3b1fb7ea778e"
|
|
1058
1058
|
],
|
|
1059
1059
|
"failures": [],
|
|
1060
1060
|
"pending": [],
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
"_timeout": 2000
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
|
-
"uuid": "
|
|
1068
|
+
"uuid": "56741934-e4af-4124-9066-b47794a280c3",
|
|
1069
1069
|
"title": "get debug()",
|
|
1070
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1071
1071
|
"file": "/test/device.ts",
|
|
@@ -1085,8 +1085,8 @@
|
|
|
1085
1085
|
"context": null,
|
|
1086
1086
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);",
|
|
1087
1087
|
"err": {},
|
|
1088
|
-
"uuid": "
|
|
1089
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "dfce140c-c1bb-49d1-8743-7b1378af158e",
|
|
1089
|
+
"parentUUID": "56741934-e4af-4124-9066-b47794a280c3",
|
|
1090
1090
|
"isHook": false,
|
|
1091
1091
|
"skipped": false
|
|
1092
1092
|
},
|
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
"title": "should return fn if set to custom function",
|
|
1095
1095
|
"fullTitle": "NodePyATVDevice get debug() should return fn if set to custom function",
|
|
1096
1096
|
"timedOut": false,
|
|
1097
|
-
"duration":
|
|
1097
|
+
"duration": 0,
|
|
1098
1098
|
"state": "passed",
|
|
1099
1099
|
"speed": "fast",
|
|
1100
1100
|
"pass": true,
|
|
@@ -1103,8 +1103,8 @@
|
|
|
1103
1103
|
"context": null,
|
|
1104
1104
|
"code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1105
1105
|
"err": {},
|
|
1106
|
-
"uuid": "
|
|
1107
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "70394032-9386-4075-b8d5-4ab6ee8cd993",
|
|
1107
|
+
"parentUUID": "56741934-e4af-4124-9066-b47794a280c3",
|
|
1108
1108
|
"isHook": false,
|
|
1109
1109
|
"skipped": false
|
|
1110
1110
|
},
|
|
@@ -1121,28 +1121,28 @@
|
|
|
1121
1121
|
"context": null,
|
|
1122
1122
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1123
1123
|
"err": {},
|
|
1124
|
-
"uuid": "
|
|
1125
|
-
"parentUUID": "
|
|
1124
|
+
"uuid": "4fe6925e-667f-4110-8c1a-30eebdb8572c",
|
|
1125
|
+
"parentUUID": "56741934-e4af-4124-9066-b47794a280c3",
|
|
1126
1126
|
"isHook": false,
|
|
1127
1127
|
"skipped": false
|
|
1128
1128
|
}
|
|
1129
1129
|
],
|
|
1130
1130
|
"suites": [],
|
|
1131
1131
|
"passes": [
|
|
1132
|
-
"
|
|
1133
|
-
"
|
|
1134
|
-
"
|
|
1132
|
+
"dfce140c-c1bb-49d1-8743-7b1378af158e",
|
|
1133
|
+
"70394032-9386-4075-b8d5-4ab6ee8cd993",
|
|
1134
|
+
"4fe6925e-667f-4110-8c1a-30eebdb8572c"
|
|
1135
1135
|
],
|
|
1136
1136
|
"failures": [],
|
|
1137
1137
|
"pending": [],
|
|
1138
1138
|
"skipped": [],
|
|
1139
|
-
"duration":
|
|
1139
|
+
"duration": 0,
|
|
1140
1140
|
"root": false,
|
|
1141
1141
|
"rootEmpty": false,
|
|
1142
1142
|
"_timeout": 2000
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
|
-
"uuid": "
|
|
1145
|
+
"uuid": "4686a1d6-4e81-4362-8949-bbd9f205d580",
|
|
1146
1146
|
"title": "set debug()",
|
|
1147
1147
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1148
1148
|
"file": "/test/device.ts",
|
|
@@ -1162,8 +1162,8 @@
|
|
|
1162
1162
|
"context": null,
|
|
1163
1163
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert_1.default.strictEqual(device.debug, true);",
|
|
1164
1164
|
"err": {},
|
|
1165
|
-
"uuid": "
|
|
1166
|
-
"parentUUID": "
|
|
1165
|
+
"uuid": "d8b741f6-e93a-4d44-b502-d70aa99df830",
|
|
1166
|
+
"parentUUID": "4686a1d6-4e81-4362-8949-bbd9f205d580",
|
|
1167
1167
|
"isHook": false,
|
|
1168
1168
|
"skipped": false
|
|
1169
1169
|
},
|
|
@@ -1171,7 +1171,7 @@
|
|
|
1171
1171
|
"title": "should work for debug = undefined",
|
|
1172
1172
|
"fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
|
|
1173
1173
|
"timedOut": false,
|
|
1174
|
-
"duration":
|
|
1174
|
+
"duration": 1,
|
|
1175
1175
|
"state": "passed",
|
|
1176
1176
|
"speed": "fast",
|
|
1177
1177
|
"pass": true,
|
|
@@ -1180,8 +1180,8 @@
|
|
|
1180
1180
|
"context": null,
|
|
1181
1181
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1182
1182
|
"err": {},
|
|
1183
|
-
"uuid": "
|
|
1184
|
-
"parentUUID": "
|
|
1183
|
+
"uuid": "4300e3c0-f4fa-463c-97b4-ed6e8a794e4f",
|
|
1184
|
+
"parentUUID": "4686a1d6-4e81-4362-8949-bbd9f205d580",
|
|
1185
1185
|
"isHook": false,
|
|
1186
1186
|
"skipped": false
|
|
1187
1187
|
},
|
|
@@ -1198,8 +1198,8 @@
|
|
|
1198
1198
|
"context": null,
|
|
1199
1199
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1200
1200
|
"err": {},
|
|
1201
|
-
"uuid": "
|
|
1202
|
-
"parentUUID": "
|
|
1201
|
+
"uuid": "da982279-ad93-4748-ae50-7fb1a823bfd7",
|
|
1202
|
+
"parentUUID": "4686a1d6-4e81-4362-8949-bbd9f205d580",
|
|
1203
1203
|
"isHook": false,
|
|
1204
1204
|
"skipped": false
|
|
1205
1205
|
},
|
|
@@ -1216,29 +1216,29 @@
|
|
|
1216
1216
|
"context": null,
|
|
1217
1217
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nassert_1.default.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1218
1218
|
"err": {},
|
|
1219
|
-
"uuid": "
|
|
1220
|
-
"parentUUID": "
|
|
1219
|
+
"uuid": "bbf7137b-e3c8-46a8-925d-11cfd80ca396",
|
|
1220
|
+
"parentUUID": "4686a1d6-4e81-4362-8949-bbd9f205d580",
|
|
1221
1221
|
"isHook": false,
|
|
1222
1222
|
"skipped": false
|
|
1223
1223
|
}
|
|
1224
1224
|
],
|
|
1225
1225
|
"suites": [],
|
|
1226
1226
|
"passes": [
|
|
1227
|
-
"
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1230
|
-
"
|
|
1227
|
+
"d8b741f6-e93a-4d44-b502-d70aa99df830",
|
|
1228
|
+
"4300e3c0-f4fa-463c-97b4-ed6e8a794e4f",
|
|
1229
|
+
"da982279-ad93-4748-ae50-7fb1a823bfd7",
|
|
1230
|
+
"bbf7137b-e3c8-46a8-925d-11cfd80ca396"
|
|
1231
1231
|
],
|
|
1232
1232
|
"failures": [],
|
|
1233
1233
|
"pending": [],
|
|
1234
1234
|
"skipped": [],
|
|
1235
|
-
"duration":
|
|
1235
|
+
"duration": 1,
|
|
1236
1236
|
"root": false,
|
|
1237
1237
|
"rootEmpty": false,
|
|
1238
1238
|
"_timeout": 2000
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
|
-
"uuid": "
|
|
1241
|
+
"uuid": "1c9939e1-7d34-4099-99a4-993da02a6b17",
|
|
1242
1242
|
"title": "toJSON()",
|
|
1243
1243
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1244
1244
|
"file": "/test/device.ts",
|
|
@@ -1258,8 +1258,8 @@
|
|
|
1258
1258
|
"context": null,
|
|
1259
1259
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});",
|
|
1260
1260
|
"err": {},
|
|
1261
|
-
"uuid": "
|
|
1262
|
-
"parentUUID": "
|
|
1261
|
+
"uuid": "44532f43-0634-4fed-809a-97905971f222",
|
|
1262
|
+
"parentUUID": "1c9939e1-7d34-4099-99a4-993da02a6b17",
|
|
1263
1263
|
"isHook": false,
|
|
1264
1264
|
"skipped": false
|
|
1265
1265
|
},
|
|
@@ -1276,16 +1276,16 @@
|
|
|
1276
1276
|
"context": null,
|
|
1277
1277
|
"code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n};\nconst deviceA = new device_1.default(config);\nconst deviceB = new device_1.default(deviceA.toJSON());\nassert_1.default.deepEqual(deviceB.toJSON(), config);",
|
|
1278
1278
|
"err": {},
|
|
1279
|
-
"uuid": "
|
|
1280
|
-
"parentUUID": "
|
|
1279
|
+
"uuid": "a621fab6-b023-4576-99bd-78626ae2639d",
|
|
1280
|
+
"parentUUID": "1c9939e1-7d34-4099-99a4-993da02a6b17",
|
|
1281
1281
|
"isHook": false,
|
|
1282
1282
|
"skipped": false
|
|
1283
1283
|
}
|
|
1284
1284
|
],
|
|
1285
1285
|
"suites": [],
|
|
1286
1286
|
"passes": [
|
|
1287
|
-
"
|
|
1288
|
-
"
|
|
1287
|
+
"44532f43-0634-4fed-809a-97905971f222",
|
|
1288
|
+
"a621fab6-b023-4576-99bd-78626ae2639d"
|
|
1289
1289
|
],
|
|
1290
1290
|
"failures": [],
|
|
1291
1291
|
"pending": [],
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
"_timeout": 2000
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
"uuid": "
|
|
1299
|
+
"uuid": "501d7d9e-0c89-4eb3-add4-d1f4dd1d1708",
|
|
1300
1300
|
"title": "toString()",
|
|
1301
1301
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1302
1302
|
"file": "/test/device.ts",
|
|
@@ -1316,15 +1316,15 @@
|
|
|
1316
1316
|
"context": null,
|
|
1317
1317
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
|
|
1318
1318
|
"err": {},
|
|
1319
|
-
"uuid": "
|
|
1320
|
-
"parentUUID": "
|
|
1319
|
+
"uuid": "ddbead51-8c4e-45fd-8cd6-871abb36fc44",
|
|
1320
|
+
"parentUUID": "501d7d9e-0c89-4eb3-add4-d1f4dd1d1708",
|
|
1321
1321
|
"isHook": false,
|
|
1322
1322
|
"skipped": false
|
|
1323
1323
|
}
|
|
1324
1324
|
],
|
|
1325
1325
|
"suites": [],
|
|
1326
1326
|
"passes": [
|
|
1327
|
-
"
|
|
1327
|
+
"ddbead51-8c4e-45fd-8cd6-871abb36fc44"
|
|
1328
1328
|
],
|
|
1329
1329
|
"failures": [],
|
|
1330
1330
|
"pending": [],
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
"_timeout": 2000
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
1338
|
-
"uuid": "
|
|
1338
|
+
"uuid": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1339
1339
|
"title": "getState()",
|
|
1340
1340
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1341
1341
|
"file": "/test/device.ts",
|
|
@@ -1355,8 +1355,8 @@
|
|
|
1355
1355
|
"context": null,
|
|
1356
1356
|
"code": "",
|
|
1357
1357
|
"err": {},
|
|
1358
|
-
"uuid": "
|
|
1359
|
-
"parentUUID": "
|
|
1358
|
+
"uuid": "4d82e051-38f6-4093-b942-0186c4834239",
|
|
1359
|
+
"parentUUID": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1360
1360
|
"isHook": false,
|
|
1361
1361
|
"skipped": false
|
|
1362
1362
|
},
|
|
@@ -1364,7 +1364,7 @@
|
|
|
1364
1364
|
"title": "should work",
|
|
1365
1365
|
"fullTitle": "NodePyATVDevice getState() should work",
|
|
1366
1366
|
"timedOut": false,
|
|
1367
|
-
"duration":
|
|
1367
|
+
"duration": 3,
|
|
1368
1368
|
"state": "passed",
|
|
1369
1369
|
"speed": "fast",
|
|
1370
1370
|
"pass": true,
|
|
@@ -1373,8 +1373,8 @@
|
|
|
1373
1373
|
"context": null,
|
|
1374
1374
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const result = yield device.getState();\n assert_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
|
|
1375
1375
|
"err": {},
|
|
1376
|
-
"uuid": "
|
|
1377
|
-
"parentUUID": "
|
|
1376
|
+
"uuid": "07d437e8-68e3-41a5-932d-692eb201da6e",
|
|
1377
|
+
"parentUUID": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1378
1378
|
"isHook": false,
|
|
1379
1379
|
"skipped": false
|
|
1380
1380
|
},
|
|
@@ -1391,8 +1391,8 @@
|
|
|
1391
1391
|
"context": null,
|
|
1392
1392
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.getState();\n }), /Got pyatv Error: invalid credentials: 321/);\n});",
|
|
1393
1393
|
"err": {},
|
|
1394
|
-
"uuid": "
|
|
1395
|
-
"parentUUID": "
|
|
1394
|
+
"uuid": "7c263888-f20d-4d25-8f33-623e1edadbd2",
|
|
1395
|
+
"parentUUID": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1396
1396
|
"isHook": false,
|
|
1397
1397
|
"skipped": false
|
|
1398
1398
|
},
|
|
@@ -1409,8 +1409,8 @@
|
|
|
1409
1409
|
"context": null,
|
|
1410
1410
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: new Date().toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n const secondResult = yield device.getState();\n assert_1.default.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert_1.default.strictEqual(executions, 1);\n});",
|
|
1411
1411
|
"err": {},
|
|
1412
|
-
"uuid": "
|
|
1413
|
-
"parentUUID": "
|
|
1412
|
+
"uuid": "056e9456-96e9-438a-ab49-691f2f98d5b4",
|
|
1413
|
+
"parentUUID": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1414
1414
|
"isHook": false,
|
|
1415
1415
|
"skipped": false
|
|
1416
1416
|
},
|
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
"title": "should update the position if cache was used",
|
|
1419
1419
|
"fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
|
|
1420
1420
|
"timedOut": false,
|
|
1421
|
-
"duration":
|
|
1421
|
+
"duration": 2,
|
|
1422
1422
|
"state": "passed",
|
|
1423
1423
|
"speed": "fast",
|
|
1424
1424
|
"pass": true,
|
|
@@ -1427,31 +1427,31 @@
|
|
|
1427
1427
|
"context": null,
|
|
1428
1428
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: new Date(new Date().getTime() - 1000).toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n assert_1.default.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert_1.default.ok(secondResult.position);\n assert_1.default.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert_1.default.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
|
|
1429
1429
|
"err": {},
|
|
1430
|
-
"uuid": "
|
|
1431
|
-
"parentUUID": "
|
|
1430
|
+
"uuid": "8a58cb28-fa5c-4385-8cb3-2cfb7a8b5c47",
|
|
1431
|
+
"parentUUID": "31936d7b-0655-4ec0-841f-2a7a74915cc2",
|
|
1432
1432
|
"isHook": false,
|
|
1433
1433
|
"skipped": false
|
|
1434
1434
|
}
|
|
1435
1435
|
],
|
|
1436
1436
|
"suites": [],
|
|
1437
1437
|
"passes": [
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
"
|
|
1441
|
-
"
|
|
1438
|
+
"07d437e8-68e3-41a5-932d-692eb201da6e",
|
|
1439
|
+
"7c263888-f20d-4d25-8f33-623e1edadbd2",
|
|
1440
|
+
"056e9456-96e9-438a-ab49-691f2f98d5b4",
|
|
1441
|
+
"8a58cb28-fa5c-4385-8cb3-2cfb7a8b5c47"
|
|
1442
1442
|
],
|
|
1443
1443
|
"failures": [],
|
|
1444
1444
|
"pending": [
|
|
1445
|
-
"
|
|
1445
|
+
"4d82e051-38f6-4093-b942-0186c4834239"
|
|
1446
1446
|
],
|
|
1447
1447
|
"skipped": [],
|
|
1448
|
-
"duration":
|
|
1448
|
+
"duration": 8,
|
|
1449
1449
|
"root": false,
|
|
1450
1450
|
"rootEmpty": false,
|
|
1451
1451
|
"_timeout": 2000
|
|
1452
1452
|
},
|
|
1453
1453
|
{
|
|
1454
|
-
"uuid": "
|
|
1454
|
+
"uuid": "6188930a-cc9e-49f4-b1f0-10c8aa43ba07",
|
|
1455
1455
|
"title": "clearState()",
|
|
1456
1456
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1457
1457
|
"file": "/test/device.ts",
|
|
@@ -1462,7 +1462,7 @@
|
|
|
1462
1462
|
"title": "should work",
|
|
1463
1463
|
"fullTitle": "NodePyATVDevice clearState() should work",
|
|
1464
1464
|
"timedOut": false,
|
|
1465
|
-
"duration":
|
|
1465
|
+
"duration": 3,
|
|
1466
1466
|
"state": "passed",
|
|
1467
1467
|
"speed": "fast",
|
|
1468
1468
|
"pass": true,
|
|
@@ -1471,26 +1471,26 @@
|
|
|
1471
1471
|
"context": null,
|
|
1472
1472
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n title: 'Solo: A Star Wars Story'\n });\n })\n });\n assert_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert_1.default.strictEqual(executions, 2);\n});",
|
|
1473
1473
|
"err": {},
|
|
1474
|
-
"uuid": "
|
|
1475
|
-
"parentUUID": "
|
|
1474
|
+
"uuid": "590af8c4-b75c-4714-b439-c881e2ef8fdf",
|
|
1475
|
+
"parentUUID": "6188930a-cc9e-49f4-b1f0-10c8aa43ba07",
|
|
1476
1476
|
"isHook": false,
|
|
1477
1477
|
"skipped": false
|
|
1478
1478
|
}
|
|
1479
1479
|
],
|
|
1480
1480
|
"suites": [],
|
|
1481
1481
|
"passes": [
|
|
1482
|
-
"
|
|
1482
|
+
"590af8c4-b75c-4714-b439-c881e2ef8fdf"
|
|
1483
1483
|
],
|
|
1484
1484
|
"failures": [],
|
|
1485
1485
|
"pending": [],
|
|
1486
1486
|
"skipped": [],
|
|
1487
|
-
"duration":
|
|
1487
|
+
"duration": 3,
|
|
1488
1488
|
"root": false,
|
|
1489
1489
|
"rootEmpty": false,
|
|
1490
1490
|
"_timeout": 2000
|
|
1491
1491
|
},
|
|
1492
1492
|
{
|
|
1493
|
-
"uuid": "
|
|
1493
|
+
"uuid": "914442a0-3592-4aa7-9407-874e2f32f083",
|
|
1494
1494
|
"title": "getDateTime()",
|
|
1495
1495
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1496
1496
|
"file": "/test/device.ts",
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
"title": "should work",
|
|
1502
1502
|
"fullTitle": "NodePyATVDevice getDateTime() should work",
|
|
1503
1503
|
"timedOut": false,
|
|
1504
|
-
"duration":
|
|
1504
|
+
"duration": 2,
|
|
1505
1505
|
"state": "passed",
|
|
1506
1506
|
"speed": "fast",
|
|
1507
1507
|
"pass": true,
|
|
@@ -1510,26 +1510,26 @@
|
|
|
1510
1510
|
"context": null,
|
|
1511
1511
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert_1.default.ok(result instanceof Date);\n});",
|
|
1512
1512
|
"err": {},
|
|
1513
|
-
"uuid": "
|
|
1514
|
-
"parentUUID": "
|
|
1513
|
+
"uuid": "76ccd0f1-50d0-43ef-91d4-f98dc53af76d",
|
|
1514
|
+
"parentUUID": "914442a0-3592-4aa7-9407-874e2f32f083",
|
|
1515
1515
|
"isHook": false,
|
|
1516
1516
|
"skipped": false
|
|
1517
1517
|
}
|
|
1518
1518
|
],
|
|
1519
1519
|
"suites": [],
|
|
1520
1520
|
"passes": [
|
|
1521
|
-
"
|
|
1521
|
+
"76ccd0f1-50d0-43ef-91d4-f98dc53af76d"
|
|
1522
1522
|
],
|
|
1523
1523
|
"failures": [],
|
|
1524
1524
|
"pending": [],
|
|
1525
1525
|
"skipped": [],
|
|
1526
|
-
"duration":
|
|
1526
|
+
"duration": 2,
|
|
1527
1527
|
"root": false,
|
|
1528
1528
|
"rootEmpty": false,
|
|
1529
1529
|
"_timeout": 2000
|
|
1530
1530
|
},
|
|
1531
1531
|
{
|
|
1532
|
-
"uuid": "
|
|
1532
|
+
"uuid": "5e9a3c0e-46e5-41b9-b41c-210d4a8e9c13",
|
|
1533
1533
|
"title": "getHash()",
|
|
1534
1534
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1535
1535
|
"file": "/test/device.ts",
|
|
@@ -1549,15 +1549,15 @@
|
|
|
1549
1549
|
"context": null,
|
|
1550
1550
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert_1.default.strictEqual(result, '12345');\n});",
|
|
1551
1551
|
"err": {},
|
|
1552
|
-
"uuid": "
|
|
1553
|
-
"parentUUID": "
|
|
1552
|
+
"uuid": "ade2c2a5-3230-422a-b17e-6deb50ae1869",
|
|
1553
|
+
"parentUUID": "5e9a3c0e-46e5-41b9-b41c-210d4a8e9c13",
|
|
1554
1554
|
"isHook": false,
|
|
1555
1555
|
"skipped": false
|
|
1556
1556
|
}
|
|
1557
1557
|
],
|
|
1558
1558
|
"suites": [],
|
|
1559
1559
|
"passes": [
|
|
1560
|
-
"
|
|
1560
|
+
"ade2c2a5-3230-422a-b17e-6deb50ae1869"
|
|
1561
1561
|
],
|
|
1562
1562
|
"failures": [],
|
|
1563
1563
|
"pending": [],
|
|
@@ -1568,7 +1568,7 @@
|
|
|
1568
1568
|
"_timeout": 2000
|
|
1569
1569
|
},
|
|
1570
1570
|
{
|
|
1571
|
-
"uuid": "
|
|
1571
|
+
"uuid": "29775fb0-6460-4172-b728-f0ec6242fa47",
|
|
1572
1572
|
"title": "getMediaType()",
|
|
1573
1573
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1574
1574
|
"file": "/test/device.ts",
|
|
@@ -1588,15 +1588,15 @@
|
|
|
1588
1588
|
"context": null,
|
|
1589
1589
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVMediaType.video);\n assert_1.default.deepStrictEqual(result, 'video');\n});",
|
|
1590
1590
|
"err": {},
|
|
1591
|
-
"uuid": "
|
|
1592
|
-
"parentUUID": "
|
|
1591
|
+
"uuid": "039a6a4a-9cf3-4552-b6df-098427ec3d03",
|
|
1592
|
+
"parentUUID": "29775fb0-6460-4172-b728-f0ec6242fa47",
|
|
1593
1593
|
"isHook": false,
|
|
1594
1594
|
"skipped": false
|
|
1595
1595
|
}
|
|
1596
1596
|
],
|
|
1597
1597
|
"suites": [],
|
|
1598
1598
|
"passes": [
|
|
1599
|
-
"
|
|
1599
|
+
"039a6a4a-9cf3-4552-b6df-098427ec3d03"
|
|
1600
1600
|
],
|
|
1601
1601
|
"failures": [],
|
|
1602
1602
|
"pending": [],
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
"_timeout": 2000
|
|
1608
1608
|
},
|
|
1609
1609
|
{
|
|
1610
|
-
"uuid": "
|
|
1610
|
+
"uuid": "d05a81af-5705-4fac-9075-23deaac9a487",
|
|
1611
1611
|
"title": "getDeviceState()",
|
|
1612
1612
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1613
1613
|
"file": "/test/device.ts",
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
"title": "should work",
|
|
1619
1619
|
"fullTitle": "NodePyATVDevice getDeviceState() should work",
|
|
1620
1620
|
"timedOut": false,
|
|
1621
|
-
"duration":
|
|
1621
|
+
"duration": 2,
|
|
1622
1622
|
"state": "passed",
|
|
1623
1623
|
"speed": "fast",
|
|
1624
1624
|
"pass": true,
|
|
@@ -1627,26 +1627,26 @@
|
|
|
1627
1627
|
"context": null,
|
|
1628
1628
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVDeviceState.seeking);\n assert_1.default.deepStrictEqual(result, 'seeking');\n});",
|
|
1629
1629
|
"err": {},
|
|
1630
|
-
"uuid": "
|
|
1631
|
-
"parentUUID": "
|
|
1630
|
+
"uuid": "85b7312f-23be-474f-812d-a7a508a4a5ad",
|
|
1631
|
+
"parentUUID": "d05a81af-5705-4fac-9075-23deaac9a487",
|
|
1632
1632
|
"isHook": false,
|
|
1633
1633
|
"skipped": false
|
|
1634
1634
|
}
|
|
1635
1635
|
],
|
|
1636
1636
|
"suites": [],
|
|
1637
1637
|
"passes": [
|
|
1638
|
-
"
|
|
1638
|
+
"85b7312f-23be-474f-812d-a7a508a4a5ad"
|
|
1639
1639
|
],
|
|
1640
1640
|
"failures": [],
|
|
1641
1641
|
"pending": [],
|
|
1642
1642
|
"skipped": [],
|
|
1643
|
-
"duration":
|
|
1643
|
+
"duration": 2,
|
|
1644
1644
|
"root": false,
|
|
1645
1645
|
"rootEmpty": false,
|
|
1646
1646
|
"_timeout": 2000
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"uuid": "
|
|
1649
|
+
"uuid": "0ac28440-9095-4b74-8537-dfd36d3ec7ec",
|
|
1650
1650
|
"title": "getTitle()",
|
|
1651
1651
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1652
1652
|
"file": "/test/device.ts",
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
"title": "should work",
|
|
1658
1658
|
"fullTitle": "NodePyATVDevice getTitle() should work",
|
|
1659
1659
|
"timedOut": false,
|
|
1660
|
-
"duration":
|
|
1660
|
+
"duration": 2,
|
|
1661
1661
|
"state": "passed",
|
|
1662
1662
|
"speed": "fast",
|
|
1663
1663
|
"pass": true,
|
|
@@ -1666,26 +1666,26 @@
|
|
|
1666
1666
|
"context": null,
|
|
1667
1667
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert_1.default.strictEqual(result, 'My Movie');\n});",
|
|
1668
1668
|
"err": {},
|
|
1669
|
-
"uuid": "
|
|
1670
|
-
"parentUUID": "
|
|
1669
|
+
"uuid": "6efe8278-28b1-44e7-9644-e5165023136b",
|
|
1670
|
+
"parentUUID": "0ac28440-9095-4b74-8537-dfd36d3ec7ec",
|
|
1671
1671
|
"isHook": false,
|
|
1672
1672
|
"skipped": false
|
|
1673
1673
|
}
|
|
1674
1674
|
],
|
|
1675
1675
|
"suites": [],
|
|
1676
1676
|
"passes": [
|
|
1677
|
-
"
|
|
1677
|
+
"6efe8278-28b1-44e7-9644-e5165023136b"
|
|
1678
1678
|
],
|
|
1679
1679
|
"failures": [],
|
|
1680
1680
|
"pending": [],
|
|
1681
1681
|
"skipped": [],
|
|
1682
|
-
"duration":
|
|
1682
|
+
"duration": 2,
|
|
1683
1683
|
"root": false,
|
|
1684
1684
|
"rootEmpty": false,
|
|
1685
1685
|
"_timeout": 2000
|
|
1686
1686
|
},
|
|
1687
1687
|
{
|
|
1688
|
-
"uuid": "
|
|
1688
|
+
"uuid": "78f231a9-7cfc-4476-ab94-c29509ff9900",
|
|
1689
1689
|
"title": "getArtist()",
|
|
1690
1690
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1691
1691
|
"file": "/test/device.ts",
|
|
@@ -1705,15 +1705,15 @@
|
|
|
1705
1705
|
"context": null,
|
|
1706
1706
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert_1.default.strictEqual(result, 'My Artist');\n});",
|
|
1707
1707
|
"err": {},
|
|
1708
|
-
"uuid": "
|
|
1709
|
-
"parentUUID": "
|
|
1708
|
+
"uuid": "2fb4f332-4cd0-4ed4-bfcd-06a65d45e8cc",
|
|
1709
|
+
"parentUUID": "78f231a9-7cfc-4476-ab94-c29509ff9900",
|
|
1710
1710
|
"isHook": false,
|
|
1711
1711
|
"skipped": false
|
|
1712
1712
|
}
|
|
1713
1713
|
],
|
|
1714
1714
|
"suites": [],
|
|
1715
1715
|
"passes": [
|
|
1716
|
-
"
|
|
1716
|
+
"2fb4f332-4cd0-4ed4-bfcd-06a65d45e8cc"
|
|
1717
1717
|
],
|
|
1718
1718
|
"failures": [],
|
|
1719
1719
|
"pending": [],
|
|
@@ -1724,7 +1724,7 @@
|
|
|
1724
1724
|
"_timeout": 2000
|
|
1725
1725
|
},
|
|
1726
1726
|
{
|
|
1727
|
-
"uuid": "
|
|
1727
|
+
"uuid": "08e7be63-729b-4d22-86a0-487c8c46cf50",
|
|
1728
1728
|
"title": "getAlbum()",
|
|
1729
1729
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1730
1730
|
"file": "/test/device.ts",
|
|
@@ -1735,7 +1735,7 @@
|
|
|
1735
1735
|
"title": "should work",
|
|
1736
1736
|
"fullTitle": "NodePyATVDevice getAlbum() should work",
|
|
1737
1737
|
"timedOut": false,
|
|
1738
|
-
"duration":
|
|
1738
|
+
"duration": 2,
|
|
1739
1739
|
"state": "passed",
|
|
1740
1740
|
"speed": "fast",
|
|
1741
1741
|
"pass": true,
|
|
@@ -1744,26 +1744,26 @@
|
|
|
1744
1744
|
"context": null,
|
|
1745
1745
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert_1.default.strictEqual(result, 'My ALbum');\n});",
|
|
1746
1746
|
"err": {},
|
|
1747
|
-
"uuid": "
|
|
1748
|
-
"parentUUID": "
|
|
1747
|
+
"uuid": "885c1735-f565-4732-b29b-8bbccead987c",
|
|
1748
|
+
"parentUUID": "08e7be63-729b-4d22-86a0-487c8c46cf50",
|
|
1749
1749
|
"isHook": false,
|
|
1750
1750
|
"skipped": false
|
|
1751
1751
|
}
|
|
1752
1752
|
],
|
|
1753
1753
|
"suites": [],
|
|
1754
1754
|
"passes": [
|
|
1755
|
-
"
|
|
1755
|
+
"885c1735-f565-4732-b29b-8bbccead987c"
|
|
1756
1756
|
],
|
|
1757
1757
|
"failures": [],
|
|
1758
1758
|
"pending": [],
|
|
1759
1759
|
"skipped": [],
|
|
1760
|
-
"duration":
|
|
1760
|
+
"duration": 2,
|
|
1761
1761
|
"root": false,
|
|
1762
1762
|
"rootEmpty": false,
|
|
1763
1763
|
"_timeout": 2000
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
|
-
"uuid": "
|
|
1766
|
+
"uuid": "2105d1a9-5ab0-4472-9346-d67389190f7b",
|
|
1767
1767
|
"title": "getGenre()",
|
|
1768
1768
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1769
1769
|
"file": "/test/device.ts",
|
|
@@ -1783,15 +1783,15 @@
|
|
|
1783
1783
|
"context": null,
|
|
1784
1784
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert_1.default.strictEqual(result, 'My Genre');\n});",
|
|
1785
1785
|
"err": {},
|
|
1786
|
-
"uuid": "
|
|
1787
|
-
"parentUUID": "
|
|
1786
|
+
"uuid": "1912bbe1-f9ba-492b-aca4-9008d8eb5efd",
|
|
1787
|
+
"parentUUID": "2105d1a9-5ab0-4472-9346-d67389190f7b",
|
|
1788
1788
|
"isHook": false,
|
|
1789
1789
|
"skipped": false
|
|
1790
1790
|
}
|
|
1791
1791
|
],
|
|
1792
1792
|
"suites": [],
|
|
1793
1793
|
"passes": [
|
|
1794
|
-
"
|
|
1794
|
+
"1912bbe1-f9ba-492b-aca4-9008d8eb5efd"
|
|
1795
1795
|
],
|
|
1796
1796
|
"failures": [],
|
|
1797
1797
|
"pending": [],
|
|
@@ -1802,7 +1802,7 @@
|
|
|
1802
1802
|
"_timeout": 2000
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
|
-
"uuid": "
|
|
1805
|
+
"uuid": "7b77aea7-3256-41ec-a788-4259563d9617",
|
|
1806
1806
|
"title": "getTotalTime()",
|
|
1807
1807
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1808
1808
|
"file": "/test/device.ts",
|
|
@@ -1822,15 +1822,15 @@
|
|
|
1822
1822
|
"context": null,
|
|
1823
1823
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert_1.default.strictEqual(result, 45);\n});",
|
|
1824
1824
|
"err": {},
|
|
1825
|
-
"uuid": "
|
|
1826
|
-
"parentUUID": "
|
|
1825
|
+
"uuid": "281462a6-b632-4a11-a4b6-930d84b58b00",
|
|
1826
|
+
"parentUUID": "7b77aea7-3256-41ec-a788-4259563d9617",
|
|
1827
1827
|
"isHook": false,
|
|
1828
1828
|
"skipped": false
|
|
1829
1829
|
}
|
|
1830
1830
|
],
|
|
1831
1831
|
"suites": [],
|
|
1832
1832
|
"passes": [
|
|
1833
|
-
"
|
|
1833
|
+
"281462a6-b632-4a11-a4b6-930d84b58b00"
|
|
1834
1834
|
],
|
|
1835
1835
|
"failures": [],
|
|
1836
1836
|
"pending": [],
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
"_timeout": 2000
|
|
1842
1842
|
},
|
|
1843
1843
|
{
|
|
1844
|
-
"uuid": "
|
|
1844
|
+
"uuid": "2e927702-2b70-4aee-8695-7195e4aeefe5",
|
|
1845
1845
|
"title": "getPosition()",
|
|
1846
1846
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1847
1847
|
"file": "/test/device.ts",
|
|
@@ -1852,7 +1852,7 @@
|
|
|
1852
1852
|
"title": "should work",
|
|
1853
1853
|
"fullTitle": "NodePyATVDevice getPosition() should work",
|
|
1854
1854
|
"timedOut": false,
|
|
1855
|
-
"duration":
|
|
1855
|
+
"duration": 2,
|
|
1856
1856
|
"state": "passed",
|
|
1857
1857
|
"speed": "fast",
|
|
1858
1858
|
"pass": true,
|
|
@@ -1861,26 +1861,26 @@
|
|
|
1861
1861
|
"context": null,
|
|
1862
1862
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert_1.default.strictEqual(result, 30);\n});",
|
|
1863
1863
|
"err": {},
|
|
1864
|
-
"uuid": "
|
|
1865
|
-
"parentUUID": "
|
|
1864
|
+
"uuid": "b283fb65-2808-43d8-87a7-12da2e395b40",
|
|
1865
|
+
"parentUUID": "2e927702-2b70-4aee-8695-7195e4aeefe5",
|
|
1866
1866
|
"isHook": false,
|
|
1867
1867
|
"skipped": false
|
|
1868
1868
|
}
|
|
1869
1869
|
],
|
|
1870
1870
|
"suites": [],
|
|
1871
1871
|
"passes": [
|
|
1872
|
-
"
|
|
1872
|
+
"b283fb65-2808-43d8-87a7-12da2e395b40"
|
|
1873
1873
|
],
|
|
1874
1874
|
"failures": [],
|
|
1875
1875
|
"pending": [],
|
|
1876
1876
|
"skipped": [],
|
|
1877
|
-
"duration":
|
|
1877
|
+
"duration": 2,
|
|
1878
1878
|
"root": false,
|
|
1879
1879
|
"rootEmpty": false,
|
|
1880
1880
|
"_timeout": 2000
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"uuid": "
|
|
1883
|
+
"uuid": "d33a45cb-802d-4497-b172-74694e254eab",
|
|
1884
1884
|
"title": "getShuffle()",
|
|
1885
1885
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1886
1886
|
"file": "/test/device.ts",
|
|
@@ -1900,15 +1900,15 @@
|
|
|
1900
1900
|
"context": null,
|
|
1901
1901
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVShuffleState.songs);\n assert_1.default.deepStrictEqual(result, 'songs');\n});",
|
|
1902
1902
|
"err": {},
|
|
1903
|
-
"uuid": "
|
|
1904
|
-
"parentUUID": "
|
|
1903
|
+
"uuid": "a4b92e80-972a-4707-aecc-1b727d6191ec",
|
|
1904
|
+
"parentUUID": "d33a45cb-802d-4497-b172-74694e254eab",
|
|
1905
1905
|
"isHook": false,
|
|
1906
1906
|
"skipped": false
|
|
1907
1907
|
}
|
|
1908
1908
|
],
|
|
1909
1909
|
"suites": [],
|
|
1910
1910
|
"passes": [
|
|
1911
|
-
"
|
|
1911
|
+
"a4b92e80-972a-4707-aecc-1b727d6191ec"
|
|
1912
1912
|
],
|
|
1913
1913
|
"failures": [],
|
|
1914
1914
|
"pending": [],
|
|
@@ -1919,7 +1919,7 @@
|
|
|
1919
1919
|
"_timeout": 2000
|
|
1920
1920
|
},
|
|
1921
1921
|
{
|
|
1922
|
-
"uuid": "
|
|
1922
|
+
"uuid": "7f9225cd-8994-40a6-984f-be556cbaecd2",
|
|
1923
1923
|
"title": "getRepeat()",
|
|
1924
1924
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1925
1925
|
"file": "/test/device.ts",
|
|
@@ -1939,15 +1939,15 @@
|
|
|
1939
1939
|
"context": null,
|
|
1940
1940
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVRepeatState.all);\n assert_1.default.deepStrictEqual(result, 'all');\n});",
|
|
1941
1941
|
"err": {},
|
|
1942
|
-
"uuid": "
|
|
1943
|
-
"parentUUID": "
|
|
1942
|
+
"uuid": "770e287e-0250-4b98-b39b-c42eb85f534c",
|
|
1943
|
+
"parentUUID": "7f9225cd-8994-40a6-984f-be556cbaecd2",
|
|
1944
1944
|
"isHook": false,
|
|
1945
1945
|
"skipped": false
|
|
1946
1946
|
}
|
|
1947
1947
|
],
|
|
1948
1948
|
"suites": [],
|
|
1949
1949
|
"passes": [
|
|
1950
|
-
"
|
|
1950
|
+
"770e287e-0250-4b98-b39b-c42eb85f534c"
|
|
1951
1951
|
],
|
|
1952
1952
|
"failures": [],
|
|
1953
1953
|
"pending": [],
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
"_timeout": 2000
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
|
-
"uuid": "
|
|
1961
|
+
"uuid": "69856f8b-02fe-4e82-8a7f-de885d7b0fcc",
|
|
1962
1962
|
"title": "getApp()",
|
|
1963
1963
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1964
1964
|
"file": "/test/device.ts",
|
|
@@ -1978,15 +1978,15 @@
|
|
|
1978
1978
|
"context": null,
|
|
1979
1979
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert_1.default.strictEqual(result, 'My App');\n});",
|
|
1980
1980
|
"err": {},
|
|
1981
|
-
"uuid": "
|
|
1982
|
-
"parentUUID": "
|
|
1981
|
+
"uuid": "f368597e-1edf-4f86-b972-2ff846863b01",
|
|
1982
|
+
"parentUUID": "69856f8b-02fe-4e82-8a7f-de885d7b0fcc",
|
|
1983
1983
|
"isHook": false,
|
|
1984
1984
|
"skipped": false
|
|
1985
1985
|
}
|
|
1986
1986
|
],
|
|
1987
1987
|
"suites": [],
|
|
1988
1988
|
"passes": [
|
|
1989
|
-
"
|
|
1989
|
+
"f368597e-1edf-4f86-b972-2ff846863b01"
|
|
1990
1990
|
],
|
|
1991
1991
|
"failures": [],
|
|
1992
1992
|
"pending": [],
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
"_timeout": 2000
|
|
1998
1998
|
},
|
|
1999
1999
|
{
|
|
2000
|
-
"uuid": "
|
|
2000
|
+
"uuid": "68e569ba-f5d9-4661-8d7c-a84a00ddebe0",
|
|
2001
2001
|
"title": "getAppId()",
|
|
2002
2002
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2003
2003
|
"file": "/test/device.ts",
|
|
@@ -2008,7 +2008,7 @@
|
|
|
2008
2008
|
"title": "should work",
|
|
2009
2009
|
"fullTitle": "NodePyATVDevice getAppId() should work",
|
|
2010
2010
|
"timedOut": false,
|
|
2011
|
-
"duration":
|
|
2011
|
+
"duration": 1,
|
|
2012
2012
|
"state": "passed",
|
|
2013
2013
|
"speed": "fast",
|
|
2014
2014
|
"pass": true,
|
|
@@ -2017,26 +2017,26 @@
|
|
|
2017
2017
|
"context": null,
|
|
2018
2018
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n app_id: 'app.example.com'\n });\n })\n });\n const result = yield device.getAppId();\n assert_1.default.strictEqual(result, 'app.example.com');\n});",
|
|
2019
2019
|
"err": {},
|
|
2020
|
-
"uuid": "
|
|
2021
|
-
"parentUUID": "
|
|
2020
|
+
"uuid": "7d194f8d-e6be-4b00-b2e4-c36a06a338e4",
|
|
2021
|
+
"parentUUID": "68e569ba-f5d9-4661-8d7c-a84a00ddebe0",
|
|
2022
2022
|
"isHook": false,
|
|
2023
2023
|
"skipped": false
|
|
2024
2024
|
}
|
|
2025
2025
|
],
|
|
2026
2026
|
"suites": [],
|
|
2027
2027
|
"passes": [
|
|
2028
|
-
"
|
|
2028
|
+
"7d194f8d-e6be-4b00-b2e4-c36a06a338e4"
|
|
2029
2029
|
],
|
|
2030
2030
|
"failures": [],
|
|
2031
2031
|
"pending": [],
|
|
2032
2032
|
"skipped": [],
|
|
2033
|
-
"duration":
|
|
2033
|
+
"duration": 1,
|
|
2034
2034
|
"root": false,
|
|
2035
2035
|
"rootEmpty": false,
|
|
2036
2036
|
"_timeout": 2000
|
|
2037
2037
|
},
|
|
2038
2038
|
{
|
|
2039
|
-
"uuid": "
|
|
2039
|
+
"uuid": "db2d7895-c549-48b5-baaf-c09241bad45f",
|
|
2040
2040
|
"title": "pressKey()",
|
|
2041
2041
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2042
2042
|
"file": "/test/device.ts",
|
|
@@ -2047,7 +2047,7 @@
|
|
|
2047
2047
|
"title": "should work with valid key",
|
|
2048
2048
|
"fullTitle": "NodePyATVDevice pressKey() should work with valid key",
|
|
2049
2049
|
"timedOut": false,
|
|
2050
|
-
"duration":
|
|
2050
|
+
"duration": 2,
|
|
2051
2051
|
"state": "passed",
|
|
2052
2052
|
"speed": "fast",
|
|
2053
2053
|
"pass": true,
|
|
@@ -2056,8 +2056,8 @@
|
|
|
2056
2056
|
"context": null,
|
|
2057
2057
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(types_1.NodePyATVKeys.home);\n});",
|
|
2058
2058
|
"err": {},
|
|
2059
|
-
"uuid": "
|
|
2060
|
-
"parentUUID": "
|
|
2059
|
+
"uuid": "d3b07cd4-c51c-4ace-8a5c-13b7d1a774ce",
|
|
2060
|
+
"parentUUID": "db2d7895-c549-48b5-baaf-c09241bad45f",
|
|
2061
2061
|
"isHook": false,
|
|
2062
2062
|
"skipped": false
|
|
2063
2063
|
},
|
|
@@ -2065,7 +2065,7 @@
|
|
|
2065
2065
|
"title": "should throw error with invalid key",
|
|
2066
2066
|
"fullTitle": "NodePyATVDevice pressKey() should throw error with invalid key",
|
|
2067
2067
|
"timedOut": false,
|
|
2068
|
-
"duration":
|
|
2068
|
+
"duration": 1,
|
|
2069
2069
|
"state": "passed",
|
|
2070
2070
|
"speed": "fast",
|
|
2071
2071
|
"pass": true,
|
|
@@ -2074,8 +2074,8 @@
|
|
|
2074
2074
|
"context": null,
|
|
2075
2075
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n // @ts-ignore\n yield device.pressKey('foo');\n }), /Unsupported key value foo/);\n});",
|
|
2076
2076
|
"err": {},
|
|
2077
|
-
"uuid": "
|
|
2078
|
-
"parentUUID": "
|
|
2077
|
+
"uuid": "60e48f70-4f9a-4f30-be26-e41544e5bd4f",
|
|
2078
|
+
"parentUUID": "db2d7895-c549-48b5-baaf-c09241bad45f",
|
|
2079
2079
|
"isHook": false,
|
|
2080
2080
|
"skipped": false
|
|
2081
2081
|
},
|
|
@@ -2083,7 +2083,7 @@
|
|
|
2083
2083
|
"title": "should throw error if pyatv result is not success",
|
|
2084
2084
|
"fullTitle": "NodePyATVDevice pressKey() should throw error if pyatv result is not success",
|
|
2085
2085
|
"timedOut": false,
|
|
2086
|
-
"duration":
|
|
2086
|
+
"duration": 2,
|
|
2087
2087
|
"state": "passed",
|
|
2088
2088
|
"speed": "fast",
|
|
2089
2089
|
"pass": true,
|
|
@@ -2092,28 +2092,28 @@
|
|
|
2092
2092
|
"context": null,
|
|
2093
2093
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(types_1.NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
|
|
2094
2094
|
"err": {},
|
|
2095
|
-
"uuid": "
|
|
2096
|
-
"parentUUID": "
|
|
2095
|
+
"uuid": "4804672e-e660-4ee6-8051-e64ab4d4ce78",
|
|
2096
|
+
"parentUUID": "db2d7895-c549-48b5-baaf-c09241bad45f",
|
|
2097
2097
|
"isHook": false,
|
|
2098
2098
|
"skipped": false
|
|
2099
2099
|
}
|
|
2100
2100
|
],
|
|
2101
2101
|
"suites": [],
|
|
2102
2102
|
"passes": [
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2103
|
+
"d3b07cd4-c51c-4ace-8a5c-13b7d1a774ce",
|
|
2104
|
+
"60e48f70-4f9a-4f30-be26-e41544e5bd4f",
|
|
2105
|
+
"4804672e-e660-4ee6-8051-e64ab4d4ce78"
|
|
2106
2106
|
],
|
|
2107
2107
|
"failures": [],
|
|
2108
2108
|
"pending": [],
|
|
2109
2109
|
"skipped": [],
|
|
2110
|
-
"duration":
|
|
2110
|
+
"duration": 5,
|
|
2111
2111
|
"root": false,
|
|
2112
2112
|
"rootEmpty": false,
|
|
2113
2113
|
"_timeout": 2000
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
2116
|
-
"uuid": "
|
|
2116
|
+
"uuid": "cae0cf39-d9f9-48bf-a797-1e3db7a43d81",
|
|
2117
2117
|
"title": "down()",
|
|
2118
2118
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2119
2119
|
"file": "/test/device.ts",
|
|
@@ -2133,15 +2133,15 @@
|
|
|
2133
2133
|
"context": null,
|
|
2134
2134
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2135
2135
|
"err": {},
|
|
2136
|
-
"uuid": "
|
|
2137
|
-
"parentUUID": "
|
|
2136
|
+
"uuid": "00310b17-923d-4e87-9925-e06b1eeab199",
|
|
2137
|
+
"parentUUID": "cae0cf39-d9f9-48bf-a797-1e3db7a43d81",
|
|
2138
2138
|
"isHook": false,
|
|
2139
2139
|
"skipped": false
|
|
2140
2140
|
}
|
|
2141
2141
|
],
|
|
2142
2142
|
"suites": [],
|
|
2143
2143
|
"passes": [
|
|
2144
|
-
"
|
|
2144
|
+
"00310b17-923d-4e87-9925-e06b1eeab199"
|
|
2145
2145
|
],
|
|
2146
2146
|
"failures": [],
|
|
2147
2147
|
"pending": [],
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
"_timeout": 2000
|
|
2153
2153
|
},
|
|
2154
2154
|
{
|
|
2155
|
-
"uuid": "
|
|
2155
|
+
"uuid": "359b5325-ebd9-4ac8-bc03-b726ab4dc6dd",
|
|
2156
2156
|
"title": "home()",
|
|
2157
2157
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2158
2158
|
"file": "/test/device.ts",
|
|
@@ -2172,15 +2172,15 @@
|
|
|
2172
2172
|
"context": null,
|
|
2173
2173
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2174
2174
|
"err": {},
|
|
2175
|
-
"uuid": "
|
|
2176
|
-
"parentUUID": "
|
|
2175
|
+
"uuid": "803cefbb-0112-4b8b-81b6-8f9e1be6d432",
|
|
2176
|
+
"parentUUID": "359b5325-ebd9-4ac8-bc03-b726ab4dc6dd",
|
|
2177
2177
|
"isHook": false,
|
|
2178
2178
|
"skipped": false
|
|
2179
2179
|
}
|
|
2180
2180
|
],
|
|
2181
2181
|
"suites": [],
|
|
2182
2182
|
"passes": [
|
|
2183
|
-
"
|
|
2183
|
+
"803cefbb-0112-4b8b-81b6-8f9e1be6d432"
|
|
2184
2184
|
],
|
|
2185
2185
|
"failures": [],
|
|
2186
2186
|
"pending": [],
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
"_timeout": 2000
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
|
-
"uuid": "
|
|
2194
|
+
"uuid": "ee9611e6-e599-478c-897f-815e3f3ab4ce",
|
|
2195
2195
|
"title": "homeHold()",
|
|
2196
2196
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2197
2197
|
"file": "/test/device.ts",
|
|
@@ -2211,15 +2211,15 @@
|
|
|
2211
2211
|
"context": null,
|
|
2212
2212
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2213
2213
|
"err": {},
|
|
2214
|
-
"uuid": "
|
|
2215
|
-
"parentUUID": "
|
|
2214
|
+
"uuid": "d67df1d3-6ad2-48a6-a15d-858e9db21b19",
|
|
2215
|
+
"parentUUID": "ee9611e6-e599-478c-897f-815e3f3ab4ce",
|
|
2216
2216
|
"isHook": false,
|
|
2217
2217
|
"skipped": false
|
|
2218
2218
|
}
|
|
2219
2219
|
],
|
|
2220
2220
|
"suites": [],
|
|
2221
2221
|
"passes": [
|
|
2222
|
-
"
|
|
2222
|
+
"d67df1d3-6ad2-48a6-a15d-858e9db21b19"
|
|
2223
2223
|
],
|
|
2224
2224
|
"failures": [],
|
|
2225
2225
|
"pending": [],
|
|
@@ -2230,7 +2230,7 @@
|
|
|
2230
2230
|
"_timeout": 2000
|
|
2231
2231
|
},
|
|
2232
2232
|
{
|
|
2233
|
-
"uuid": "
|
|
2233
|
+
"uuid": "443b98f3-7e3f-46c4-bdba-009db4746223",
|
|
2234
2234
|
"title": "left()",
|
|
2235
2235
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2236
2236
|
"file": "/test/device.ts",
|
|
@@ -2250,15 +2250,15 @@
|
|
|
2250
2250
|
"context": null,
|
|
2251
2251
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2252
2252
|
"err": {},
|
|
2253
|
-
"uuid": "
|
|
2254
|
-
"parentUUID": "
|
|
2253
|
+
"uuid": "0d421acc-8888-43ff-a56f-5eab8596b979",
|
|
2254
|
+
"parentUUID": "443b98f3-7e3f-46c4-bdba-009db4746223",
|
|
2255
2255
|
"isHook": false,
|
|
2256
2256
|
"skipped": false
|
|
2257
2257
|
}
|
|
2258
2258
|
],
|
|
2259
2259
|
"suites": [],
|
|
2260
2260
|
"passes": [
|
|
2261
|
-
"
|
|
2261
|
+
"0d421acc-8888-43ff-a56f-5eab8596b979"
|
|
2262
2262
|
],
|
|
2263
2263
|
"failures": [],
|
|
2264
2264
|
"pending": [],
|
|
@@ -2269,7 +2269,7 @@
|
|
|
2269
2269
|
"_timeout": 2000
|
|
2270
2270
|
},
|
|
2271
2271
|
{
|
|
2272
|
-
"uuid": "
|
|
2272
|
+
"uuid": "7ac0de65-fd88-4bf4-9e7b-0e43f5a9a5be",
|
|
2273
2273
|
"title": "menu()",
|
|
2274
2274
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2275
2275
|
"file": "/test/device.ts",
|
|
@@ -2280,7 +2280,7 @@
|
|
|
2280
2280
|
"title": "should work",
|
|
2281
2281
|
"fullTitle": "NodePyATVDevice menu() should work",
|
|
2282
2282
|
"timedOut": false,
|
|
2283
|
-
"duration":
|
|
2283
|
+
"duration": 2,
|
|
2284
2284
|
"state": "passed",
|
|
2285
2285
|
"speed": "fast",
|
|
2286
2286
|
"pass": true,
|
|
@@ -2289,26 +2289,26 @@
|
|
|
2289
2289
|
"context": null,
|
|
2290
2290
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2291
2291
|
"err": {},
|
|
2292
|
-
"uuid": "
|
|
2293
|
-
"parentUUID": "
|
|
2292
|
+
"uuid": "b18430eb-4d5f-4346-87d1-5880498f9561",
|
|
2293
|
+
"parentUUID": "7ac0de65-fd88-4bf4-9e7b-0e43f5a9a5be",
|
|
2294
2294
|
"isHook": false,
|
|
2295
2295
|
"skipped": false
|
|
2296
2296
|
}
|
|
2297
2297
|
],
|
|
2298
2298
|
"suites": [],
|
|
2299
2299
|
"passes": [
|
|
2300
|
-
"
|
|
2300
|
+
"b18430eb-4d5f-4346-87d1-5880498f9561"
|
|
2301
2301
|
],
|
|
2302
2302
|
"failures": [],
|
|
2303
2303
|
"pending": [],
|
|
2304
2304
|
"skipped": [],
|
|
2305
|
-
"duration":
|
|
2305
|
+
"duration": 2,
|
|
2306
2306
|
"root": false,
|
|
2307
2307
|
"rootEmpty": false,
|
|
2308
2308
|
"_timeout": 2000
|
|
2309
2309
|
},
|
|
2310
2310
|
{
|
|
2311
|
-
"uuid": "
|
|
2311
|
+
"uuid": "6f00056c-d661-418d-ad80-723cb59b398f",
|
|
2312
2312
|
"title": "next()",
|
|
2313
2313
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2314
2314
|
"file": "/test/device.ts",
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
"title": "should work",
|
|
2320
2320
|
"fullTitle": "NodePyATVDevice next() should work",
|
|
2321
2321
|
"timedOut": false,
|
|
2322
|
-
"duration":
|
|
2322
|
+
"duration": 2,
|
|
2323
2323
|
"state": "passed",
|
|
2324
2324
|
"speed": "fast",
|
|
2325
2325
|
"pass": true,
|
|
@@ -2328,26 +2328,26 @@
|
|
|
2328
2328
|
"context": null,
|
|
2329
2329
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2330
2330
|
"err": {},
|
|
2331
|
-
"uuid": "
|
|
2332
|
-
"parentUUID": "
|
|
2331
|
+
"uuid": "6a83d64e-f0e4-4df9-9a50-a0a96194074e",
|
|
2332
|
+
"parentUUID": "6f00056c-d661-418d-ad80-723cb59b398f",
|
|
2333
2333
|
"isHook": false,
|
|
2334
2334
|
"skipped": false
|
|
2335
2335
|
}
|
|
2336
2336
|
],
|
|
2337
2337
|
"suites": [],
|
|
2338
2338
|
"passes": [
|
|
2339
|
-
"
|
|
2339
|
+
"6a83d64e-f0e4-4df9-9a50-a0a96194074e"
|
|
2340
2340
|
],
|
|
2341
2341
|
"failures": [],
|
|
2342
2342
|
"pending": [],
|
|
2343
2343
|
"skipped": [],
|
|
2344
|
-
"duration":
|
|
2344
|
+
"duration": 2,
|
|
2345
2345
|
"root": false,
|
|
2346
2346
|
"rootEmpty": false,
|
|
2347
2347
|
"_timeout": 2000
|
|
2348
2348
|
},
|
|
2349
2349
|
{
|
|
2350
|
-
"uuid": "
|
|
2350
|
+
"uuid": "dedb915c-c78a-47b0-b29a-c809f6e46997",
|
|
2351
2351
|
"title": "pause()",
|
|
2352
2352
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2353
2353
|
"file": "/test/device.ts",
|
|
@@ -2367,15 +2367,15 @@
|
|
|
2367
2367
|
"context": null,
|
|
2368
2368
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2369
2369
|
"err": {},
|
|
2370
|
-
"uuid": "
|
|
2371
|
-
"parentUUID": "
|
|
2370
|
+
"uuid": "e546f118-e3fd-4dc3-8055-3a030b7ca6ef",
|
|
2371
|
+
"parentUUID": "dedb915c-c78a-47b0-b29a-c809f6e46997",
|
|
2372
2372
|
"isHook": false,
|
|
2373
2373
|
"skipped": false
|
|
2374
2374
|
}
|
|
2375
2375
|
],
|
|
2376
2376
|
"suites": [],
|
|
2377
2377
|
"passes": [
|
|
2378
|
-
"
|
|
2378
|
+
"e546f118-e3fd-4dc3-8055-3a030b7ca6ef"
|
|
2379
2379
|
],
|
|
2380
2380
|
"failures": [],
|
|
2381
2381
|
"pending": [],
|
|
@@ -2386,7 +2386,7 @@
|
|
|
2386
2386
|
"_timeout": 2000
|
|
2387
2387
|
},
|
|
2388
2388
|
{
|
|
2389
|
-
"uuid": "
|
|
2389
|
+
"uuid": "a2e99e75-a810-432e-818d-306c12c609c4",
|
|
2390
2390
|
"title": "play()",
|
|
2391
2391
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2392
2392
|
"file": "/test/device.ts",
|
|
@@ -2406,15 +2406,15 @@
|
|
|
2406
2406
|
"context": null,
|
|
2407
2407
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2408
2408
|
"err": {},
|
|
2409
|
-
"uuid": "
|
|
2410
|
-
"parentUUID": "
|
|
2409
|
+
"uuid": "c4050293-2504-43d0-9047-e35f79a18e29",
|
|
2410
|
+
"parentUUID": "a2e99e75-a810-432e-818d-306c12c609c4",
|
|
2411
2411
|
"isHook": false,
|
|
2412
2412
|
"skipped": false
|
|
2413
2413
|
}
|
|
2414
2414
|
],
|
|
2415
2415
|
"suites": [],
|
|
2416
2416
|
"passes": [
|
|
2417
|
-
"
|
|
2417
|
+
"c4050293-2504-43d0-9047-e35f79a18e29"
|
|
2418
2418
|
],
|
|
2419
2419
|
"failures": [],
|
|
2420
2420
|
"pending": [],
|
|
@@ -2425,7 +2425,7 @@
|
|
|
2425
2425
|
"_timeout": 2000
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
2428
|
-
"uuid": "
|
|
2428
|
+
"uuid": "c687dbae-9863-45a6-9f78-a3362080ca68",
|
|
2429
2429
|
"title": "playPause()",
|
|
2430
2430
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2431
2431
|
"file": "/test/device.ts",
|
|
@@ -2445,15 +2445,15 @@
|
|
|
2445
2445
|
"context": null,
|
|
2446
2446
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2447
2447
|
"err": {},
|
|
2448
|
-
"uuid": "
|
|
2449
|
-
"parentUUID": "
|
|
2448
|
+
"uuid": "33921b0f-a3e9-4bdb-a53e-920530a3ef57",
|
|
2449
|
+
"parentUUID": "c687dbae-9863-45a6-9f78-a3362080ca68",
|
|
2450
2450
|
"isHook": false,
|
|
2451
2451
|
"skipped": false
|
|
2452
2452
|
}
|
|
2453
2453
|
],
|
|
2454
2454
|
"suites": [],
|
|
2455
2455
|
"passes": [
|
|
2456
|
-
"
|
|
2456
|
+
"33921b0f-a3e9-4bdb-a53e-920530a3ef57"
|
|
2457
2457
|
],
|
|
2458
2458
|
"failures": [],
|
|
2459
2459
|
"pending": [],
|
|
@@ -2464,7 +2464,7 @@
|
|
|
2464
2464
|
"_timeout": 2000
|
|
2465
2465
|
},
|
|
2466
2466
|
{
|
|
2467
|
-
"uuid": "
|
|
2467
|
+
"uuid": "20358098-c960-4c84-b575-57f746aa0b3e",
|
|
2468
2468
|
"title": "previous()",
|
|
2469
2469
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2470
2470
|
"file": "/test/device.ts",
|
|
@@ -2475,7 +2475,7 @@
|
|
|
2475
2475
|
"title": "should work",
|
|
2476
2476
|
"fullTitle": "NodePyATVDevice previous() should work",
|
|
2477
2477
|
"timedOut": false,
|
|
2478
|
-
"duration":
|
|
2478
|
+
"duration": 2,
|
|
2479
2479
|
"state": "passed",
|
|
2480
2480
|
"speed": "fast",
|
|
2481
2481
|
"pass": true,
|
|
@@ -2484,26 +2484,26 @@
|
|
|
2484
2484
|
"context": null,
|
|
2485
2485
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2486
2486
|
"err": {},
|
|
2487
|
-
"uuid": "
|
|
2488
|
-
"parentUUID": "
|
|
2487
|
+
"uuid": "8adfe18c-1315-434e-b092-bc837c5c0e09",
|
|
2488
|
+
"parentUUID": "20358098-c960-4c84-b575-57f746aa0b3e",
|
|
2489
2489
|
"isHook": false,
|
|
2490
2490
|
"skipped": false
|
|
2491
2491
|
}
|
|
2492
2492
|
],
|
|
2493
2493
|
"suites": [],
|
|
2494
2494
|
"passes": [
|
|
2495
|
-
"
|
|
2495
|
+
"8adfe18c-1315-434e-b092-bc837c5c0e09"
|
|
2496
2496
|
],
|
|
2497
2497
|
"failures": [],
|
|
2498
2498
|
"pending": [],
|
|
2499
2499
|
"skipped": [],
|
|
2500
|
-
"duration":
|
|
2500
|
+
"duration": 2,
|
|
2501
2501
|
"root": false,
|
|
2502
2502
|
"rootEmpty": false,
|
|
2503
2503
|
"_timeout": 2000
|
|
2504
2504
|
},
|
|
2505
2505
|
{
|
|
2506
|
-
"uuid": "
|
|
2506
|
+
"uuid": "d2ec459f-ec9d-42d0-8bb4-f0d778fe5676",
|
|
2507
2507
|
"title": "right()",
|
|
2508
2508
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2509
2509
|
"file": "/test/device.ts",
|
|
@@ -2523,15 +2523,15 @@
|
|
|
2523
2523
|
"context": null,
|
|
2524
2524
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2525
2525
|
"err": {},
|
|
2526
|
-
"uuid": "
|
|
2527
|
-
"parentUUID": "
|
|
2526
|
+
"uuid": "44a678fc-3354-4f5e-b4f6-36640ca57e05",
|
|
2527
|
+
"parentUUID": "d2ec459f-ec9d-42d0-8bb4-f0d778fe5676",
|
|
2528
2528
|
"isHook": false,
|
|
2529
2529
|
"skipped": false
|
|
2530
2530
|
}
|
|
2531
2531
|
],
|
|
2532
2532
|
"suites": [],
|
|
2533
2533
|
"passes": [
|
|
2534
|
-
"
|
|
2534
|
+
"44a678fc-3354-4f5e-b4f6-36640ca57e05"
|
|
2535
2535
|
],
|
|
2536
2536
|
"failures": [],
|
|
2537
2537
|
"pending": [],
|
|
@@ -2542,7 +2542,7 @@
|
|
|
2542
2542
|
"_timeout": 2000
|
|
2543
2543
|
},
|
|
2544
2544
|
{
|
|
2545
|
-
"uuid": "
|
|
2545
|
+
"uuid": "c5446ded-e257-40e7-b488-eff38a6a0c34",
|
|
2546
2546
|
"title": "select()",
|
|
2547
2547
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2548
2548
|
"file": "/test/device.ts",
|
|
@@ -2562,15 +2562,15 @@
|
|
|
2562
2562
|
"context": null,
|
|
2563
2563
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2564
2564
|
"err": {},
|
|
2565
|
-
"uuid": "
|
|
2566
|
-
"parentUUID": "
|
|
2565
|
+
"uuid": "3d288a65-202c-4a4a-bab2-30d5d4b67ba4",
|
|
2566
|
+
"parentUUID": "c5446ded-e257-40e7-b488-eff38a6a0c34",
|
|
2567
2567
|
"isHook": false,
|
|
2568
2568
|
"skipped": false
|
|
2569
2569
|
}
|
|
2570
2570
|
],
|
|
2571
2571
|
"suites": [],
|
|
2572
2572
|
"passes": [
|
|
2573
|
-
"
|
|
2573
|
+
"3d288a65-202c-4a4a-bab2-30d5d4b67ba4"
|
|
2574
2574
|
],
|
|
2575
2575
|
"failures": [],
|
|
2576
2576
|
"pending": [],
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
"_timeout": 2000
|
|
2582
2582
|
},
|
|
2583
2583
|
{
|
|
2584
|
-
"uuid": "
|
|
2584
|
+
"uuid": "9ea2a2e2-90fa-4323-8e65-26305a092fbf",
|
|
2585
2585
|
"title": "skipBackward()",
|
|
2586
2586
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2587
2587
|
"file": "/test/device.ts",
|
|
@@ -2592,7 +2592,7 @@
|
|
|
2592
2592
|
"title": "should work",
|
|
2593
2593
|
"fullTitle": "NodePyATVDevice skipBackward() should work",
|
|
2594
2594
|
"timedOut": false,
|
|
2595
|
-
"duration":
|
|
2595
|
+
"duration": 1,
|
|
2596
2596
|
"state": "passed",
|
|
2597
2597
|
"speed": "fast",
|
|
2598
2598
|
"pass": true,
|
|
@@ -2601,26 +2601,26 @@
|
|
|
2601
2601
|
"context": null,
|
|
2602
2602
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2603
2603
|
"err": {},
|
|
2604
|
-
"uuid": "
|
|
2605
|
-
"parentUUID": "
|
|
2604
|
+
"uuid": "268a6024-8a54-44f2-ac68-7598606fb12b",
|
|
2605
|
+
"parentUUID": "9ea2a2e2-90fa-4323-8e65-26305a092fbf",
|
|
2606
2606
|
"isHook": false,
|
|
2607
2607
|
"skipped": false
|
|
2608
2608
|
}
|
|
2609
2609
|
],
|
|
2610
2610
|
"suites": [],
|
|
2611
2611
|
"passes": [
|
|
2612
|
-
"
|
|
2612
|
+
"268a6024-8a54-44f2-ac68-7598606fb12b"
|
|
2613
2613
|
],
|
|
2614
2614
|
"failures": [],
|
|
2615
2615
|
"pending": [],
|
|
2616
2616
|
"skipped": [],
|
|
2617
|
-
"duration":
|
|
2617
|
+
"duration": 1,
|
|
2618
2618
|
"root": false,
|
|
2619
2619
|
"rootEmpty": false,
|
|
2620
2620
|
"_timeout": 2000
|
|
2621
2621
|
},
|
|
2622
2622
|
{
|
|
2623
|
-
"uuid": "
|
|
2623
|
+
"uuid": "8b498fb7-0d68-4571-8521-64d5ec0c8470",
|
|
2624
2624
|
"title": "skipForward()",
|
|
2625
2625
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2626
2626
|
"file": "/test/device.ts",
|
|
@@ -2631,7 +2631,7 @@
|
|
|
2631
2631
|
"title": "should work",
|
|
2632
2632
|
"fullTitle": "NodePyATVDevice skipForward() should work",
|
|
2633
2633
|
"timedOut": false,
|
|
2634
|
-
"duration":
|
|
2634
|
+
"duration": 1,
|
|
2635
2635
|
"state": "passed",
|
|
2636
2636
|
"speed": "fast",
|
|
2637
2637
|
"pass": true,
|
|
@@ -2640,26 +2640,26 @@
|
|
|
2640
2640
|
"context": null,
|
|
2641
2641
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2642
2642
|
"err": {},
|
|
2643
|
-
"uuid": "
|
|
2644
|
-
"parentUUID": "
|
|
2643
|
+
"uuid": "9e804236-9500-4b10-889c-b15739fccf51",
|
|
2644
|
+
"parentUUID": "8b498fb7-0d68-4571-8521-64d5ec0c8470",
|
|
2645
2645
|
"isHook": false,
|
|
2646
2646
|
"skipped": false
|
|
2647
2647
|
}
|
|
2648
2648
|
],
|
|
2649
2649
|
"suites": [],
|
|
2650
2650
|
"passes": [
|
|
2651
|
-
"
|
|
2651
|
+
"9e804236-9500-4b10-889c-b15739fccf51"
|
|
2652
2652
|
],
|
|
2653
2653
|
"failures": [],
|
|
2654
2654
|
"pending": [],
|
|
2655
2655
|
"skipped": [],
|
|
2656
|
-
"duration":
|
|
2656
|
+
"duration": 1,
|
|
2657
2657
|
"root": false,
|
|
2658
2658
|
"rootEmpty": false,
|
|
2659
2659
|
"_timeout": 2000
|
|
2660
2660
|
},
|
|
2661
2661
|
{
|
|
2662
|
-
"uuid": "
|
|
2662
|
+
"uuid": "f4f00ea4-d6a0-4b28-90c9-8bc9d398c48d",
|
|
2663
2663
|
"title": "stop()",
|
|
2664
2664
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2665
2665
|
"file": "/test/device.ts",
|
|
@@ -2679,15 +2679,15 @@
|
|
|
2679
2679
|
"context": null,
|
|
2680
2680
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2681
2681
|
"err": {},
|
|
2682
|
-
"uuid": "
|
|
2683
|
-
"parentUUID": "
|
|
2682
|
+
"uuid": "fbaf3547-4bcd-44ff-93ce-12c927de0dd9",
|
|
2683
|
+
"parentUUID": "f4f00ea4-d6a0-4b28-90c9-8bc9d398c48d",
|
|
2684
2684
|
"isHook": false,
|
|
2685
2685
|
"skipped": false
|
|
2686
2686
|
}
|
|
2687
2687
|
],
|
|
2688
2688
|
"suites": [],
|
|
2689
2689
|
"passes": [
|
|
2690
|
-
"
|
|
2690
|
+
"fbaf3547-4bcd-44ff-93ce-12c927de0dd9"
|
|
2691
2691
|
],
|
|
2692
2692
|
"failures": [],
|
|
2693
2693
|
"pending": [],
|
|
@@ -2698,7 +2698,7 @@
|
|
|
2698
2698
|
"_timeout": 2000
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
2701
|
-
"uuid": "
|
|
2701
|
+
"uuid": "36e3de2e-86e0-4715-8f94-e05b16bdd551",
|
|
2702
2702
|
"title": "suspend()",
|
|
2703
2703
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2704
2704
|
"file": "/test/device.ts",
|
|
@@ -2718,15 +2718,15 @@
|
|
|
2718
2718
|
"context": null,
|
|
2719
2719
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2720
2720
|
"err": {},
|
|
2721
|
-
"uuid": "
|
|
2722
|
-
"parentUUID": "
|
|
2721
|
+
"uuid": "044703a3-755d-46ff-891f-bcaca61c351b",
|
|
2722
|
+
"parentUUID": "36e3de2e-86e0-4715-8f94-e05b16bdd551",
|
|
2723
2723
|
"isHook": false,
|
|
2724
2724
|
"skipped": false
|
|
2725
2725
|
}
|
|
2726
2726
|
],
|
|
2727
2727
|
"suites": [],
|
|
2728
2728
|
"passes": [
|
|
2729
|
-
"
|
|
2729
|
+
"044703a3-755d-46ff-891f-bcaca61c351b"
|
|
2730
2730
|
],
|
|
2731
2731
|
"failures": [],
|
|
2732
2732
|
"pending": [],
|
|
@@ -2737,7 +2737,7 @@
|
|
|
2737
2737
|
"_timeout": 2000
|
|
2738
2738
|
},
|
|
2739
2739
|
{
|
|
2740
|
-
"uuid": "
|
|
2740
|
+
"uuid": "3bedd647-49f7-4838-897e-e741e0f34b17",
|
|
2741
2741
|
"title": "topMenu()",
|
|
2742
2742
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2743
2743
|
"file": "/test/device.ts",
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
"title": "should work",
|
|
2749
2749
|
"fullTitle": "NodePyATVDevice topMenu() should work",
|
|
2750
2750
|
"timedOut": false,
|
|
2751
|
-
"duration":
|
|
2751
|
+
"duration": 1,
|
|
2752
2752
|
"state": "passed",
|
|
2753
2753
|
"speed": "fast",
|
|
2754
2754
|
"pass": true,
|
|
@@ -2757,26 +2757,26 @@
|
|
|
2757
2757
|
"context": null,
|
|
2758
2758
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2759
2759
|
"err": {},
|
|
2760
|
-
"uuid": "
|
|
2761
|
-
"parentUUID": "
|
|
2760
|
+
"uuid": "7ef5d2bf-6801-41d8-8e6e-092ad3329f8c",
|
|
2761
|
+
"parentUUID": "3bedd647-49f7-4838-897e-e741e0f34b17",
|
|
2762
2762
|
"isHook": false,
|
|
2763
2763
|
"skipped": false
|
|
2764
2764
|
}
|
|
2765
2765
|
],
|
|
2766
2766
|
"suites": [],
|
|
2767
2767
|
"passes": [
|
|
2768
|
-
"
|
|
2768
|
+
"7ef5d2bf-6801-41d8-8e6e-092ad3329f8c"
|
|
2769
2769
|
],
|
|
2770
2770
|
"failures": [],
|
|
2771
2771
|
"pending": [],
|
|
2772
2772
|
"skipped": [],
|
|
2773
|
-
"duration":
|
|
2773
|
+
"duration": 1,
|
|
2774
2774
|
"root": false,
|
|
2775
2775
|
"rootEmpty": false,
|
|
2776
2776
|
"_timeout": 2000
|
|
2777
2777
|
},
|
|
2778
2778
|
{
|
|
2779
|
-
"uuid": "
|
|
2779
|
+
"uuid": "bf86354e-e3f5-40a7-8ab2-4d22820b7872",
|
|
2780
2780
|
"title": "up()",
|
|
2781
2781
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2782
2782
|
"file": "/test/device.ts",
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
"title": "should work",
|
|
2788
2788
|
"fullTitle": "NodePyATVDevice up() should work",
|
|
2789
2789
|
"timedOut": false,
|
|
2790
|
-
"duration":
|
|
2790
|
+
"duration": 2,
|
|
2791
2791
|
"state": "passed",
|
|
2792
2792
|
"speed": "fast",
|
|
2793
2793
|
"pass": true,
|
|
@@ -2796,26 +2796,26 @@
|
|
|
2796
2796
|
"context": null,
|
|
2797
2797
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2798
2798
|
"err": {},
|
|
2799
|
-
"uuid": "
|
|
2800
|
-
"parentUUID": "
|
|
2799
|
+
"uuid": "721cd841-f353-468b-89a3-c3454e249376",
|
|
2800
|
+
"parentUUID": "bf86354e-e3f5-40a7-8ab2-4d22820b7872",
|
|
2801
2801
|
"isHook": false,
|
|
2802
2802
|
"skipped": false
|
|
2803
2803
|
}
|
|
2804
2804
|
],
|
|
2805
2805
|
"suites": [],
|
|
2806
2806
|
"passes": [
|
|
2807
|
-
"
|
|
2807
|
+
"721cd841-f353-468b-89a3-c3454e249376"
|
|
2808
2808
|
],
|
|
2809
2809
|
"failures": [],
|
|
2810
2810
|
"pending": [],
|
|
2811
2811
|
"skipped": [],
|
|
2812
|
-
"duration":
|
|
2812
|
+
"duration": 2,
|
|
2813
2813
|
"root": false,
|
|
2814
2814
|
"rootEmpty": false,
|
|
2815
2815
|
"_timeout": 2000
|
|
2816
2816
|
},
|
|
2817
2817
|
{
|
|
2818
|
-
"uuid": "
|
|
2818
|
+
"uuid": "20ef1110-7e36-4ab7-9f7f-f2821b8069c0",
|
|
2819
2819
|
"title": "volumeDown()",
|
|
2820
2820
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2821
2821
|
"file": "/test/device.ts",
|
|
@@ -2826,7 +2826,7 @@
|
|
|
2826
2826
|
"title": "should work",
|
|
2827
2827
|
"fullTitle": "NodePyATVDevice volumeDown() should work",
|
|
2828
2828
|
"timedOut": false,
|
|
2829
|
-
"duration":
|
|
2829
|
+
"duration": 2,
|
|
2830
2830
|
"state": "passed",
|
|
2831
2831
|
"speed": "fast",
|
|
2832
2832
|
"pass": true,
|
|
@@ -2835,26 +2835,26 @@
|
|
|
2835
2835
|
"context": null,
|
|
2836
2836
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2837
2837
|
"err": {},
|
|
2838
|
-
"uuid": "
|
|
2839
|
-
"parentUUID": "
|
|
2838
|
+
"uuid": "7e75826f-8b0c-48c5-b345-5e1e0d6f514e",
|
|
2839
|
+
"parentUUID": "20ef1110-7e36-4ab7-9f7f-f2821b8069c0",
|
|
2840
2840
|
"isHook": false,
|
|
2841
2841
|
"skipped": false
|
|
2842
2842
|
}
|
|
2843
2843
|
],
|
|
2844
2844
|
"suites": [],
|
|
2845
2845
|
"passes": [
|
|
2846
|
-
"
|
|
2846
|
+
"7e75826f-8b0c-48c5-b345-5e1e0d6f514e"
|
|
2847
2847
|
],
|
|
2848
2848
|
"failures": [],
|
|
2849
2849
|
"pending": [],
|
|
2850
2850
|
"skipped": [],
|
|
2851
|
-
"duration":
|
|
2851
|
+
"duration": 2,
|
|
2852
2852
|
"root": false,
|
|
2853
2853
|
"rootEmpty": false,
|
|
2854
2854
|
"_timeout": 2000
|
|
2855
2855
|
},
|
|
2856
2856
|
{
|
|
2857
|
-
"uuid": "
|
|
2857
|
+
"uuid": "9aa5b4dc-3b45-4852-885d-3c90f35b000d",
|
|
2858
2858
|
"title": "volumeUp()",
|
|
2859
2859
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2860
2860
|
"file": "/test/device.ts",
|
|
@@ -2874,15 +2874,15 @@
|
|
|
2874
2874
|
"context": null,
|
|
2875
2875
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2876
2876
|
"err": {},
|
|
2877
|
-
"uuid": "
|
|
2878
|
-
"parentUUID": "
|
|
2877
|
+
"uuid": "34d1acbe-a84e-4a49-9a92-9d4e0ed02287",
|
|
2878
|
+
"parentUUID": "9aa5b4dc-3b45-4852-885d-3c90f35b000d",
|
|
2879
2879
|
"isHook": false,
|
|
2880
2880
|
"skipped": false
|
|
2881
2881
|
}
|
|
2882
2882
|
],
|
|
2883
2883
|
"suites": [],
|
|
2884
2884
|
"passes": [
|
|
2885
|
-
"
|
|
2885
|
+
"34d1acbe-a84e-4a49-9a92-9d4e0ed02287"
|
|
2886
2886
|
],
|
|
2887
2887
|
"failures": [],
|
|
2888
2888
|
"pending": [],
|
|
@@ -2893,7 +2893,7 @@
|
|
|
2893
2893
|
"_timeout": 2000
|
|
2894
2894
|
},
|
|
2895
2895
|
{
|
|
2896
|
-
"uuid": "
|
|
2896
|
+
"uuid": "bb5f0dfa-3390-41a5-a136-3e8b82f1e8be",
|
|
2897
2897
|
"title": "wakeup()",
|
|
2898
2898
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2899
2899
|
"file": "/test/device.ts",
|
|
@@ -2913,15 +2913,93 @@
|
|
|
2913
2913
|
"context": null,
|
|
2914
2914
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2915
2915
|
"err": {},
|
|
2916
|
-
"uuid": "
|
|
2917
|
-
"parentUUID": "
|
|
2916
|
+
"uuid": "ee57af3d-0c16-44ca-b995-9f5540958223",
|
|
2917
|
+
"parentUUID": "bb5f0dfa-3390-41a5-a136-3e8b82f1e8be",
|
|
2918
|
+
"isHook": false,
|
|
2919
|
+
"skipped": false
|
|
2920
|
+
}
|
|
2921
|
+
],
|
|
2922
|
+
"suites": [],
|
|
2923
|
+
"passes": [
|
|
2924
|
+
"ee57af3d-0c16-44ca-b995-9f5540958223"
|
|
2925
|
+
],
|
|
2926
|
+
"failures": [],
|
|
2927
|
+
"pending": [],
|
|
2928
|
+
"skipped": [],
|
|
2929
|
+
"duration": 1,
|
|
2930
|
+
"root": false,
|
|
2931
|
+
"rootEmpty": false,
|
|
2932
|
+
"_timeout": 2000
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"uuid": "61e9b7db-2ca7-46cb-8f74-1125a2aa4daf",
|
|
2936
|
+
"title": "turnOff()",
|
|
2937
|
+
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2938
|
+
"file": "/test/device.ts",
|
|
2939
|
+
"beforeHooks": [],
|
|
2940
|
+
"afterHooks": [],
|
|
2941
|
+
"tests": [
|
|
2942
|
+
{
|
|
2943
|
+
"title": "should work",
|
|
2944
|
+
"fullTitle": "NodePyATVDevice turnOff() should work",
|
|
2945
|
+
"timedOut": false,
|
|
2946
|
+
"duration": 1,
|
|
2947
|
+
"state": "passed",
|
|
2948
|
+
"speed": "fast",
|
|
2949
|
+
"pass": true,
|
|
2950
|
+
"fail": false,
|
|
2951
|
+
"pending": false,
|
|
2952
|
+
"context": null,
|
|
2953
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2954
|
+
"err": {},
|
|
2955
|
+
"uuid": "4b94e4d8-8e5f-4cb5-84ff-3d4e8cee8faa",
|
|
2956
|
+
"parentUUID": "61e9b7db-2ca7-46cb-8f74-1125a2aa4daf",
|
|
2957
|
+
"isHook": false,
|
|
2958
|
+
"skipped": false
|
|
2959
|
+
}
|
|
2960
|
+
],
|
|
2961
|
+
"suites": [],
|
|
2962
|
+
"passes": [
|
|
2963
|
+
"4b94e4d8-8e5f-4cb5-84ff-3d4e8cee8faa"
|
|
2964
|
+
],
|
|
2965
|
+
"failures": [],
|
|
2966
|
+
"pending": [],
|
|
2967
|
+
"skipped": [],
|
|
2968
|
+
"duration": 1,
|
|
2969
|
+
"root": false,
|
|
2970
|
+
"rootEmpty": false,
|
|
2971
|
+
"_timeout": 2000
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
"uuid": "7c036a88-47d1-4194-b315-f40380c74116",
|
|
2975
|
+
"title": "turnOn()",
|
|
2976
|
+
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2977
|
+
"file": "/test/device.ts",
|
|
2978
|
+
"beforeHooks": [],
|
|
2979
|
+
"afterHooks": [],
|
|
2980
|
+
"tests": [
|
|
2981
|
+
{
|
|
2982
|
+
"title": "should work",
|
|
2983
|
+
"fullTitle": "NodePyATVDevice turnOn() should work",
|
|
2984
|
+
"timedOut": false,
|
|
2985
|
+
"duration": 1,
|
|
2986
|
+
"state": "passed",
|
|
2987
|
+
"speed": "fast",
|
|
2988
|
+
"pass": true,
|
|
2989
|
+
"fail": false,
|
|
2990
|
+
"pending": false,
|
|
2991
|
+
"context": null,
|
|
2992
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2993
|
+
"err": {},
|
|
2994
|
+
"uuid": "74a08ab7-5aa0-4bae-9751-f4151bbfd0c7",
|
|
2995
|
+
"parentUUID": "7c036a88-47d1-4194-b315-f40380c74116",
|
|
2918
2996
|
"isHook": false,
|
|
2919
2997
|
"skipped": false
|
|
2920
2998
|
}
|
|
2921
2999
|
],
|
|
2922
3000
|
"suites": [],
|
|
2923
3001
|
"passes": [
|
|
2924
|
-
"
|
|
3002
|
+
"74a08ab7-5aa0-4bae-9751-f4151bbfd0c7"
|
|
2925
3003
|
],
|
|
2926
3004
|
"failures": [],
|
|
2927
3005
|
"pending": [],
|
|
@@ -2942,7 +3020,7 @@
|
|
|
2942
3020
|
"_timeout": 2000
|
|
2943
3021
|
},
|
|
2944
3022
|
{
|
|
2945
|
-
"uuid": "
|
|
3023
|
+
"uuid": "8df7f529-80e3-4370-bf75-8d28586a0ad7",
|
|
2946
3024
|
"title": "NodePyATVInstance",
|
|
2947
3025
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2948
3026
|
"file": "/test/instance.ts",
|
|
@@ -2951,7 +3029,7 @@
|
|
|
2951
3029
|
"tests": [],
|
|
2952
3030
|
"suites": [
|
|
2953
3031
|
{
|
|
2954
|
-
"uuid": "
|
|
3032
|
+
"uuid": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
2955
3033
|
"title": "static version()",
|
|
2956
3034
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2957
3035
|
"file": "/test/instance.ts",
|
|
@@ -2962,7 +3040,7 @@
|
|
|
2962
3040
|
"title": "should work with pyatv [L]",
|
|
2963
3041
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
2964
3042
|
"timedOut": false,
|
|
2965
|
-
"duration":
|
|
3043
|
+
"duration": 521,
|
|
2966
3044
|
"state": "passed",
|
|
2967
3045
|
"speed": "slow",
|
|
2968
3046
|
"pass": true,
|
|
@@ -2971,8 +3049,8 @@
|
|
|
2971
3049
|
"context": null,
|
|
2972
3050
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield index_1.default.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert_1.default.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert_1.default.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
2973
3051
|
"err": {},
|
|
2974
|
-
"uuid": "
|
|
2975
|
-
"parentUUID": "
|
|
3052
|
+
"uuid": "6bf45276-4a5a-4837-89b2-de235e307e19",
|
|
3053
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
2976
3054
|
"isHook": false,
|
|
2977
3055
|
"skipped": false
|
|
2978
3056
|
},
|
|
@@ -2980,7 +3058,7 @@
|
|
|
2980
3058
|
"title": "should return the pyatv version",
|
|
2981
3059
|
"fullTitle": "NodePyATVInstance static version() should return the pyatv version",
|
|
2982
3060
|
"timedOut": false,
|
|
2983
|
-
"duration":
|
|
3061
|
+
"duration": 1,
|
|
2984
3062
|
"state": "passed",
|
|
2985
3063
|
"speed": "fast",
|
|
2986
3064
|
"pass": true,
|
|
@@ -2989,8 +3067,8 @@
|
|
|
2989
3067
|
"context": null,
|
|
2990
3068
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert_1.default.ok(result.pyatv);\n assert_1.default.strictEqual(result.pyatv, '0.7.4');\n});",
|
|
2991
3069
|
"err": {},
|
|
2992
|
-
"uuid": "
|
|
2993
|
-
"parentUUID": "
|
|
3070
|
+
"uuid": "1dd0a8c4-0728-4f10-97f0-b3802d665dbe",
|
|
3071
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
2994
3072
|
"isHook": false,
|
|
2995
3073
|
"skipped": false
|
|
2996
3074
|
},
|
|
@@ -2998,7 +3076,7 @@
|
|
|
2998
3076
|
"title": "should return the module version",
|
|
2999
3077
|
"fullTitle": "NodePyATVInstance static version() should return the module version",
|
|
3000
3078
|
"timedOut": false,
|
|
3001
|
-
"duration":
|
|
3079
|
+
"duration": 1,
|
|
3002
3080
|
"state": "passed",
|
|
3003
3081
|
"speed": "fast",
|
|
3004
3082
|
"pass": true,
|
|
@@ -3007,8 +3085,8 @@
|
|
|
3007
3085
|
"context": null,
|
|
3008
3086
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
3009
3087
|
"err": {},
|
|
3010
|
-
"uuid": "
|
|
3011
|
-
"parentUUID": "
|
|
3088
|
+
"uuid": "6d31029a-55da-4814-b57f-b6ec93840292",
|
|
3089
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3012
3090
|
"isHook": false,
|
|
3013
3091
|
"skipped": false
|
|
3014
3092
|
},
|
|
@@ -3025,8 +3103,8 @@
|
|
|
3025
3103
|
"context": null,
|
|
3026
3104
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n atvremotePath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
|
|
3027
3105
|
"err": {},
|
|
3028
|
-
"uuid": "
|
|
3029
|
-
"parentUUID": "
|
|
3106
|
+
"uuid": "72383479-dfe9-4b7c-a01e-0ec9b9b13c6d",
|
|
3107
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3030
3108
|
"isHook": false,
|
|
3031
3109
|
"skipped": false
|
|
3032
3110
|
},
|
|
@@ -3034,7 +3112,7 @@
|
|
|
3034
3112
|
"title": "should work with option.debug = true",
|
|
3035
3113
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
3036
3114
|
"timedOut": false,
|
|
3037
|
-
"duration":
|
|
3115
|
+
"duration": 1,
|
|
3038
3116
|
"state": "passed",
|
|
3039
3117
|
"speed": "fast",
|
|
3040
3118
|
"pass": true,
|
|
@@ -3043,8 +3121,8 @@
|
|
|
3043
3121
|
"context": null,
|
|
3044
3122
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3045
3123
|
"err": {},
|
|
3046
|
-
"uuid": "
|
|
3047
|
-
"parentUUID": "
|
|
3124
|
+
"uuid": "638bde77-646c-4b6a-bff7-225590fae5e3",
|
|
3125
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3048
3126
|
"isHook": false,
|
|
3049
3127
|
"skipped": false
|
|
3050
3128
|
},
|
|
@@ -3061,8 +3139,8 @@
|
|
|
3061
3139
|
"context": null,
|
|
3062
3140
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: () => { },\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3063
3141
|
"err": {},
|
|
3064
|
-
"uuid": "
|
|
3065
|
-
"parentUUID": "
|
|
3142
|
+
"uuid": "6fbcf6ba-fe77-401f-becf-5d4f09222022",
|
|
3143
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3066
3144
|
"isHook": false,
|
|
3067
3145
|
"skipped": false
|
|
3068
3146
|
},
|
|
@@ -3070,7 +3148,7 @@
|
|
|
3070
3148
|
"title": "should return null on pyatv stderr output",
|
|
3071
3149
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv stderr output",
|
|
3072
3150
|
"timedOut": false,
|
|
3073
|
-
"duration":
|
|
3151
|
+
"duration": 2,
|
|
3074
3152
|
"state": "passed",
|
|
3075
3153
|
"speed": "fast",
|
|
3076
3154
|
"pass": true,
|
|
@@ -3079,8 +3157,8 @@
|
|
|
3079
3157
|
"context": null,
|
|
3080
3158
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3081
3159
|
"err": {},
|
|
3082
|
-
"uuid": "
|
|
3083
|
-
"parentUUID": "
|
|
3160
|
+
"uuid": "abb01f48-8335-43c1-9903-69f0a52c6517",
|
|
3161
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3084
3162
|
"isHook": false,
|
|
3085
3163
|
"skipped": false
|
|
3086
3164
|
},
|
|
@@ -3088,7 +3166,7 @@
|
|
|
3088
3166
|
"title": "should return null on pyatv error",
|
|
3089
3167
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv error",
|
|
3090
3168
|
"timedOut": false,
|
|
3091
|
-
"duration":
|
|
3169
|
+
"duration": 1,
|
|
3092
3170
|
"state": "passed",
|
|
3093
3171
|
"speed": "fast",
|
|
3094
3172
|
"pass": true,
|
|
@@ -3097,8 +3175,8 @@
|
|
|
3097
3175
|
"context": null,
|
|
3098
3176
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3099
3177
|
"err": {},
|
|
3100
|
-
"uuid": "
|
|
3101
|
-
"parentUUID": "
|
|
3178
|
+
"uuid": "f317e0e0-6653-4393-93d1-548a87863a30",
|
|
3179
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3102
3180
|
"isHook": false,
|
|
3103
3181
|
"skipped": false
|
|
3104
3182
|
},
|
|
@@ -3106,7 +3184,7 @@
|
|
|
3106
3184
|
"title": "should return null on invalid pyatv version",
|
|
3107
3185
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid pyatv version",
|
|
3108
3186
|
"timedOut": false,
|
|
3109
|
-
"duration":
|
|
3187
|
+
"duration": 1,
|
|
3110
3188
|
"state": "passed",
|
|
3111
3189
|
"speed": "fast",
|
|
3112
3190
|
"pass": true,
|
|
@@ -3115,8 +3193,8 @@
|
|
|
3115
3193
|
"context": null,
|
|
3116
3194
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3117
3195
|
"err": {},
|
|
3118
|
-
"uuid": "
|
|
3119
|
-
"parentUUID": "
|
|
3196
|
+
"uuid": "6a000b6a-6051-426c-84e7-5a780342372a",
|
|
3197
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3120
3198
|
"isHook": false,
|
|
3121
3199
|
"skipped": false
|
|
3122
3200
|
},
|
|
@@ -3124,7 +3202,7 @@
|
|
|
3124
3202
|
"title": "should return null on empty module version",
|
|
3125
3203
|
"fullTitle": "NodePyATVInstance static version() should return null on empty module version",
|
|
3126
3204
|
"timedOut": false,
|
|
3127
|
-
"duration":
|
|
3205
|
+
"duration": 1,
|
|
3128
3206
|
"state": "passed",
|
|
3129
3207
|
"speed": "fast",
|
|
3130
3208
|
"pass": true,
|
|
@@ -3133,8 +3211,8 @@
|
|
|
3133
3211
|
"context": null,
|
|
3134
3212
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = {};\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3135
3213
|
"err": {},
|
|
3136
|
-
"uuid": "
|
|
3137
|
-
"parentUUID": "
|
|
3214
|
+
"uuid": "d68e225a-0a04-40a3-a98d-18a967769ab6",
|
|
3215
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3138
3216
|
"isHook": false,
|
|
3139
3217
|
"skipped": false
|
|
3140
3218
|
},
|
|
@@ -3142,7 +3220,7 @@
|
|
|
3142
3220
|
"title": "should return null on invalid module version",
|
|
3143
3221
|
"fullTitle": "NodePyATVInstance static version() should return null on invalid module version",
|
|
3144
3222
|
"timedOut": false,
|
|
3145
|
-
"duration":
|
|
3223
|
+
"duration": 1,
|
|
3146
3224
|
"state": "passed",
|
|
3147
3225
|
"speed": "fast",
|
|
3148
3226
|
"pass": true,
|
|
@@ -3151,36 +3229,36 @@
|
|
|
3151
3229
|
"context": null,
|
|
3152
3230
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = { version: 42 };\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3153
3231
|
"err": {},
|
|
3154
|
-
"uuid": "
|
|
3155
|
-
"parentUUID": "
|
|
3232
|
+
"uuid": "e512d9c0-082f-4c50-b3dd-8f6df9910e1c",
|
|
3233
|
+
"parentUUID": "58175b65-398f-451c-a067-3736c0c34ac4",
|
|
3156
3234
|
"isHook": false,
|
|
3157
3235
|
"skipped": false
|
|
3158
3236
|
}
|
|
3159
3237
|
],
|
|
3160
3238
|
"suites": [],
|
|
3161
3239
|
"passes": [
|
|
3162
|
-
"
|
|
3163
|
-
"
|
|
3164
|
-
"
|
|
3165
|
-
"
|
|
3166
|
-
"
|
|
3167
|
-
"
|
|
3168
|
-
"
|
|
3169
|
-
"
|
|
3170
|
-
"
|
|
3171
|
-
"
|
|
3172
|
-
"
|
|
3240
|
+
"6bf45276-4a5a-4837-89b2-de235e307e19",
|
|
3241
|
+
"1dd0a8c4-0728-4f10-97f0-b3802d665dbe",
|
|
3242
|
+
"6d31029a-55da-4814-b57f-b6ec93840292",
|
|
3243
|
+
"72383479-dfe9-4b7c-a01e-0ec9b9b13c6d",
|
|
3244
|
+
"638bde77-646c-4b6a-bff7-225590fae5e3",
|
|
3245
|
+
"6fbcf6ba-fe77-401f-becf-5d4f09222022",
|
|
3246
|
+
"abb01f48-8335-43c1-9903-69f0a52c6517",
|
|
3247
|
+
"f317e0e0-6653-4393-93d1-548a87863a30",
|
|
3248
|
+
"6a000b6a-6051-426c-84e7-5a780342372a",
|
|
3249
|
+
"d68e225a-0a04-40a3-a98d-18a967769ab6",
|
|
3250
|
+
"e512d9c0-082f-4c50-b3dd-8f6df9910e1c"
|
|
3173
3251
|
],
|
|
3174
3252
|
"failures": [],
|
|
3175
3253
|
"pending": [],
|
|
3176
3254
|
"skipped": [],
|
|
3177
|
-
"duration":
|
|
3255
|
+
"duration": 533,
|
|
3178
3256
|
"root": false,
|
|
3179
3257
|
"rootEmpty": false,
|
|
3180
3258
|
"_timeout": 2000
|
|
3181
3259
|
},
|
|
3182
3260
|
{
|
|
3183
|
-
"uuid": "
|
|
3261
|
+
"uuid": "06d1d8d3-a6f6-473f-8dfd-74a27416846a",
|
|
3184
3262
|
"title": "static check()",
|
|
3185
3263
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3186
3264
|
"file": "/test/instance.ts",
|
|
@@ -3191,7 +3269,7 @@
|
|
|
3191
3269
|
"title": "should resolve in test environment [L]",
|
|
3192
3270
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3193
3271
|
"timedOut": false,
|
|
3194
|
-
"duration":
|
|
3272
|
+
"duration": 5861,
|
|
3195
3273
|
"state": "passed",
|
|
3196
3274
|
"speed": "slow",
|
|
3197
3275
|
"pass": true,
|
|
@@ -3200,8 +3278,8 @@
|
|
|
3200
3278
|
"context": null,
|
|
3201
3279
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield index_1.default.check();\n});",
|
|
3202
3280
|
"err": {},
|
|
3203
|
-
"uuid": "
|
|
3204
|
-
"parentUUID": "
|
|
3281
|
+
"uuid": "2cda9275-ad7c-4239-bc3d-78c1f11defc5",
|
|
3282
|
+
"parentUUID": "06d1d8d3-a6f6-473f-8dfd-74a27416846a",
|
|
3205
3283
|
"isHook": false,
|
|
3206
3284
|
"skipped": false
|
|
3207
3285
|
},
|
|
@@ -3218,8 +3296,8 @@
|
|
|
3218
3296
|
"context": null,
|
|
3219
3297
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3220
3298
|
"err": {},
|
|
3221
|
-
"uuid": "
|
|
3222
|
-
"parentUUID": "
|
|
3299
|
+
"uuid": "552ba82a-2f5f-45d7-bf57-7e1bdbca6109",
|
|
3300
|
+
"parentUUID": "06d1d8d3-a6f6-473f-8dfd-74a27416846a",
|
|
3223
3301
|
"isHook": false,
|
|
3224
3302
|
"skipped": false
|
|
3225
3303
|
},
|
|
@@ -3236,8 +3314,8 @@
|
|
|
3236
3314
|
"context": null,
|
|
3237
3315
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.5.1').code(1).end();\n })\n });\n }), /Found pyatv, but unforunately it's too old. Please update pyatv./);\n});",
|
|
3238
3316
|
"err": {},
|
|
3239
|
-
"uuid": "
|
|
3240
|
-
"parentUUID": "
|
|
3317
|
+
"uuid": "61527cec-0f43-4469-a150-1d3a5c2e1e8c",
|
|
3318
|
+
"parentUUID": "06d1d8d3-a6f6-473f-8dfd-74a27416846a",
|
|
3241
3319
|
"isHook": false,
|
|
3242
3320
|
"skipped": false
|
|
3243
3321
|
},
|
|
@@ -3245,7 +3323,7 @@
|
|
|
3245
3323
|
"title": "should return nice error message if scan failed",
|
|
3246
3324
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if scan failed",
|
|
3247
3325
|
"timedOut": false,
|
|
3248
|
-
"duration":
|
|
3326
|
+
"duration": 3,
|
|
3249
3327
|
"state": "passed",
|
|
3250
3328
|
"speed": "fast",
|
|
3251
3329
|
"pass": true,
|
|
@@ -3254,29 +3332,29 @@
|
|
|
3254
3332
|
"context": null,
|
|
3255
3333
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n if (i === 0) {\n cp.stdout('atvremote 0.7.0').code(1).end();\n i++;\n }\n else {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n }\n })\n });\n }), /Unable to scan for devices/);\n});",
|
|
3256
3334
|
"err": {},
|
|
3257
|
-
"uuid": "
|
|
3258
|
-
"parentUUID": "
|
|
3335
|
+
"uuid": "5e2cd9b0-52a6-4336-a63a-b1632f38e1ca",
|
|
3336
|
+
"parentUUID": "06d1d8d3-a6f6-473f-8dfd-74a27416846a",
|
|
3259
3337
|
"isHook": false,
|
|
3260
3338
|
"skipped": false
|
|
3261
3339
|
}
|
|
3262
3340
|
],
|
|
3263
3341
|
"suites": [],
|
|
3264
3342
|
"passes": [
|
|
3265
|
-
"
|
|
3266
|
-
"
|
|
3267
|
-
"
|
|
3268
|
-
"
|
|
3343
|
+
"2cda9275-ad7c-4239-bc3d-78c1f11defc5",
|
|
3344
|
+
"552ba82a-2f5f-45d7-bf57-7e1bdbca6109",
|
|
3345
|
+
"61527cec-0f43-4469-a150-1d3a5c2e1e8c",
|
|
3346
|
+
"5e2cd9b0-52a6-4336-a63a-b1632f38e1ca"
|
|
3269
3347
|
],
|
|
3270
3348
|
"failures": [],
|
|
3271
3349
|
"pending": [],
|
|
3272
3350
|
"skipped": [],
|
|
3273
|
-
"duration":
|
|
3351
|
+
"duration": 5868,
|
|
3274
3352
|
"root": false,
|
|
3275
3353
|
"rootEmpty": false,
|
|
3276
3354
|
"_timeout": 2000
|
|
3277
3355
|
},
|
|
3278
3356
|
{
|
|
3279
|
-
"uuid": "
|
|
3357
|
+
"uuid": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3280
3358
|
"title": "static find()",
|
|
3281
3359
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3282
3360
|
"file": "/test/instance.ts",
|
|
@@ -3287,7 +3365,7 @@
|
|
|
3287
3365
|
"title": "should work [L]",
|
|
3288
3366
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3289
3367
|
"timedOut": false,
|
|
3290
|
-
"duration":
|
|
3368
|
+
"duration": 5485,
|
|
3291
3369
|
"state": "passed",
|
|
3292
3370
|
"speed": "slow",
|
|
3293
3371
|
"pass": true,
|
|
@@ -3296,8 +3374,8 @@
|
|
|
3296
3374
|
"context": null,
|
|
3297
3375
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield index_1.default.find();\n assert_1.default.ok(Array.isArray(result));\n});",
|
|
3298
3376
|
"err": {},
|
|
3299
|
-
"uuid": "
|
|
3300
|
-
"parentUUID": "
|
|
3377
|
+
"uuid": "16413a3d-480b-477a-b364-90eb24cc3929",
|
|
3378
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3301
3379
|
"isHook": false,
|
|
3302
3380
|
"skipped": false
|
|
3303
3381
|
},
|
|
@@ -3314,8 +3392,8 @@
|
|
|
3314
3392
|
"context": null,
|
|
3315
3393
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n atvscriptPath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), '/foo/bar');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3316
3394
|
"err": {},
|
|
3317
|
-
"uuid": "
|
|
3318
|
-
"parentUUID": "
|
|
3395
|
+
"uuid": "0d891232-d9f8-42b4-9f5d-53f78d070c76",
|
|
3396
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3319
3397
|
"isHook": false,
|
|
3320
3398
|
"skipped": false
|
|
3321
3399
|
},
|
|
@@ -3332,8 +3410,8 @@
|
|
|
3332
3410
|
"context": null,
|
|
3333
3411
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
|
|
3334
3412
|
"err": {},
|
|
3335
|
-
"uuid": "
|
|
3336
|
-
"parentUUID": "
|
|
3413
|
+
"uuid": "752b6d95-9521-4e1c-9d8c-4c7cee00d6f9",
|
|
3414
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3337
3415
|
"isHook": false,
|
|
3338
3416
|
"skipped": false
|
|
3339
3417
|
},
|
|
@@ -3341,7 +3419,7 @@
|
|
|
3341
3419
|
"title": "should throw error on error",
|
|
3342
3420
|
"fullTitle": "NodePyATVInstance static find() should throw error on error",
|
|
3343
3421
|
"timedOut": false,
|
|
3344
|
-
"duration":
|
|
3422
|
+
"duration": 2,
|
|
3345
3423
|
"state": "passed",
|
|
3346
3424
|
"speed": "fast",
|
|
3347
3425
|
"pass": true,
|
|
@@ -3350,8 +3428,8 @@
|
|
|
3350
3428
|
"context": null,
|
|
3351
3429
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
|
|
3352
3430
|
"err": {},
|
|
3353
|
-
"uuid": "
|
|
3354
|
-
"parentUUID": "
|
|
3431
|
+
"uuid": "fb66c2e1-7a42-47f3-b2bd-f8f6e2c8232e",
|
|
3432
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3355
3433
|
"isHook": false,
|
|
3356
3434
|
"skipped": false
|
|
3357
3435
|
},
|
|
@@ -3359,7 +3437,7 @@
|
|
|
3359
3437
|
"title": "should throw error if atvscript result is not valid json",
|
|
3360
3438
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not valid json",
|
|
3361
3439
|
"timedOut": false,
|
|
3362
|
-
"duration":
|
|
3440
|
+
"duration": 1,
|
|
3363
3441
|
"state": "passed",
|
|
3364
3442
|
"speed": "fast",
|
|
3365
3443
|
"pass": true,
|
|
@@ -3368,8 +3446,8 @@
|
|
|
3368
3446
|
"context": null,
|
|
3369
3447
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout(JSON.stringify({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).substr(1)).end();\n })\n });\n }), /Unable to parse result/);\n});",
|
|
3370
3448
|
"err": {},
|
|
3371
|
-
"uuid": "
|
|
3372
|
-
"parentUUID": "
|
|
3449
|
+
"uuid": "3482707e-baa3-4892-8c09-2383fc8c71eb",
|
|
3450
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3373
3451
|
"isHook": false,
|
|
3374
3452
|
"skipped": false
|
|
3375
3453
|
},
|
|
@@ -3377,7 +3455,7 @@
|
|
|
3377
3455
|
"title": "should throw error if atvscript result is not successfull",
|
|
3378
3456
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
|
|
3379
3457
|
"timedOut": false,
|
|
3380
|
-
"duration":
|
|
3458
|
+
"duration": 1,
|
|
3381
3459
|
"state": "passed",
|
|
3382
3460
|
"speed": "fast",
|
|
3383
3461
|
"pass": true,
|
|
@@ -3386,8 +3464,8 @@
|
|
|
3386
3464
|
"context": null,
|
|
3387
3465
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3388
3466
|
"err": {},
|
|
3389
|
-
"uuid": "
|
|
3390
|
-
"parentUUID": "
|
|
3467
|
+
"uuid": "d275572d-7a09-489c-ad7b-2b4bcd81ca9a",
|
|
3468
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3391
3469
|
"isHook": false,
|
|
3392
3470
|
"skipped": false
|
|
3393
3471
|
},
|
|
@@ -3404,32 +3482,32 @@
|
|
|
3404
3482
|
"context": null,
|
|
3405
3483
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3406
3484
|
"err": {},
|
|
3407
|
-
"uuid": "
|
|
3408
|
-
"parentUUID": "
|
|
3485
|
+
"uuid": "2efbd798-5f45-4c59-95cc-b2d23c66171f",
|
|
3486
|
+
"parentUUID": "807bfbb4-caba-464d-a8ad-0cbcec293043",
|
|
3409
3487
|
"isHook": false,
|
|
3410
3488
|
"skipped": false
|
|
3411
3489
|
}
|
|
3412
3490
|
],
|
|
3413
3491
|
"suites": [],
|
|
3414
3492
|
"passes": [
|
|
3415
|
-
"
|
|
3416
|
-
"
|
|
3417
|
-
"
|
|
3418
|
-
"
|
|
3419
|
-
"
|
|
3420
|
-
"
|
|
3421
|
-
"
|
|
3493
|
+
"16413a3d-480b-477a-b364-90eb24cc3929",
|
|
3494
|
+
"0d891232-d9f8-42b4-9f5d-53f78d070c76",
|
|
3495
|
+
"752b6d95-9521-4e1c-9d8c-4c7cee00d6f9",
|
|
3496
|
+
"fb66c2e1-7a42-47f3-b2bd-f8f6e2c8232e",
|
|
3497
|
+
"3482707e-baa3-4892-8c09-2383fc8c71eb",
|
|
3498
|
+
"d275572d-7a09-489c-ad7b-2b4bcd81ca9a",
|
|
3499
|
+
"2efbd798-5f45-4c59-95cc-b2d23c66171f"
|
|
3422
3500
|
],
|
|
3423
3501
|
"failures": [],
|
|
3424
3502
|
"pending": [],
|
|
3425
3503
|
"skipped": [],
|
|
3426
|
-
"duration":
|
|
3504
|
+
"duration": 5495,
|
|
3427
3505
|
"root": false,
|
|
3428
3506
|
"rootEmpty": false,
|
|
3429
3507
|
"_timeout": 2000
|
|
3430
3508
|
},
|
|
3431
3509
|
{
|
|
3432
|
-
"uuid": "
|
|
3510
|
+
"uuid": "59fdadd3-7423-4327-9088-c33bbdbbe3df",
|
|
3433
3511
|
"title": "static device()",
|
|
3434
3512
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3435
3513
|
"file": "/test/instance.ts",
|
|
@@ -3440,7 +3518,7 @@
|
|
|
3440
3518
|
"title": "should pass options to constructor",
|
|
3441
3519
|
"fullTitle": "NodePyATVInstance static device() should pass options to constructor",
|
|
3442
3520
|
"timedOut": false,
|
|
3443
|
-
"duration":
|
|
3521
|
+
"duration": 1,
|
|
3444
3522
|
"state": "passed",
|
|
3445
3523
|
"speed": "fast",
|
|
3446
3524
|
"pass": true,
|
|
@@ -3449,26 +3527,26 @@
|
|
|
3449
3527
|
"context": null,
|
|
3450
3528
|
"code": "const device = index_1.default.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert_1.default.strictEqual(device.host, '192.168.178.6');\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
3451
3529
|
"err": {},
|
|
3452
|
-
"uuid": "
|
|
3453
|
-
"parentUUID": "
|
|
3530
|
+
"uuid": "f4f1c34f-ee82-49e5-aa8b-3125aaad1c79",
|
|
3531
|
+
"parentUUID": "59fdadd3-7423-4327-9088-c33bbdbbe3df",
|
|
3454
3532
|
"isHook": false,
|
|
3455
3533
|
"skipped": false
|
|
3456
3534
|
}
|
|
3457
3535
|
],
|
|
3458
3536
|
"suites": [],
|
|
3459
3537
|
"passes": [
|
|
3460
|
-
"
|
|
3538
|
+
"f4f1c34f-ee82-49e5-aa8b-3125aaad1c79"
|
|
3461
3539
|
],
|
|
3462
3540
|
"failures": [],
|
|
3463
3541
|
"pending": [],
|
|
3464
3542
|
"skipped": [],
|
|
3465
|
-
"duration":
|
|
3543
|
+
"duration": 1,
|
|
3466
3544
|
"root": false,
|
|
3467
3545
|
"rootEmpty": false,
|
|
3468
3546
|
"_timeout": 2000
|
|
3469
3547
|
},
|
|
3470
3548
|
{
|
|
3471
|
-
"uuid": "
|
|
3549
|
+
"uuid": "290b418f-a0da-4357-9d6e-9e4a89720dde",
|
|
3472
3550
|
"title": "version()",
|
|
3473
3551
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3474
3552
|
"file": "/test/instance.ts",
|
|
@@ -3488,15 +3566,15 @@
|
|
|
3488
3566
|
"context": null,
|
|
3489
3567
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield i.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
|
|
3490
3568
|
"err": {},
|
|
3491
|
-
"uuid": "
|
|
3492
|
-
"parentUUID": "
|
|
3569
|
+
"uuid": "2466f5b3-29ba-4200-ad96-c7117f8b91a7",
|
|
3570
|
+
"parentUUID": "290b418f-a0da-4357-9d6e-9e4a89720dde",
|
|
3493
3571
|
"isHook": false,
|
|
3494
3572
|
"skipped": false
|
|
3495
3573
|
}
|
|
3496
3574
|
],
|
|
3497
3575
|
"suites": [],
|
|
3498
3576
|
"passes": [
|
|
3499
|
-
"
|
|
3577
|
+
"2466f5b3-29ba-4200-ad96-c7117f8b91a7"
|
|
3500
3578
|
],
|
|
3501
3579
|
"failures": [],
|
|
3502
3580
|
"pending": [],
|
|
@@ -3507,7 +3585,7 @@
|
|
|
3507
3585
|
"_timeout": 2000
|
|
3508
3586
|
},
|
|
3509
3587
|
{
|
|
3510
|
-
"uuid": "
|
|
3588
|
+
"uuid": "bee42492-8f1c-440c-a7ae-0ede3e66e4f2",
|
|
3511
3589
|
"title": "check()",
|
|
3512
3590
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3513
3591
|
"file": "/test/instance.ts",
|
|
@@ -3527,15 +3605,15 @@
|
|
|
3527
3605
|
"context": null,
|
|
3528
3606
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3529
3607
|
"err": {},
|
|
3530
|
-
"uuid": "
|
|
3531
|
-
"parentUUID": "
|
|
3608
|
+
"uuid": "6610560b-9623-4381-ba7a-f7c8e7b766b0",
|
|
3609
|
+
"parentUUID": "bee42492-8f1c-440c-a7ae-0ede3e66e4f2",
|
|
3532
3610
|
"isHook": false,
|
|
3533
3611
|
"skipped": false
|
|
3534
3612
|
}
|
|
3535
3613
|
],
|
|
3536
3614
|
"suites": [],
|
|
3537
3615
|
"passes": [
|
|
3538
|
-
"
|
|
3616
|
+
"6610560b-9623-4381-ba7a-f7c8e7b766b0"
|
|
3539
3617
|
],
|
|
3540
3618
|
"failures": [],
|
|
3541
3619
|
"pending": [],
|
|
@@ -3546,7 +3624,7 @@
|
|
|
3546
3624
|
"_timeout": 2000
|
|
3547
3625
|
},
|
|
3548
3626
|
{
|
|
3549
|
-
"uuid": "
|
|
3627
|
+
"uuid": "0245e292-109f-4cfd-87f6-d967ffc31d45",
|
|
3550
3628
|
"title": "find()",
|
|
3551
3629
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3552
3630
|
"file": "/test/instance.ts",
|
|
@@ -3566,15 +3644,15 @@
|
|
|
3566
3644
|
"context": null,
|
|
3567
3645
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvscriptPath: 'test' });\n yield i.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3568
3646
|
"err": {},
|
|
3569
|
-
"uuid": "
|
|
3570
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "77f9c336-e82a-4135-911a-65cb4e18f8ac",
|
|
3648
|
+
"parentUUID": "0245e292-109f-4cfd-87f6-d967ffc31d45",
|
|
3571
3649
|
"isHook": false,
|
|
3572
3650
|
"skipped": false
|
|
3573
3651
|
}
|
|
3574
3652
|
],
|
|
3575
3653
|
"suites": [],
|
|
3576
3654
|
"passes": [
|
|
3577
|
-
"
|
|
3655
|
+
"77f9c336-e82a-4135-911a-65cb4e18f8ac"
|
|
3578
3656
|
],
|
|
3579
3657
|
"failures": [],
|
|
3580
3658
|
"pending": [],
|
|
@@ -3585,7 +3663,7 @@
|
|
|
3585
3663
|
"_timeout": 2000
|
|
3586
3664
|
},
|
|
3587
3665
|
{
|
|
3588
|
-
"uuid": "
|
|
3666
|
+
"uuid": "c50c3aea-cdbe-4b76-b5d7-c8131d5561b3",
|
|
3589
3667
|
"title": "device()",
|
|
3590
3668
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3591
3669
|
"file": "/test/instance.ts",
|
|
@@ -3596,7 +3674,7 @@
|
|
|
3596
3674
|
"title": "should merge options from constructor",
|
|
3597
3675
|
"fullTitle": "NodePyATVInstance device() should merge options from constructor",
|
|
3598
3676
|
"timedOut": false,
|
|
3599
|
-
"duration":
|
|
3677
|
+
"duration": 0,
|
|
3600
3678
|
"state": "passed",
|
|
3601
3679
|
"speed": "fast",
|
|
3602
3680
|
"pass": true,
|
|
@@ -3605,26 +3683,26 @@
|
|
|
3605
3683
|
"context": null,
|
|
3606
3684
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert_1.default.deepStrictEqual(d.debug, true);\n});",
|
|
3607
3685
|
"err": {},
|
|
3608
|
-
"uuid": "
|
|
3609
|
-
"parentUUID": "
|
|
3686
|
+
"uuid": "3a166669-6de3-434d-9320-2af124563054",
|
|
3687
|
+
"parentUUID": "c50c3aea-cdbe-4b76-b5d7-c8131d5561b3",
|
|
3610
3688
|
"isHook": false,
|
|
3611
3689
|
"skipped": false
|
|
3612
3690
|
}
|
|
3613
3691
|
],
|
|
3614
3692
|
"suites": [],
|
|
3615
3693
|
"passes": [
|
|
3616
|
-
"
|
|
3694
|
+
"3a166669-6de3-434d-9320-2af124563054"
|
|
3617
3695
|
],
|
|
3618
3696
|
"failures": [],
|
|
3619
3697
|
"pending": [],
|
|
3620
3698
|
"skipped": [],
|
|
3621
|
-
"duration":
|
|
3699
|
+
"duration": 0,
|
|
3622
3700
|
"root": false,
|
|
3623
3701
|
"rootEmpty": false,
|
|
3624
3702
|
"_timeout": 2000
|
|
3625
3703
|
},
|
|
3626
3704
|
{
|
|
3627
|
-
"uuid": "
|
|
3705
|
+
"uuid": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3628
3706
|
"title": "Type Exports",
|
|
3629
3707
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3630
3708
|
"file": "/test/instance.ts",
|
|
@@ -3644,8 +3722,8 @@
|
|
|
3644
3722
|
"context": null,
|
|
3645
3723
|
"code": "assert_1.default.ok(index_1.NodePyATVProtocol);",
|
|
3646
3724
|
"err": {},
|
|
3647
|
-
"uuid": "
|
|
3648
|
-
"parentUUID": "
|
|
3725
|
+
"uuid": "63dda9d0-0e12-4d45-abdd-6d5396c3df5d",
|
|
3726
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3649
3727
|
"isHook": false,
|
|
3650
3728
|
"skipped": false
|
|
3651
3729
|
},
|
|
@@ -3662,8 +3740,8 @@
|
|
|
3662
3740
|
"context": null,
|
|
3663
3741
|
"code": "assert_1.default.ok(index_1.NodePyATVMediaType);",
|
|
3664
3742
|
"err": {},
|
|
3665
|
-
"uuid": "
|
|
3666
|
-
"parentUUID": "
|
|
3743
|
+
"uuid": "86db5d20-3f01-4d28-8aed-307be67824fb",
|
|
3744
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3667
3745
|
"isHook": false,
|
|
3668
3746
|
"skipped": false
|
|
3669
3747
|
},
|
|
@@ -3680,8 +3758,8 @@
|
|
|
3680
3758
|
"context": null,
|
|
3681
3759
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceEvent);",
|
|
3682
3760
|
"err": {},
|
|
3683
|
-
"uuid": "
|
|
3684
|
-
"parentUUID": "
|
|
3761
|
+
"uuid": "b15efa11-a9c5-4abe-806c-5f9c0d2e56b1",
|
|
3762
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3685
3763
|
"isHook": false,
|
|
3686
3764
|
"skipped": false
|
|
3687
3765
|
},
|
|
@@ -3689,7 +3767,7 @@
|
|
|
3689
3767
|
"title": "Type NodePyATVDeviceState should be exported",
|
|
3690
3768
|
"fullTitle": "NodePyATVInstance Type Exports Type NodePyATVDeviceState should be exported",
|
|
3691
3769
|
"timedOut": false,
|
|
3692
|
-
"duration":
|
|
3770
|
+
"duration": 1,
|
|
3693
3771
|
"state": "passed",
|
|
3694
3772
|
"speed": "fast",
|
|
3695
3773
|
"pass": true,
|
|
@@ -3698,8 +3776,8 @@
|
|
|
3698
3776
|
"context": null,
|
|
3699
3777
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceState);",
|
|
3700
3778
|
"err": {},
|
|
3701
|
-
"uuid": "
|
|
3702
|
-
"parentUUID": "
|
|
3779
|
+
"uuid": "00d55a8d-9f5e-4e18-933f-415bd70a9744",
|
|
3780
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3703
3781
|
"isHook": false,
|
|
3704
3782
|
"skipped": false
|
|
3705
3783
|
},
|
|
@@ -3716,8 +3794,8 @@
|
|
|
3716
3794
|
"context": null,
|
|
3717
3795
|
"code": "assert_1.default.ok(index_1.NodePyATVRepeatState);",
|
|
3718
3796
|
"err": {},
|
|
3719
|
-
"uuid": "
|
|
3720
|
-
"parentUUID": "
|
|
3797
|
+
"uuid": "41dbfbd1-28fb-4506-bc8d-be5bdc688a00",
|
|
3798
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3721
3799
|
"isHook": false,
|
|
3722
3800
|
"skipped": false
|
|
3723
3801
|
},
|
|
@@ -3734,8 +3812,8 @@
|
|
|
3734
3812
|
"context": null,
|
|
3735
3813
|
"code": "assert_1.default.ok(index_1.NodePyATVShuffleState);",
|
|
3736
3814
|
"err": {},
|
|
3737
|
-
"uuid": "
|
|
3738
|
-
"parentUUID": "
|
|
3815
|
+
"uuid": "6f0089fe-99e6-4da8-bee3-a76cc35c792e",
|
|
3816
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3739
3817
|
"isHook": false,
|
|
3740
3818
|
"skipped": false
|
|
3741
3819
|
},
|
|
@@ -3752,8 +3830,8 @@
|
|
|
3752
3830
|
"context": null,
|
|
3753
3831
|
"code": "assert_1.default.ok(index_1.NodePyATVKeys);",
|
|
3754
3832
|
"err": {},
|
|
3755
|
-
"uuid": "
|
|
3756
|
-
"parentUUID": "
|
|
3833
|
+
"uuid": "750d6b6c-f30b-4f1e-a74c-c821a60a4f96",
|
|
3834
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3757
3835
|
"isHook": false,
|
|
3758
3836
|
"skipped": false
|
|
3759
3837
|
},
|
|
@@ -3770,8 +3848,8 @@
|
|
|
3770
3848
|
"context": null,
|
|
3771
3849
|
"code": "assert_1.default.ok(index_1.NodePyATVListenerState);",
|
|
3772
3850
|
"err": {},
|
|
3773
|
-
"uuid": "
|
|
3774
|
-
"parentUUID": "
|
|
3851
|
+
"uuid": "aca4456d-84b6-48db-b9bf-1e5828990d43",
|
|
3852
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3775
3853
|
"isHook": false,
|
|
3776
3854
|
"skipped": false
|
|
3777
3855
|
},
|
|
@@ -3788,28 +3866,28 @@
|
|
|
3788
3866
|
"context": null,
|
|
3789
3867
|
"code": "assert_1.default.ok(index_1.NodePyATVPowerState);",
|
|
3790
3868
|
"err": {},
|
|
3791
|
-
"uuid": "
|
|
3792
|
-
"parentUUID": "
|
|
3869
|
+
"uuid": "ab7f600a-60e7-41f7-a8cf-dec6efbb4fae",
|
|
3870
|
+
"parentUUID": "b1f47fcb-95fd-48ac-a018-12dd3f0d8d29",
|
|
3793
3871
|
"isHook": false,
|
|
3794
3872
|
"skipped": false
|
|
3795
3873
|
}
|
|
3796
3874
|
],
|
|
3797
3875
|
"suites": [],
|
|
3798
3876
|
"passes": [
|
|
3799
|
-
"
|
|
3800
|
-
"
|
|
3801
|
-
"
|
|
3802
|
-
"
|
|
3803
|
-
"
|
|
3804
|
-
"
|
|
3805
|
-
"
|
|
3806
|
-
"
|
|
3807
|
-
"
|
|
3877
|
+
"63dda9d0-0e12-4d45-abdd-6d5396c3df5d",
|
|
3878
|
+
"86db5d20-3f01-4d28-8aed-307be67824fb",
|
|
3879
|
+
"b15efa11-a9c5-4abe-806c-5f9c0d2e56b1",
|
|
3880
|
+
"00d55a8d-9f5e-4e18-933f-415bd70a9744",
|
|
3881
|
+
"41dbfbd1-28fb-4506-bc8d-be5bdc688a00",
|
|
3882
|
+
"6f0089fe-99e6-4da8-bee3-a76cc35c792e",
|
|
3883
|
+
"750d6b6c-f30b-4f1e-a74c-c821a60a4f96",
|
|
3884
|
+
"aca4456d-84b6-48db-b9bf-1e5828990d43",
|
|
3885
|
+
"ab7f600a-60e7-41f7-a8cf-dec6efbb4fae"
|
|
3808
3886
|
],
|
|
3809
3887
|
"failures": [],
|
|
3810
3888
|
"pending": [],
|
|
3811
3889
|
"skipped": [],
|
|
3812
|
-
"duration":
|
|
3890
|
+
"duration": 1,
|
|
3813
3891
|
"root": false,
|
|
3814
3892
|
"rootEmpty": false,
|
|
3815
3893
|
"_timeout": 2000
|
|
@@ -3825,7 +3903,7 @@
|
|
|
3825
3903
|
"_timeout": 2000
|
|
3826
3904
|
},
|
|
3827
3905
|
{
|
|
3828
|
-
"uuid": "
|
|
3906
|
+
"uuid": "a6caa22c-38e3-4f72-af9f-57eae169a111",
|
|
3829
3907
|
"title": "Tools",
|
|
3830
3908
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3831
3909
|
"file": "/test/tools.ts",
|
|
@@ -3834,7 +3912,7 @@
|
|
|
3834
3912
|
"tests": [],
|
|
3835
3913
|
"suites": [
|
|
3836
3914
|
{
|
|
3837
|
-
"uuid": "
|
|
3915
|
+
"uuid": "5fbf2cbd-1a3b-4fb1-9719-ab442da32204",
|
|
3838
3916
|
"title": "addRequestId() / removeRequestId()",
|
|
3839
3917
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3840
3918
|
"file": "/test/tools.ts",
|
|
@@ -3845,7 +3923,7 @@
|
|
|
3845
3923
|
"title": "should return a string",
|
|
3846
3924
|
"fullTitle": "Tools addRequestId() / removeRequestId() should return a string",
|
|
3847
3925
|
"timedOut": false,
|
|
3848
|
-
"duration":
|
|
3926
|
+
"duration": 0,
|
|
3849
3927
|
"state": "passed",
|
|
3850
3928
|
"speed": "fast",
|
|
3851
3929
|
"pass": true,
|
|
@@ -3854,8 +3932,8 @@
|
|
|
3854
3932
|
"context": null,
|
|
3855
3933
|
"code": "const id = (0, tools_1.addRequestId)();\nassert_1.default.strictEqual(typeof id, 'string');\n(0, tools_1.removeRequestId)(id);",
|
|
3856
3934
|
"err": {},
|
|
3857
|
-
"uuid": "
|
|
3858
|
-
"parentUUID": "
|
|
3935
|
+
"uuid": "8763b6ed-61be-42ae-a35a-579e0fb97c7f",
|
|
3936
|
+
"parentUUID": "5fbf2cbd-1a3b-4fb1-9719-ab442da32204",
|
|
3859
3937
|
"isHook": false,
|
|
3860
3938
|
"skipped": false
|
|
3861
3939
|
},
|
|
@@ -3872,27 +3950,27 @@
|
|
|
3872
3950
|
"context": null,
|
|
3873
3951
|
"code": "(0, tools_1.removeRequestId)('FOO');",
|
|
3874
3952
|
"err": {},
|
|
3875
|
-
"uuid": "
|
|
3876
|
-
"parentUUID": "
|
|
3953
|
+
"uuid": "745d104a-7f82-4649-8cae-4f649ee085f7",
|
|
3954
|
+
"parentUUID": "5fbf2cbd-1a3b-4fb1-9719-ab442da32204",
|
|
3877
3955
|
"isHook": false,
|
|
3878
3956
|
"skipped": false
|
|
3879
3957
|
}
|
|
3880
3958
|
],
|
|
3881
3959
|
"suites": [],
|
|
3882
3960
|
"passes": [
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3961
|
+
"8763b6ed-61be-42ae-a35a-579e0fb97c7f",
|
|
3962
|
+
"745d104a-7f82-4649-8cae-4f649ee085f7"
|
|
3885
3963
|
],
|
|
3886
3964
|
"failures": [],
|
|
3887
3965
|
"pending": [],
|
|
3888
3966
|
"skipped": [],
|
|
3889
|
-
"duration":
|
|
3967
|
+
"duration": 0,
|
|
3890
3968
|
"root": false,
|
|
3891
3969
|
"rootEmpty": false,
|
|
3892
3970
|
"_timeout": 2000
|
|
3893
3971
|
},
|
|
3894
3972
|
{
|
|
3895
|
-
"uuid": "
|
|
3973
|
+
"uuid": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3896
3974
|
"title": "debug()",
|
|
3897
3975
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3898
3976
|
"file": "/test/tools.ts",
|
|
@@ -3912,8 +3990,8 @@
|
|
|
3912
3990
|
"context": null,
|
|
3913
3991
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {});",
|
|
3914
3992
|
"err": {},
|
|
3915
|
-
"uuid": "
|
|
3916
|
-
"parentUUID": "
|
|
3993
|
+
"uuid": "d1a1730c-d6a2-4e82-bd3a-9423941447b8",
|
|
3994
|
+
"parentUUID": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3917
3995
|
"isHook": false,
|
|
3918
3996
|
"skipped": false
|
|
3919
3997
|
},
|
|
@@ -3930,8 +4008,8 @@
|
|
|
3930
4008
|
"context": null,
|
|
3931
4009
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { debug: true });",
|
|
3932
4010
|
"err": {},
|
|
3933
|
-
"uuid": "
|
|
3934
|
-
"parentUUID": "
|
|
4011
|
+
"uuid": "0349c7f6-8bda-4d5f-a6b2-663e9836bab0",
|
|
4012
|
+
"parentUUID": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3935
4013
|
"isHook": false,
|
|
3936
4014
|
"skipped": false
|
|
3937
4015
|
},
|
|
@@ -3948,8 +4026,8 @@
|
|
|
3948
4026
|
"context": null,
|
|
3949
4027
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.ok(msg.includes('Hello World'));\n }\n});",
|
|
3950
4028
|
"err": {},
|
|
3951
|
-
"uuid": "
|
|
3952
|
-
"parentUUID": "
|
|
4029
|
+
"uuid": "bb080e06-6c47-4c28-b16e-d08ec4d52283",
|
|
4030
|
+
"parentUUID": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3953
4031
|
"isHook": false,
|
|
3954
4032
|
"skipped": false
|
|
3955
4033
|
},
|
|
@@ -3966,8 +4044,8 @@
|
|
|
3966
4044
|
"context": null,
|
|
3967
4045
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { noColors: true });",
|
|
3968
4046
|
"err": {},
|
|
3969
|
-
"uuid": "
|
|
3970
|
-
"parentUUID": "
|
|
4047
|
+
"uuid": "9f358114-d9aa-4593-a06f-d5479cb216a1",
|
|
4048
|
+
"parentUUID": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3971
4049
|
"isHook": false,
|
|
3972
4050
|
"skipped": false
|
|
3973
4051
|
},
|
|
@@ -3984,19 +4062,19 @@
|
|
|
3984
4062
|
"context": null,
|
|
3985
4063
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
|
|
3986
4064
|
"err": {},
|
|
3987
|
-
"uuid": "
|
|
3988
|
-
"parentUUID": "
|
|
4065
|
+
"uuid": "7523b513-af90-450b-93c5-d1c1930b9d52",
|
|
4066
|
+
"parentUUID": "87abb26b-b72b-4d1a-aa8d-db2321d9dc4b",
|
|
3989
4067
|
"isHook": false,
|
|
3990
4068
|
"skipped": false
|
|
3991
4069
|
}
|
|
3992
4070
|
],
|
|
3993
4071
|
"suites": [],
|
|
3994
4072
|
"passes": [
|
|
3995
|
-
"
|
|
3996
|
-
"
|
|
3997
|
-
"
|
|
3998
|
-
"
|
|
3999
|
-
"
|
|
4073
|
+
"d1a1730c-d6a2-4e82-bd3a-9423941447b8",
|
|
4074
|
+
"0349c7f6-8bda-4d5f-a6b2-663e9836bab0",
|
|
4075
|
+
"bb080e06-6c47-4c28-b16e-d08ec4d52283",
|
|
4076
|
+
"9f358114-d9aa-4593-a06f-d5479cb216a1",
|
|
4077
|
+
"7523b513-af90-450b-93c5-d1c1930b9d52"
|
|
4000
4078
|
],
|
|
4001
4079
|
"failures": [],
|
|
4002
4080
|
"pending": [],
|
|
@@ -4007,7 +4085,7 @@
|
|
|
4007
4085
|
"_timeout": 2000
|
|
4008
4086
|
},
|
|
4009
4087
|
{
|
|
4010
|
-
"uuid": "
|
|
4088
|
+
"uuid": "b01fbf0f-c115-4021-99d2-ef7695aed8ad",
|
|
4011
4089
|
"title": "getExecutable()",
|
|
4012
4090
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4013
4091
|
"file": "/test/tools.ts",
|
|
@@ -4027,8 +4105,8 @@
|
|
|
4027
4105
|
"context": null,
|
|
4028
4106
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/1');",
|
|
4029
4107
|
"err": {},
|
|
4030
|
-
"uuid": "
|
|
4031
|
-
"parentUUID": "
|
|
4108
|
+
"uuid": "57f9af4e-f7a8-4a8d-9f25-35e39f5931eb",
|
|
4109
|
+
"parentUUID": "b01fbf0f-c115-4021-99d2-ef7695aed8ad",
|
|
4032
4110
|
"isHook": false,
|
|
4033
4111
|
"skipped": false
|
|
4034
4112
|
},
|
|
@@ -4045,8 +4123,8 @@
|
|
|
4045
4123
|
"context": null,
|
|
4046
4124
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/2');",
|
|
4047
4125
|
"err": {},
|
|
4048
|
-
"uuid": "
|
|
4049
|
-
"parentUUID": "
|
|
4126
|
+
"uuid": "a634f03e-a8d4-460d-b6a0-3f7979c1a8d0",
|
|
4127
|
+
"parentUUID": "b01fbf0f-c115-4021-99d2-ef7695aed8ad",
|
|
4050
4128
|
"isHook": false,
|
|
4051
4129
|
"skipped": false
|
|
4052
4130
|
},
|
|
@@ -4063,8 +4141,8 @@
|
|
|
4063
4141
|
"context": null,
|
|
4064
4142
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvremote');",
|
|
4065
4143
|
"err": {},
|
|
4066
|
-
"uuid": "
|
|
4067
|
-
"parentUUID": "
|
|
4144
|
+
"uuid": "6b8ff49c-1d55-417a-96b3-699802453ae9",
|
|
4145
|
+
"parentUUID": "b01fbf0f-c115-4021-99d2-ef7695aed8ad",
|
|
4068
4146
|
"isHook": false,
|
|
4069
4147
|
"skipped": false
|
|
4070
4148
|
},
|
|
@@ -4081,18 +4159,18 @@
|
|
|
4081
4159
|
"context": null,
|
|
4082
4160
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvscript');",
|
|
4083
4161
|
"err": {},
|
|
4084
|
-
"uuid": "
|
|
4085
|
-
"parentUUID": "
|
|
4162
|
+
"uuid": "1efea582-412c-46a3-9971-7147b0aa3225",
|
|
4163
|
+
"parentUUID": "b01fbf0f-c115-4021-99d2-ef7695aed8ad",
|
|
4086
4164
|
"isHook": false,
|
|
4087
4165
|
"skipped": false
|
|
4088
4166
|
}
|
|
4089
4167
|
],
|
|
4090
4168
|
"suites": [],
|
|
4091
4169
|
"passes": [
|
|
4092
|
-
"
|
|
4093
|
-
"
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4170
|
+
"57f9af4e-f7a8-4a8d-9f25-35e39f5931eb",
|
|
4171
|
+
"a634f03e-a8d4-460d-b6a0-3f7979c1a8d0",
|
|
4172
|
+
"6b8ff49c-1d55-417a-96b3-699802453ae9",
|
|
4173
|
+
"1efea582-412c-46a3-9971-7147b0aa3225"
|
|
4096
4174
|
],
|
|
4097
4175
|
"failures": [],
|
|
4098
4176
|
"pending": [],
|
|
@@ -4103,7 +4181,7 @@
|
|
|
4103
4181
|
"_timeout": 2000
|
|
4104
4182
|
},
|
|
4105
4183
|
{
|
|
4106
|
-
"uuid": "
|
|
4184
|
+
"uuid": "c1a7e9fd-08c9-493b-811e-a72a7747ad97",
|
|
4107
4185
|
"title": "getParameters()",
|
|
4108
4186
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4109
4187
|
"file": "/test/tools.ts",
|
|
@@ -4123,8 +4201,8 @@
|
|
|
4123
4201
|
"context": null,
|
|
4124
4202
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)();\n assert_1.default.deepEqual(result, []);\n});",
|
|
4125
4203
|
"err": {},
|
|
4126
|
-
"uuid": "
|
|
4127
|
-
"parentUUID": "
|
|
4204
|
+
"uuid": "dca6e32e-0f3a-4f79-a902-d5cd9a83fe49",
|
|
4205
|
+
"parentUUID": "c1a7e9fd-08c9-493b-811e-a72a7747ad97",
|
|
4128
4206
|
"isHook": false,
|
|
4129
4207
|
"skipped": false
|
|
4130
4208
|
},
|
|
@@ -4141,8 +4219,8 @@
|
|
|
4141
4219
|
"context": null,
|
|
4142
4220
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n host: '192.168.178.2'\n });\n assert_1.default.deepEqual(result, ['-s', '192.168.178.2']);\n});",
|
|
4143
4221
|
"err": {},
|
|
4144
|
-
"uuid": "
|
|
4145
|
-
"parentUUID": "
|
|
4222
|
+
"uuid": "b71832a9-8e1e-495f-83fe-94167d910edd",
|
|
4223
|
+
"parentUUID": "c1a7e9fd-08c9-493b-811e-a72a7747ad97",
|
|
4146
4224
|
"isHook": false,
|
|
4147
4225
|
"skipped": false
|
|
4148
4226
|
},
|
|
@@ -4159,17 +4237,17 @@
|
|
|
4159
4237
|
"context": null,
|
|
4160
4238
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: types_1.NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert_1.default.deepEqual(result, [\n '-s', '192.168.178.2,192.168.178.3',\n '-i', '****',\n '--protocol', 'mrp',\n '--dmap-credentials', '****',\n '--mrp-credentials', '****',\n '--airplay-credentials', '****',\n '--companion-credentials', '1234',\n '--raop-credentials', '::foo:'\n ]);\n});",
|
|
4161
4239
|
"err": {},
|
|
4162
|
-
"uuid": "
|
|
4163
|
-
"parentUUID": "
|
|
4240
|
+
"uuid": "4eb30f19-0ba8-4350-b3e7-d960f0019338",
|
|
4241
|
+
"parentUUID": "c1a7e9fd-08c9-493b-811e-a72a7747ad97",
|
|
4164
4242
|
"isHook": false,
|
|
4165
4243
|
"skipped": false
|
|
4166
4244
|
}
|
|
4167
4245
|
],
|
|
4168
4246
|
"suites": [],
|
|
4169
4247
|
"passes": [
|
|
4170
|
-
"
|
|
4171
|
-
"
|
|
4172
|
-
"
|
|
4248
|
+
"dca6e32e-0f3a-4f79-a902-d5cd9a83fe49",
|
|
4249
|
+
"b71832a9-8e1e-495f-83fe-94167d910edd",
|
|
4250
|
+
"4eb30f19-0ba8-4350-b3e7-d960f0019338"
|
|
4173
4251
|
],
|
|
4174
4252
|
"failures": [],
|
|
4175
4253
|
"pending": [],
|
|
@@ -4180,7 +4258,7 @@
|
|
|
4180
4258
|
"_timeout": 2000
|
|
4181
4259
|
},
|
|
4182
4260
|
{
|
|
4183
|
-
"uuid": "
|
|
4261
|
+
"uuid": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4184
4262
|
"title": "parseState()",
|
|
4185
4263
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4186
4264
|
"file": "/test/tools.ts",
|
|
@@ -4191,7 +4269,7 @@
|
|
|
4191
4269
|
"title": "should work with empty data",
|
|
4192
4270
|
"fullTitle": "Tools parseState() should work with empty data",
|
|
4193
4271
|
"timedOut": false,
|
|
4194
|
-
"duration":
|
|
4272
|
+
"duration": 0,
|
|
4195
4273
|
"state": "passed",
|
|
4196
4274
|
"speed": "fast",
|
|
4197
4275
|
"pass": true,
|
|
@@ -4200,8 +4278,8 @@
|
|
|
4200
4278
|
"context": null,
|
|
4201
4279
|
"code": "const input = {};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4202
4280
|
"err": {},
|
|
4203
|
-
"uuid": "
|
|
4204
|
-
"parentUUID": "
|
|
4281
|
+
"uuid": "8375c79f-d718-44ec-9470-0f6c772e77a3",
|
|
4282
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4205
4283
|
"isHook": false,
|
|
4206
4284
|
"skipped": false
|
|
4207
4285
|
},
|
|
@@ -4218,8 +4296,8 @@
|
|
|
4218
4296
|
"context": null,
|
|
4219
4297
|
"code": "// @ts-ignore\nconst result = (0, tools_1.parseState)(null, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4220
4298
|
"err": {},
|
|
4221
|
-
"uuid": "
|
|
4222
|
-
"parentUUID": "
|
|
4299
|
+
"uuid": "baef0069-e9ed-4752-9873-da7e1fdc882a",
|
|
4300
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4223
4301
|
"isHook": false,
|
|
4224
4302
|
"skipped": false
|
|
4225
4303
|
},
|
|
@@ -4227,7 +4305,7 @@
|
|
|
4227
4305
|
"title": "should work with example data",
|
|
4228
4306
|
"fullTitle": "Tools parseState() should work with example data",
|
|
4229
4307
|
"timedOut": false,
|
|
4230
|
-
"duration":
|
|
4308
|
+
"duration": 1,
|
|
4231
4309
|
"state": "passed",
|
|
4232
4310
|
"speed": "fast",
|
|
4233
4311
|
"pass": true,
|
|
@@ -4236,8 +4314,8 @@
|
|
|
4236
4314
|
"context": null,
|
|
4237
4315
|
"code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
|
|
4238
4316
|
"err": {},
|
|
4239
|
-
"uuid": "
|
|
4240
|
-
"parentUUID": "
|
|
4317
|
+
"uuid": "19229754-1ca3-4005-a524-212445b53ac7",
|
|
4318
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4241
4319
|
"isHook": false,
|
|
4242
4320
|
"skipped": false
|
|
4243
4321
|
},
|
|
@@ -4254,8 +4332,8 @@
|
|
|
4254
4332
|
"context": null,
|
|
4255
4333
|
"code": "const input = {\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n};\nassert_1.default.throws(() => {\n (0, tools_1.parseState)(input, '', {});\n}, /Got pyatv Error: invalid credentials: 321/);",
|
|
4256
4334
|
"err": {},
|
|
4257
|
-
"uuid": "
|
|
4258
|
-
"parentUUID": "
|
|
4335
|
+
"uuid": "24cecfd0-2bdd-4bda-be88-ee4e43b1d83d",
|
|
4336
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4259
4337
|
"isHook": false,
|
|
4260
4338
|
"skipped": false
|
|
4261
4339
|
},
|
|
@@ -4263,7 +4341,7 @@
|
|
|
4263
4341
|
"title": "should ignore date if it's an invalid date",
|
|
4264
4342
|
"fullTitle": "Tools parseState() should ignore date if it's an invalid date",
|
|
4265
4343
|
"timedOut": false,
|
|
4266
|
-
"duration":
|
|
4344
|
+
"duration": 1,
|
|
4267
4345
|
"state": "passed",
|
|
4268
4346
|
"speed": "fast",
|
|
4269
4347
|
"pass": true,
|
|
@@ -4272,8 +4350,8 @@
|
|
|
4272
4350
|
"context": null,
|
|
4273
4351
|
"code": "const input = { datetime: 'today' };\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4274
4352
|
"err": {},
|
|
4275
|
-
"uuid": "
|
|
4276
|
-
"parentUUID": "
|
|
4353
|
+
"uuid": "e11ea4c0-5197-478e-a058-f1a7b84e02aa",
|
|
4354
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4277
4355
|
"isHook": false,
|
|
4278
4356
|
"skipped": false
|
|
4279
4357
|
},
|
|
@@ -4290,8 +4368,8 @@
|
|
|
4290
4368
|
"context": null,
|
|
4291
4369
|
"code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4292
4370
|
"err": {},
|
|
4293
|
-
"uuid": "
|
|
4294
|
-
"parentUUID": "
|
|
4371
|
+
"uuid": "d07efdc3-3f9b-4a22-bfc3-cb873ea24ec3",
|
|
4372
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4295
4373
|
"isHook": false,
|
|
4296
4374
|
"skipped": false
|
|
4297
4375
|
},
|
|
@@ -4308,26 +4386,26 @@
|
|
|
4308
4386
|
"context": null,
|
|
4309
4387
|
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4310
4388
|
"err": {},
|
|
4311
|
-
"uuid": "
|
|
4312
|
-
"parentUUID": "
|
|
4389
|
+
"uuid": "6a2a28da-6829-4fe8-bd20-9b2f9567f070",
|
|
4390
|
+
"parentUUID": "fe3b254d-36b1-487f-bba4-e47e841eb6ec",
|
|
4313
4391
|
"isHook": false,
|
|
4314
4392
|
"skipped": false
|
|
4315
4393
|
}
|
|
4316
4394
|
],
|
|
4317
4395
|
"suites": [],
|
|
4318
4396
|
"passes": [
|
|
4319
|
-
"
|
|
4320
|
-
"
|
|
4321
|
-
"
|
|
4322
|
-
"
|
|
4323
|
-
"
|
|
4324
|
-
"
|
|
4325
|
-
"
|
|
4397
|
+
"8375c79f-d718-44ec-9470-0f6c772e77a3",
|
|
4398
|
+
"baef0069-e9ed-4752-9873-da7e1fdc882a",
|
|
4399
|
+
"19229754-1ca3-4005-a524-212445b53ac7",
|
|
4400
|
+
"24cecfd0-2bdd-4bda-be88-ee4e43b1d83d",
|
|
4401
|
+
"e11ea4c0-5197-478e-a058-f1a7b84e02aa",
|
|
4402
|
+
"d07efdc3-3f9b-4a22-bfc3-cb873ea24ec3",
|
|
4403
|
+
"6a2a28da-6829-4fe8-bd20-9b2f9567f070"
|
|
4326
4404
|
],
|
|
4327
4405
|
"failures": [],
|
|
4328
4406
|
"pending": [],
|
|
4329
4407
|
"skipped": [],
|
|
4330
|
-
"duration":
|
|
4408
|
+
"duration": 2,
|
|
4331
4409
|
"root": false,
|
|
4332
4410
|
"rootEmpty": false,
|
|
4333
4411
|
"_timeout": 2000
|