@sebbo2002/node-pyatv 4.1.1-develop.1 → 4.2.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/lib/device-events.js +7 -2
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.js +10 -6
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/tools.js +7 -0
- package/dist/lib/tools.js.map +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/docs/coverage/cobertura-coverage.xml +525 -517
- package/docs/coverage/device-event.ts.html +1 -1
- package/docs/coverage/device-events.ts.html +99 -84
- package/docs/coverage/device.ts.html +38 -23
- package/docs/coverage/fake-spawn.ts.html +25 -25
- package/docs/coverage/index.html +24 -24
- package/docs/coverage/index.ts.html +1 -1
- package/docs/coverage/instance.ts.html +1 -1
- package/docs/coverage/tools.ts.html +131 -107
- package/docs/coverage/types.ts.html +5 -2
- package/docs/reference/assets/main.js +1 -1
- package/docs/reference/assets/style.css +4 -0
- 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/NodePyATVMediaType.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/assets/app.css +1 -1
- package/docs/tests/assets/app.js +2 -2
- package/docs/tests/assets/app.js.LICENSE.txt +1 -1
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +650 -593
- package/package.json +15 -15
- package/src/lib/device-events.ts +7 -2
- package/src/lib/device.ts +11 -6
- package/src/lib/tools.ts +8 -0
- package/src/lib/types.ts +1 -0
- package/test/device-events.ts +23 -0
- package/test/device.ts +18 -0
- package/test/tools.ts +15 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stats": {
|
|
3
3
|
"suites": 82,
|
|
4
|
-
"tests":
|
|
5
|
-
"passes":
|
|
4
|
+
"tests": 139,
|
|
5
|
+
"passes": 137,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2021-
|
|
9
|
-
"end": "2021-
|
|
10
|
-
"duration":
|
|
11
|
-
"testsRegistered":
|
|
8
|
+
"start": "2021-11-29T21:03:14.190Z",
|
|
9
|
+
"end": "2021-11-29T21:03:26.400Z",
|
|
10
|
+
"duration": 12210,
|
|
11
|
+
"testsRegistered": 139,
|
|
12
12
|
"passPercent": 100,
|
|
13
|
-
"pendingPercent": 1.
|
|
13
|
+
"pendingPercent": 1.4388489208633095,
|
|
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": "dcc6dd85-22a4-4cdd-911f-4d1f9608a6d2",
|
|
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": "b3121d13-426b-4ffb-a994-abd94eb92576",
|
|
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": "9b32a2cb-3241-4091-a2b4-28bf6d7a83cd",
|
|
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": 1,
|
|
51
51
|
"state": "passed",
|
|
52
52
|
"speed": "fast",
|
|
53
53
|
"pass": true,
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
"context": null,
|
|
57
57
|
"code": "const event = new 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": "c9581f0a-3233-46d8-b634-78ecdb5f1552",
|
|
60
|
+
"parentUUID": "9b32a2cb-3241-4091-a2b4-28bf6d7a83cd",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"c9581f0a-3233-46d8-b634-78ecdb5f1552"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
71
71
|
"skipped": [],
|
|
72
|
-
"duration":
|
|
72
|
+
"duration": 1,
|
|
73
73
|
"root": false,
|
|
74
74
|
"rootEmpty": false,
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "47ed0d97-bdd9-49ca-a9f4-299e93975d0b",
|
|
79
79
|
"title": "get oldValue()",
|
|
80
80
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
81
81
|
"file": "/test/device-event.ts",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"title": "should work",
|
|
87
87
|
"fullTitle": "NodePyATVDeviceEvent get oldValue() should work",
|
|
88
88
|
"timedOut": false,
|
|
89
|
-
"duration":
|
|
89
|
+
"duration": 1,
|
|
90
90
|
"state": "passed",
|
|
91
91
|
"speed": "fast",
|
|
92
92
|
"pass": true,
|
|
@@ -95,26 +95,26 @@
|
|
|
95
95
|
"context": null,
|
|
96
96
|
"code": "const event = new 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": "b671e3a8-2a80-4037-bee4-b8cbfec7cc26",
|
|
99
|
+
"parentUUID": "47ed0d97-bdd9-49ca-a9f4-299e93975d0b",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"b671e3a8-2a80-4037-bee4-b8cbfec7cc26"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
110
110
|
"skipped": [],
|
|
111
|
-
"duration":
|
|
111
|
+
"duration": 1,
|
|
112
112
|
"root": false,
|
|
113
113
|
"rootEmpty": false,
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "fc962879-9d3e-4c9a-937d-46ab353810ac",
|
|
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": "a9a3bc7b-06b8-46ac-86d7-e59ee9a24019",
|
|
138
|
+
"parentUUID": "fc962879-9d3e-4c9a-937d-46ab353810ac",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"a9a3bc7b-06b8-46ac-86d7-e59ee9a24019"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "c5a08143-0516-44de-9596-5d0e48e6f868",
|
|
157
157
|
"title": "get value()",
|
|
158
158
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
159
159
|
"file": "/test/device-event.ts",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"title": "should work",
|
|
165
165
|
"fullTitle": "NodePyATVDeviceEvent get value() should work",
|
|
166
166
|
"timedOut": false,
|
|
167
|
-
"duration":
|
|
167
|
+
"duration": 1,
|
|
168
168
|
"state": "passed",
|
|
169
169
|
"speed": "fast",
|
|
170
170
|
"pass": true,
|
|
@@ -173,26 +173,26 @@
|
|
|
173
173
|
"context": null,
|
|
174
174
|
"code": "const event = new 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": "2312620a-2502-4456-800e-ce65099a3d28",
|
|
177
|
+
"parentUUID": "c5a08143-0516-44de-9596-5d0e48e6f868",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"2312620a-2502-4456-800e-ce65099a3d28"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
188
188
|
"skipped": [],
|
|
189
|
-
"duration":
|
|
189
|
+
"duration": 1,
|
|
190
190
|
"root": false,
|
|
191
191
|
"rootEmpty": false,
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "9b4753e9-4bc9-451b-b009-4b5fb9413145",
|
|
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",
|
|
@@ -212,15 +212,15 @@
|
|
|
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": "0ab8a256-2f5e-4381-b6b1-adaa05e917b8",
|
|
216
|
+
"parentUUID": "9b4753e9-4bc9-451b-b009-4b5fb9413145",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"0ab8a256-2f5e-4381-b6b1-adaa05e917b8"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"_timeout": 2000
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
"uuid": "
|
|
244
|
+
"uuid": "563adb79-a6aa-4b6a-bb33-cdba14b89826",
|
|
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": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
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",
|
|
@@ -270,8 +270,8 @@
|
|
|
270
270
|
"context": null,
|
|
271
271
|
"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.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 device_event_1.default);\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": "669b1a40-adea-430e-bec1-24253efa55fb",
|
|
274
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
"context": null,
|
|
289
289
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\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 device_event_1.default);\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": "22cc4407-a82d-418f-a864-4219afc46b3c",
|
|
292
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
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": 3,
|
|
301
301
|
"state": "passed",
|
|
302
302
|
"speed": "fast",
|
|
303
303
|
"pass": true,
|
|
@@ -306,8 +306,26 @@
|
|
|
306
306
|
"context": null,
|
|
307
307
|
"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.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": "002dcb4b-6e5f-49f9-bbd4-b9b5920fe861",
|
|
310
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
311
|
+
"isHook": false,
|
|
312
|
+
"skipped": false
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"title": "should emit error events on failures",
|
|
316
|
+
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit error events on failures",
|
|
317
|
+
"timedOut": false,
|
|
318
|
+
"duration": 2,
|
|
319
|
+
"state": "passed",
|
|
320
|
+
"speed": "fast",
|
|
321
|
+
"pass": true,
|
|
322
|
+
"fail": false,
|
|
323
|
+
"pending": false,
|
|
324
|
+
"context": null,
|
|
325
|
+
"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.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
|
+
"err": {},
|
|
327
|
+
"uuid": "f0184e19-6bb9-47e3-8316-587479be8dad",
|
|
328
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
311
329
|
"isHook": false,
|
|
312
330
|
"skipped": false
|
|
313
331
|
},
|
|
@@ -324,8 +342,8 @@
|
|
|
324
342
|
"context": null,
|
|
325
343
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 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 if (spawnCounter === 0) {\n cp.onStdIn(() => cp.end());\n }\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n spawnCounter++;\n if (spawnCounter >= 2) {\n cp.end();\n }\n })\n });\n const listener = () => {\n eventCounter++;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n yield device.getState();\n device.off('update', listener);\n assert_1.default.strictEqual(spawnCounter, 2);\n assert_1.default.strictEqual(eventCounter, 1);\n});",
|
|
326
344
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "4e58ad36-b69c-4248-8a35-91c8f514b5f6",
|
|
346
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
329
347
|
"isHook": false,
|
|
330
348
|
"skipped": false
|
|
331
349
|
},
|
|
@@ -342,8 +360,8 @@
|
|
|
342
360
|
"context": null,
|
|
343
361
|
"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.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n let callCounter = 0;\n const error = new Error('This is an error. Be nice.');\n device.once('error', err => {\n assert_1.default.strictEqual(err, error);\n callCounter++;\n });\n const listener = () => {\n throw error;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n device.off('update', listener);\n assert_1.default.strictEqual(callCounter, 1);\n});",
|
|
344
362
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "27fc94be-5d6a-4dad-9458-e64f44770fab",
|
|
364
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
347
365
|
"isHook": false,
|
|
348
366
|
"skipped": false
|
|
349
367
|
},
|
|
@@ -360,31 +378,32 @@
|
|
|
360
378
|
"context": null,
|
|
361
379
|
"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.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 device_event_1.default);\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, types_1.NodePyATVPowerState.off);\n assert_1.default.strictEqual(event.value, 'off');\n assert_1.default.strictEqual(event.value, types_1.NodePyATVPowerState.off);\n assert_1.default.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
362
380
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "64c84c19-da36-4a02-90e2-2f1da8f14974",
|
|
382
|
+
"parentUUID": "b3e86981-0d18-4082-a86e-8918a17bb128",
|
|
365
383
|
"isHook": false,
|
|
366
384
|
"skipped": false
|
|
367
385
|
}
|
|
368
386
|
],
|
|
369
387
|
"suites": [],
|
|
370
388
|
"passes": [
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
389
|
+
"669b1a40-adea-430e-bec1-24253efa55fb",
|
|
390
|
+
"22cc4407-a82d-418f-a864-4219afc46b3c",
|
|
391
|
+
"002dcb4b-6e5f-49f9-bbd4-b9b5920fe861",
|
|
392
|
+
"f0184e19-6bb9-47e3-8316-587479be8dad",
|
|
393
|
+
"4e58ad36-b69c-4248-8a35-91c8f514b5f6",
|
|
394
|
+
"27fc94be-5d6a-4dad-9458-e64f44770fab",
|
|
395
|
+
"64c84c19-da36-4a02-90e2-2f1da8f14974"
|
|
377
396
|
],
|
|
378
397
|
"failures": [],
|
|
379
398
|
"pending": [],
|
|
380
399
|
"skipped": [],
|
|
381
|
-
"duration":
|
|
400
|
+
"duration": 20,
|
|
382
401
|
"root": false,
|
|
383
402
|
"rootEmpty": false,
|
|
384
403
|
"_timeout": 2000
|
|
385
404
|
},
|
|
386
405
|
{
|
|
387
|
-
"uuid": "
|
|
406
|
+
"uuid": "82a1f93d-6958-4926-b5af-18a758c0b365",
|
|
388
407
|
"title": "start|stopListening()",
|
|
389
408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
390
409
|
"file": "/test/device-events.ts",
|
|
@@ -395,7 +414,7 @@
|
|
|
395
414
|
"title": "should emit error if spawn fails",
|
|
396
415
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if spawn fails",
|
|
397
416
|
"timedOut": false,
|
|
398
|
-
"duration":
|
|
417
|
+
"duration": 1,
|
|
399
418
|
"state": "passed",
|
|
400
419
|
"speed": "fast",
|
|
401
420
|
"pass": true,
|
|
@@ -404,8 +423,8 @@
|
|
|
404
423
|
"context": null,
|
|
405
424
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\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.error(error).end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
406
425
|
"err": {},
|
|
407
|
-
"uuid": "
|
|
408
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "d49b4f41-fa2b-4659-af8d-67b559f40c8f",
|
|
427
|
+
"parentUUID": "82a1f93d-6958-4926-b5af-18a758c0b365",
|
|
409
428
|
"isHook": false,
|
|
410
429
|
"skipped": false
|
|
411
430
|
},
|
|
@@ -413,7 +432,7 @@
|
|
|
413
432
|
"title": "should emit error on stderr data",
|
|
414
433
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error on stderr data",
|
|
415
434
|
"timedOut": false,
|
|
416
|
-
"duration":
|
|
435
|
+
"duration": 1,
|
|
417
436
|
"state": "passed",
|
|
418
437
|
"speed": "fast",
|
|
419
438
|
"pass": true,
|
|
@@ -422,8 +441,8 @@
|
|
|
422
441
|
"context": null,
|
|
423
442
|
"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.stderr('Hello World!').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.ok(err instanceof Error);\n assert_1.default.ok(err.toString().includes('Got stderr output from pyatv: Hello World!'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
424
443
|
"err": {},
|
|
425
|
-
"uuid": "
|
|
426
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "9182a197-abc2-43aa-9c6e-af145aebc256",
|
|
445
|
+
"parentUUID": "82a1f93d-6958-4926-b5af-18a758c0b365",
|
|
427
446
|
"isHook": false,
|
|
428
447
|
"skipped": false
|
|
429
448
|
},
|
|
@@ -431,7 +450,7 @@
|
|
|
431
450
|
"title": "should emit error if stdout is not valid json",
|
|
432
451
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if stdout is not valid json",
|
|
433
452
|
"timedOut": false,
|
|
434
|
-
"duration":
|
|
453
|
+
"duration": 2,
|
|
435
454
|
"state": "passed",
|
|
436
455
|
"speed": "fast",
|
|
437
456
|
"pass": true,
|
|
@@ -440,8 +459,8 @@
|
|
|
440
459
|
"context": null,
|
|
441
460
|
"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.stdout('#').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert_1.default.ok(err instanceof Error);\n assert_1.default.ok(err.toString().includes('Unable to parse stdout json: SyntaxError: ' +\n 'Unexpected token # in JSON at position 0'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
442
461
|
"err": {},
|
|
443
|
-
"uuid": "
|
|
444
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "ba381b87-0357-4b13-be38-aa2a5d736c0a",
|
|
463
|
+
"parentUUID": "82a1f93d-6958-4926-b5af-18a758c0b365",
|
|
445
464
|
"isHook": false,
|
|
446
465
|
"skipped": false
|
|
447
466
|
},
|
|
@@ -458,30 +477,30 @@
|
|
|
458
477
|
"context": null,
|
|
459
478
|
"code": "",
|
|
460
479
|
"err": {},
|
|
461
|
-
"uuid": "
|
|
462
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "b2dd1f46-548b-4ac1-96a7-db9c4f97b4ec",
|
|
481
|
+
"parentUUID": "82a1f93d-6958-4926-b5af-18a758c0b365",
|
|
463
482
|
"isHook": false,
|
|
464
483
|
"skipped": false
|
|
465
484
|
}
|
|
466
485
|
],
|
|
467
486
|
"suites": [],
|
|
468
487
|
"passes": [
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
488
|
+
"d49b4f41-fa2b-4659-af8d-67b559f40c8f",
|
|
489
|
+
"9182a197-abc2-43aa-9c6e-af145aebc256",
|
|
490
|
+
"ba381b87-0357-4b13-be38-aa2a5d736c0a"
|
|
472
491
|
],
|
|
473
492
|
"failures": [],
|
|
474
493
|
"pending": [
|
|
475
|
-
"
|
|
494
|
+
"b2dd1f46-548b-4ac1-96a7-db9c4f97b4ec"
|
|
476
495
|
],
|
|
477
496
|
"skipped": [],
|
|
478
|
-
"duration":
|
|
497
|
+
"duration": 4,
|
|
479
498
|
"root": false,
|
|
480
499
|
"rootEmpty": false,
|
|
481
500
|
"_timeout": 2000
|
|
482
501
|
},
|
|
483
502
|
{
|
|
484
|
-
"uuid": "
|
|
503
|
+
"uuid": "d3c0c4fe-fd80-4f84-b576-106a5e57727b",
|
|
485
504
|
"title": "addListener() / removeAllListeners()",
|
|
486
505
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
487
506
|
"file": "/test/device-events.ts",
|
|
@@ -492,7 +511,7 @@
|
|
|
492
511
|
"title": "should work without any exceptions",
|
|
493
512
|
"fullTitle": "NodePyATVDeviceEvents addListener() / removeAllListeners() should work without any exceptions",
|
|
494
513
|
"timedOut": false,
|
|
495
|
-
"duration":
|
|
514
|
+
"duration": 0,
|
|
496
515
|
"state": "passed",
|
|
497
516
|
"speed": "fast",
|
|
498
517
|
"pass": true,
|
|
@@ -501,26 +520,26 @@
|
|
|
501
520
|
"context": null,
|
|
502
521
|
"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.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n device.removeAllListeners('update');\n});",
|
|
503
522
|
"err": {},
|
|
504
|
-
"uuid": "
|
|
505
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "2990dfa0-513c-4cbf-8bed-237f61b907e3",
|
|
524
|
+
"parentUUID": "d3c0c4fe-fd80-4f84-b576-106a5e57727b",
|
|
506
525
|
"isHook": false,
|
|
507
526
|
"skipped": false
|
|
508
527
|
}
|
|
509
528
|
],
|
|
510
529
|
"suites": [],
|
|
511
530
|
"passes": [
|
|
512
|
-
"
|
|
531
|
+
"2990dfa0-513c-4cbf-8bed-237f61b907e3"
|
|
513
532
|
],
|
|
514
533
|
"failures": [],
|
|
515
534
|
"pending": [],
|
|
516
535
|
"skipped": [],
|
|
517
|
-
"duration":
|
|
536
|
+
"duration": 0,
|
|
518
537
|
"root": false,
|
|
519
538
|
"rootEmpty": false,
|
|
520
539
|
"_timeout": 2000
|
|
521
540
|
},
|
|
522
541
|
{
|
|
523
|
-
"uuid": "
|
|
542
|
+
"uuid": "88c23630-b8aa-4696-8496-b9a1cf2dd004",
|
|
524
543
|
"title": "emit()",
|
|
525
544
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
526
545
|
"file": "/test/device-events.ts",
|
|
@@ -531,7 +550,7 @@
|
|
|
531
550
|
"title": "should work",
|
|
532
551
|
"fullTitle": "NodePyATVDeviceEvents emit() should work",
|
|
533
552
|
"timedOut": false,
|
|
534
|
-
"duration":
|
|
553
|
+
"duration": 1,
|
|
535
554
|
"state": "passed",
|
|
536
555
|
"speed": "fast",
|
|
537
556
|
"pass": true,
|
|
@@ -540,26 +559,26 @@
|
|
|
540
559
|
"context": null,
|
|
541
560
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst event = new device_event_1.default({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert_1.default.strictEqual(e, event);\n assert_1.default.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
|
|
542
561
|
"err": {},
|
|
543
|
-
"uuid": "
|
|
544
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "679e239b-143d-4eed-b5b6-7a9ef044b41a",
|
|
563
|
+
"parentUUID": "88c23630-b8aa-4696-8496-b9a1cf2dd004",
|
|
545
564
|
"isHook": false,
|
|
546
565
|
"skipped": false
|
|
547
566
|
}
|
|
548
567
|
],
|
|
549
568
|
"suites": [],
|
|
550
569
|
"passes": [
|
|
551
|
-
"
|
|
570
|
+
"679e239b-143d-4eed-b5b6-7a9ef044b41a"
|
|
552
571
|
],
|
|
553
572
|
"failures": [],
|
|
554
573
|
"pending": [],
|
|
555
574
|
"skipped": [],
|
|
556
|
-
"duration":
|
|
575
|
+
"duration": 1,
|
|
557
576
|
"root": false,
|
|
558
577
|
"rootEmpty": false,
|
|
559
578
|
"_timeout": 2000
|
|
560
579
|
},
|
|
561
580
|
{
|
|
562
|
-
"uuid": "
|
|
581
|
+
"uuid": "79e40f73-0176-4386-9d5c-061d921290ed",
|
|
563
582
|
"title": "eventNames()",
|
|
564
583
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
565
584
|
"file": "/test/device-events.ts",
|
|
@@ -570,7 +589,7 @@
|
|
|
570
589
|
"title": "should work",
|
|
571
590
|
"fullTitle": "NodePyATVDeviceEvents eventNames() should work",
|
|
572
591
|
"timedOut": false,
|
|
573
|
-
"duration":
|
|
592
|
+
"duration": 1,
|
|
574
593
|
"state": "passed",
|
|
575
594
|
"speed": "fast",
|
|
576
595
|
"pass": true,
|
|
@@ -579,26 +598,26 @@
|
|
|
579
598
|
"context": null,
|
|
580
599
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
|
|
581
600
|
"err": {},
|
|
582
|
-
"uuid": "
|
|
583
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "2a6d7168-82ed-4347-8db5-6c1d02b51a2f",
|
|
602
|
+
"parentUUID": "79e40f73-0176-4386-9d5c-061d921290ed",
|
|
584
603
|
"isHook": false,
|
|
585
604
|
"skipped": false
|
|
586
605
|
}
|
|
587
606
|
],
|
|
588
607
|
"suites": [],
|
|
589
608
|
"passes": [
|
|
590
|
-
"
|
|
609
|
+
"2a6d7168-82ed-4347-8db5-6c1d02b51a2f"
|
|
591
610
|
],
|
|
592
611
|
"failures": [],
|
|
593
612
|
"pending": [],
|
|
594
613
|
"skipped": [],
|
|
595
|
-
"duration":
|
|
614
|
+
"duration": 1,
|
|
596
615
|
"root": false,
|
|
597
616
|
"rootEmpty": false,
|
|
598
617
|
"_timeout": 2000
|
|
599
618
|
},
|
|
600
619
|
{
|
|
601
|
-
"uuid": "
|
|
620
|
+
"uuid": "d61f546c-0958-4574-9543-92a23ea97c6e",
|
|
602
621
|
"title": "getMaxListeners()",
|
|
603
622
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
604
623
|
"file": "/test/device-events.ts",
|
|
@@ -618,15 +637,15 @@
|
|
|
618
637
|
"context": null,
|
|
619
638
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert_1.default.ok(typeof result, 'number');\nassert_1.default.ok(result >= 10);",
|
|
620
639
|
"err": {},
|
|
621
|
-
"uuid": "
|
|
622
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "1f918c55-2525-4a8e-8dd6-89af99bd6b69",
|
|
641
|
+
"parentUUID": "d61f546c-0958-4574-9543-92a23ea97c6e",
|
|
623
642
|
"isHook": false,
|
|
624
643
|
"skipped": false
|
|
625
644
|
}
|
|
626
645
|
],
|
|
627
646
|
"suites": [],
|
|
628
647
|
"passes": [
|
|
629
|
-
"
|
|
648
|
+
"1f918c55-2525-4a8e-8dd6-89af99bd6b69"
|
|
630
649
|
],
|
|
631
650
|
"failures": [],
|
|
632
651
|
"pending": [],
|
|
@@ -637,7 +656,7 @@
|
|
|
637
656
|
"_timeout": 2000
|
|
638
657
|
},
|
|
639
658
|
{
|
|
640
|
-
"uuid": "
|
|
659
|
+
"uuid": "0ad92339-612c-47c9-b4a3-cfc4757ba5c1",
|
|
641
660
|
"title": "listenerCount()",
|
|
642
661
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
643
662
|
"file": "/test/device-events.ts",
|
|
@@ -648,7 +667,7 @@
|
|
|
648
667
|
"title": "should work",
|
|
649
668
|
"fullTitle": "NodePyATVDeviceEvents listenerCount() should work",
|
|
650
669
|
"timedOut": false,
|
|
651
|
-
"duration":
|
|
670
|
+
"duration": 1,
|
|
652
671
|
"state": "passed",
|
|
653
672
|
"speed": "fast",
|
|
654
673
|
"pass": true,
|
|
@@ -657,26 +676,26 @@
|
|
|
657
676
|
"context": null,
|
|
658
677
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
|
|
659
678
|
"err": {},
|
|
660
|
-
"uuid": "
|
|
661
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "a741919e-b223-4b0a-a69b-481b5d4dc93b",
|
|
680
|
+
"parentUUID": "0ad92339-612c-47c9-b4a3-cfc4757ba5c1",
|
|
662
681
|
"isHook": false,
|
|
663
682
|
"skipped": false
|
|
664
683
|
}
|
|
665
684
|
],
|
|
666
685
|
"suites": [],
|
|
667
686
|
"passes": [
|
|
668
|
-
"
|
|
687
|
+
"a741919e-b223-4b0a-a69b-481b5d4dc93b"
|
|
669
688
|
],
|
|
670
689
|
"failures": [],
|
|
671
690
|
"pending": [],
|
|
672
691
|
"skipped": [],
|
|
673
|
-
"duration":
|
|
692
|
+
"duration": 1,
|
|
674
693
|
"root": false,
|
|
675
694
|
"rootEmpty": false,
|
|
676
695
|
"_timeout": 2000
|
|
677
696
|
},
|
|
678
697
|
{
|
|
679
|
-
"uuid": "
|
|
698
|
+
"uuid": "a99d9159-8d1a-4914-b0d2-216dbc1911f2",
|
|
680
699
|
"title": "listeners()",
|
|
681
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
682
701
|
"file": "/test/device-events.ts",
|
|
@@ -687,7 +706,7 @@
|
|
|
687
706
|
"title": "should work",
|
|
688
707
|
"fullTitle": "NodePyATVDeviceEvents listeners() should work",
|
|
689
708
|
"timedOut": false,
|
|
690
|
-
"duration":
|
|
709
|
+
"duration": 0,
|
|
691
710
|
"state": "passed",
|
|
692
711
|
"speed": "fast",
|
|
693
712
|
"pass": true,
|
|
@@ -696,26 +715,26 @@
|
|
|
696
715
|
"context": null,
|
|
697
716
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.listeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
698
717
|
"err": {},
|
|
699
|
-
"uuid": "
|
|
700
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "5d8ccecd-06c2-4078-86c3-27a47777fd45",
|
|
719
|
+
"parentUUID": "a99d9159-8d1a-4914-b0d2-216dbc1911f2",
|
|
701
720
|
"isHook": false,
|
|
702
721
|
"skipped": false
|
|
703
722
|
}
|
|
704
723
|
],
|
|
705
724
|
"suites": [],
|
|
706
725
|
"passes": [
|
|
707
|
-
"
|
|
726
|
+
"5d8ccecd-06c2-4078-86c3-27a47777fd45"
|
|
708
727
|
],
|
|
709
728
|
"failures": [],
|
|
710
729
|
"pending": [],
|
|
711
730
|
"skipped": [],
|
|
712
|
-
"duration":
|
|
731
|
+
"duration": 0,
|
|
713
732
|
"root": false,
|
|
714
733
|
"rootEmpty": false,
|
|
715
734
|
"_timeout": 2000
|
|
716
735
|
},
|
|
717
736
|
{
|
|
718
|
-
"uuid": "
|
|
737
|
+
"uuid": "2eec90e5-caa4-42f8-a408-ab23ff1fe3da",
|
|
719
738
|
"title": "prependListener()",
|
|
720
739
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
721
740
|
"file": "/test/device-events.ts",
|
|
@@ -726,7 +745,7 @@
|
|
|
726
745
|
"title": "should work",
|
|
727
746
|
"fullTitle": "NodePyATVDeviceEvents prependListener() should work",
|
|
728
747
|
"timedOut": false,
|
|
729
|
-
"duration":
|
|
748
|
+
"duration": 1,
|
|
730
749
|
"state": "passed",
|
|
731
750
|
"speed": "fast",
|
|
732
751
|
"pass": true,
|
|
@@ -735,26 +754,26 @@
|
|
|
735
754
|
"context": null,
|
|
736
755
|
"code": "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.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\nconst listener = () => {\n device.removeAllListeners('update');\n done();\n};\ndevice.prependListener('update', listener);",
|
|
737
756
|
"err": {},
|
|
738
|
-
"uuid": "
|
|
739
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "30858cb0-58e6-4714-bd3d-51f04250216b",
|
|
758
|
+
"parentUUID": "2eec90e5-caa4-42f8-a408-ab23ff1fe3da",
|
|
740
759
|
"isHook": false,
|
|
741
760
|
"skipped": false
|
|
742
761
|
}
|
|
743
762
|
],
|
|
744
763
|
"suites": [],
|
|
745
764
|
"passes": [
|
|
746
|
-
"
|
|
765
|
+
"30858cb0-58e6-4714-bd3d-51f04250216b"
|
|
747
766
|
],
|
|
748
767
|
"failures": [],
|
|
749
768
|
"pending": [],
|
|
750
769
|
"skipped": [],
|
|
751
|
-
"duration":
|
|
770
|
+
"duration": 1,
|
|
752
771
|
"root": false,
|
|
753
772
|
"rootEmpty": false,
|
|
754
773
|
"_timeout": 2000
|
|
755
774
|
},
|
|
756
775
|
{
|
|
757
|
-
"uuid": "
|
|
776
|
+
"uuid": "3bbdd461-6f2b-4d54-8186-a4a678f1f41c",
|
|
758
777
|
"title": "prependOnceListener()",
|
|
759
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
760
779
|
"file": "/test/device-events.ts",
|
|
@@ -774,15 +793,15 @@
|
|
|
774
793
|
"context": null,
|
|
775
794
|
"code": "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.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\ndevice.prependOnceListener('update', () => done());",
|
|
776
795
|
"err": {},
|
|
777
|
-
"uuid": "
|
|
778
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "4d4c1f94-6e1c-44bf-9722-f358e66f6259",
|
|
797
|
+
"parentUUID": "3bbdd461-6f2b-4d54-8186-a4a678f1f41c",
|
|
779
798
|
"isHook": false,
|
|
780
799
|
"skipped": false
|
|
781
800
|
}
|
|
782
801
|
],
|
|
783
802
|
"suites": [],
|
|
784
803
|
"passes": [
|
|
785
|
-
"
|
|
804
|
+
"4d4c1f94-6e1c-44bf-9722-f358e66f6259"
|
|
786
805
|
],
|
|
787
806
|
"failures": [],
|
|
788
807
|
"pending": [],
|
|
@@ -793,7 +812,7 @@
|
|
|
793
812
|
"_timeout": 2000
|
|
794
813
|
},
|
|
795
814
|
{
|
|
796
|
-
"uuid": "
|
|
815
|
+
"uuid": "def675a7-68ba-4c1c-a187-61511bdc79bd",
|
|
797
816
|
"title": "rawListeners()",
|
|
798
817
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
799
818
|
"file": "/test/device-events.ts",
|
|
@@ -813,15 +832,15 @@
|
|
|
813
832
|
"context": null,
|
|
814
833
|
"code": "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.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert_1.default.deepStrictEqual(device.rawListeners('test').length, 1);\nassert_1.default.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
815
834
|
"err": {},
|
|
816
|
-
"uuid": "
|
|
817
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "20b8489e-64e8-4360-9bc7-78ab8efa8680",
|
|
836
|
+
"parentUUID": "def675a7-68ba-4c1c-a187-61511bdc79bd",
|
|
818
837
|
"isHook": false,
|
|
819
838
|
"skipped": false
|
|
820
839
|
}
|
|
821
840
|
],
|
|
822
841
|
"suites": [],
|
|
823
842
|
"passes": [
|
|
824
|
-
"
|
|
843
|
+
"20b8489e-64e8-4360-9bc7-78ab8efa8680"
|
|
825
844
|
],
|
|
826
845
|
"failures": [],
|
|
827
846
|
"pending": [],
|
|
@@ -832,7 +851,7 @@
|
|
|
832
851
|
"_timeout": 2000
|
|
833
852
|
},
|
|
834
853
|
{
|
|
835
|
-
"uuid": "
|
|
854
|
+
"uuid": "57ace974-4e50-47ec-825a-e0b7f33bd2a4",
|
|
836
855
|
"title": "removeListener()",
|
|
837
856
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
838
857
|
"file": "/test/device-events.ts",
|
|
@@ -843,7 +862,7 @@
|
|
|
843
862
|
"title": "should work without any exceptions",
|
|
844
863
|
"fullTitle": "NodePyATVDeviceEvents removeListener() should work without any exceptions",
|
|
845
864
|
"timedOut": false,
|
|
846
|
-
"duration":
|
|
865
|
+
"duration": 1,
|
|
847
866
|
"state": "passed",
|
|
848
867
|
"speed": "fast",
|
|
849
868
|
"pass": true,
|
|
@@ -852,20 +871,20 @@
|
|
|
852
871
|
"context": null,
|
|
853
872
|
"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.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n assert_1.default.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert_1.default.deepStrictEqual(device.listenerCount('update'), 0);\n});",
|
|
854
873
|
"err": {},
|
|
855
|
-
"uuid": "
|
|
856
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "d68ae7eb-9c70-4141-8184-c780e8f52155",
|
|
875
|
+
"parentUUID": "57ace974-4e50-47ec-825a-e0b7f33bd2a4",
|
|
857
876
|
"isHook": false,
|
|
858
877
|
"skipped": false
|
|
859
878
|
}
|
|
860
879
|
],
|
|
861
880
|
"suites": [],
|
|
862
881
|
"passes": [
|
|
863
|
-
"
|
|
882
|
+
"d68ae7eb-9c70-4141-8184-c780e8f52155"
|
|
864
883
|
],
|
|
865
884
|
"failures": [],
|
|
866
885
|
"pending": [],
|
|
867
886
|
"skipped": [],
|
|
868
|
-
"duration":
|
|
887
|
+
"duration": 1,
|
|
869
888
|
"root": false,
|
|
870
889
|
"rootEmpty": false,
|
|
871
890
|
"_timeout": 2000
|
|
@@ -881,7 +900,7 @@
|
|
|
881
900
|
"_timeout": 2000
|
|
882
901
|
},
|
|
883
902
|
{
|
|
884
|
-
"uuid": "
|
|
903
|
+
"uuid": "a22a227e-abde-4afa-bc64-750ee686f5f1",
|
|
885
904
|
"title": "NodePyATVDevice",
|
|
886
905
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
887
906
|
"file": "/test/device.ts",
|
|
@@ -890,7 +909,7 @@
|
|
|
890
909
|
"tests": [],
|
|
891
910
|
"suites": [
|
|
892
911
|
{
|
|
893
|
-
"uuid": "
|
|
912
|
+
"uuid": "07fe5f18-099d-4aae-a278-37ad45f99240",
|
|
894
913
|
"title": "get name()",
|
|
895
914
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
896
915
|
"file": "/test/device.ts",
|
|
@@ -910,15 +929,15 @@
|
|
|
910
929
|
"context": null,
|
|
911
930
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
912
931
|
"err": {},
|
|
913
|
-
"uuid": "
|
|
914
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "7f31ff54-35fc-48e1-95e0-7532b7500356",
|
|
933
|
+
"parentUUID": "07fe5f18-099d-4aae-a278-37ad45f99240",
|
|
915
934
|
"isHook": false,
|
|
916
935
|
"skipped": false
|
|
917
936
|
}
|
|
918
937
|
],
|
|
919
938
|
"suites": [],
|
|
920
939
|
"passes": [
|
|
921
|
-
"
|
|
940
|
+
"7f31ff54-35fc-48e1-95e0-7532b7500356"
|
|
922
941
|
],
|
|
923
942
|
"failures": [],
|
|
924
943
|
"pending": [],
|
|
@@ -929,7 +948,7 @@
|
|
|
929
948
|
"_timeout": 2000
|
|
930
949
|
},
|
|
931
950
|
{
|
|
932
|
-
"uuid": "
|
|
951
|
+
"uuid": "f7607985-7494-4fb2-a18b-9b6c045e5683",
|
|
933
952
|
"title": "get host()",
|
|
934
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
935
954
|
"file": "/test/device.ts",
|
|
@@ -949,15 +968,15 @@
|
|
|
949
968
|
"context": null,
|
|
950
969
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.host, '192.168.178.2');",
|
|
951
970
|
"err": {},
|
|
952
|
-
"uuid": "
|
|
953
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "0f5b7fa9-e549-4096-b550-eab66cd1fc22",
|
|
972
|
+
"parentUUID": "f7607985-7494-4fb2-a18b-9b6c045e5683",
|
|
954
973
|
"isHook": false,
|
|
955
974
|
"skipped": false
|
|
956
975
|
}
|
|
957
976
|
],
|
|
958
977
|
"suites": [],
|
|
959
978
|
"passes": [
|
|
960
|
-
"
|
|
979
|
+
"0f5b7fa9-e549-4096-b550-eab66cd1fc22"
|
|
961
980
|
],
|
|
962
981
|
"failures": [],
|
|
963
982
|
"pending": [],
|
|
@@ -968,7 +987,7 @@
|
|
|
968
987
|
"_timeout": 2000
|
|
969
988
|
},
|
|
970
989
|
{
|
|
971
|
-
"uuid": "
|
|
990
|
+
"uuid": "fd68ef42-a7d3-45ab-9f2e-06d7aa2f48aa",
|
|
972
991
|
"title": "get id()",
|
|
973
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
974
993
|
"file": "/test/device.ts",
|
|
@@ -988,15 +1007,15 @@
|
|
|
988
1007
|
"context": null,
|
|
989
1008
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert_1.default.strictEqual(device.id, '*****');",
|
|
990
1009
|
"err": {},
|
|
991
|
-
"uuid": "
|
|
992
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "abc59f99-e067-4959-84e4-a074b9929d1f",
|
|
1011
|
+
"parentUUID": "fd68ef42-a7d3-45ab-9f2e-06d7aa2f48aa",
|
|
993
1012
|
"isHook": false,
|
|
994
1013
|
"skipped": false
|
|
995
1014
|
}
|
|
996
1015
|
],
|
|
997
1016
|
"suites": [],
|
|
998
1017
|
"passes": [
|
|
999
|
-
"
|
|
1018
|
+
"abc59f99-e067-4959-84e4-a074b9929d1f"
|
|
1000
1019
|
],
|
|
1001
1020
|
"failures": [],
|
|
1002
1021
|
"pending": [],
|
|
@@ -1007,7 +1026,7 @@
|
|
|
1007
1026
|
"_timeout": 2000
|
|
1008
1027
|
},
|
|
1009
1028
|
{
|
|
1010
|
-
"uuid": "
|
|
1029
|
+
"uuid": "8bf5c26a-64d8-490f-bc98-508390c43440",
|
|
1011
1030
|
"title": "get protocol()",
|
|
1012
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1013
1032
|
"file": "/test/device.ts",
|
|
@@ -1027,15 +1046,15 @@
|
|
|
1027
1046
|
"context": null,
|
|
1028
1047
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.strictEqual(device.protocol, types_1.NodePyATVProtocol.airplay);",
|
|
1029
1048
|
"err": {},
|
|
1030
|
-
"uuid": "
|
|
1031
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "240b0992-d23a-4a61-99f3-e391504ac516",
|
|
1050
|
+
"parentUUID": "8bf5c26a-64d8-490f-bc98-508390c43440",
|
|
1032
1051
|
"isHook": false,
|
|
1033
1052
|
"skipped": false
|
|
1034
1053
|
}
|
|
1035
1054
|
],
|
|
1036
1055
|
"suites": [],
|
|
1037
1056
|
"passes": [
|
|
1038
|
-
"
|
|
1057
|
+
"240b0992-d23a-4a61-99f3-e391504ac516"
|
|
1039
1058
|
],
|
|
1040
1059
|
"failures": [],
|
|
1041
1060
|
"pending": [],
|
|
@@ -1046,7 +1065,7 @@
|
|
|
1046
1065
|
"_timeout": 2000
|
|
1047
1066
|
},
|
|
1048
1067
|
{
|
|
1049
|
-
"uuid": "
|
|
1068
|
+
"uuid": "64236cad-1104-4d39-9f86-c9e5d2e851cd",
|
|
1050
1069
|
"title": "get debug()",
|
|
1051
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1052
1071
|
"file": "/test/device.ts",
|
|
@@ -1066,8 +1085,8 @@
|
|
|
1066
1085
|
"context": null,
|
|
1067
1086
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);",
|
|
1068
1087
|
"err": {},
|
|
1069
|
-
"uuid": "
|
|
1070
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "c78af9ef-6076-4fa2-92f8-e690da5b4172",
|
|
1089
|
+
"parentUUID": "64236cad-1104-4d39-9f86-c9e5d2e851cd",
|
|
1071
1090
|
"isHook": false,
|
|
1072
1091
|
"skipped": false
|
|
1073
1092
|
},
|
|
@@ -1075,7 +1094,7 @@
|
|
|
1075
1094
|
"title": "should return fn if set to custom function",
|
|
1076
1095
|
"fullTitle": "NodePyATVDevice get debug() should return fn if set to custom function",
|
|
1077
1096
|
"timedOut": false,
|
|
1078
|
-
"duration":
|
|
1097
|
+
"duration": 1,
|
|
1079
1098
|
"state": "passed",
|
|
1080
1099
|
"speed": "fast",
|
|
1081
1100
|
"pass": true,
|
|
@@ -1084,8 +1103,8 @@
|
|
|
1084
1103
|
"context": null,
|
|
1085
1104
|
"code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1086
1105
|
"err": {},
|
|
1087
|
-
"uuid": "
|
|
1088
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "6b0937d8-cc63-4d9b-ba35-0fe8f2ac2c91",
|
|
1107
|
+
"parentUUID": "64236cad-1104-4d39-9f86-c9e5d2e851cd",
|
|
1089
1108
|
"isHook": false,
|
|
1090
1109
|
"skipped": false
|
|
1091
1110
|
},
|
|
@@ -1102,28 +1121,28 @@
|
|
|
1102
1121
|
"context": null,
|
|
1103
1122
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1104
1123
|
"err": {},
|
|
1105
|
-
"uuid": "
|
|
1106
|
-
"parentUUID": "
|
|
1124
|
+
"uuid": "f978c375-7e0b-4bc7-a4ba-b22044cb1331",
|
|
1125
|
+
"parentUUID": "64236cad-1104-4d39-9f86-c9e5d2e851cd",
|
|
1107
1126
|
"isHook": false,
|
|
1108
1127
|
"skipped": false
|
|
1109
1128
|
}
|
|
1110
1129
|
],
|
|
1111
1130
|
"suites": [],
|
|
1112
1131
|
"passes": [
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1132
|
+
"c78af9ef-6076-4fa2-92f8-e690da5b4172",
|
|
1133
|
+
"6b0937d8-cc63-4d9b-ba35-0fe8f2ac2c91",
|
|
1134
|
+
"f978c375-7e0b-4bc7-a4ba-b22044cb1331"
|
|
1116
1135
|
],
|
|
1117
1136
|
"failures": [],
|
|
1118
1137
|
"pending": [],
|
|
1119
1138
|
"skipped": [],
|
|
1120
|
-
"duration":
|
|
1139
|
+
"duration": 1,
|
|
1121
1140
|
"root": false,
|
|
1122
1141
|
"rootEmpty": false,
|
|
1123
1142
|
"_timeout": 2000
|
|
1124
1143
|
},
|
|
1125
1144
|
{
|
|
1126
|
-
"uuid": "
|
|
1145
|
+
"uuid": "5bba4d2d-7af6-40e5-ba2d-7a0f0d49b9cf",
|
|
1127
1146
|
"title": "set debug()",
|
|
1128
1147
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1129
1148
|
"file": "/test/device.ts",
|
|
@@ -1143,8 +1162,8 @@
|
|
|
1143
1162
|
"context": null,
|
|
1144
1163
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert_1.default.strictEqual(device.debug, true);",
|
|
1145
1164
|
"err": {},
|
|
1146
|
-
"uuid": "
|
|
1147
|
-
"parentUUID": "
|
|
1165
|
+
"uuid": "0d26089e-456b-4306-a115-3379f7b65ae4",
|
|
1166
|
+
"parentUUID": "5bba4d2d-7af6-40e5-ba2d-7a0f0d49b9cf",
|
|
1148
1167
|
"isHook": false,
|
|
1149
1168
|
"skipped": false
|
|
1150
1169
|
},
|
|
@@ -1161,8 +1180,8 @@
|
|
|
1161
1180
|
"context": null,
|
|
1162
1181
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1163
1182
|
"err": {},
|
|
1164
|
-
"uuid": "
|
|
1165
|
-
"parentUUID": "
|
|
1183
|
+
"uuid": "115e3960-c182-46b7-a3fe-c786d9a23cca",
|
|
1184
|
+
"parentUUID": "5bba4d2d-7af6-40e5-ba2d-7a0f0d49b9cf",
|
|
1166
1185
|
"isHook": false,
|
|
1167
1186
|
"skipped": false
|
|
1168
1187
|
},
|
|
@@ -1170,7 +1189,7 @@
|
|
|
1170
1189
|
"title": "should work for debug = undefined",
|
|
1171
1190
|
"fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
|
|
1172
1191
|
"timedOut": false,
|
|
1173
|
-
"duration":
|
|
1192
|
+
"duration": 0,
|
|
1174
1193
|
"state": "passed",
|
|
1175
1194
|
"speed": "fast",
|
|
1176
1195
|
"pass": true,
|
|
@@ -1179,8 +1198,8 @@
|
|
|
1179
1198
|
"context": null,
|
|
1180
1199
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert_1.default.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert_1.default.strictEqual(device.debug, undefined);",
|
|
1181
1200
|
"err": {},
|
|
1182
|
-
"uuid": "
|
|
1183
|
-
"parentUUID": "
|
|
1201
|
+
"uuid": "9744f65d-1103-419d-8fb2-e13d5c37f673",
|
|
1202
|
+
"parentUUID": "5bba4d2d-7af6-40e5-ba2d-7a0f0d49b9cf",
|
|
1184
1203
|
"isHook": false,
|
|
1185
1204
|
"skipped": false
|
|
1186
1205
|
},
|
|
@@ -1197,29 +1216,29 @@
|
|
|
1197
1216
|
"context": null,
|
|
1198
1217
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nassert_1.default.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert_1.default.strictEqual(device.debug, fn);",
|
|
1199
1218
|
"err": {},
|
|
1200
|
-
"uuid": "
|
|
1201
|
-
"parentUUID": "
|
|
1219
|
+
"uuid": "6558829b-a8f3-49e8-ba99-82cc1740ce0a",
|
|
1220
|
+
"parentUUID": "5bba4d2d-7af6-40e5-ba2d-7a0f0d49b9cf",
|
|
1202
1221
|
"isHook": false,
|
|
1203
1222
|
"skipped": false
|
|
1204
1223
|
}
|
|
1205
1224
|
],
|
|
1206
1225
|
"suites": [],
|
|
1207
1226
|
"passes": [
|
|
1208
|
-
"
|
|
1209
|
-
"
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1227
|
+
"0d26089e-456b-4306-a115-3379f7b65ae4",
|
|
1228
|
+
"115e3960-c182-46b7-a3fe-c786d9a23cca",
|
|
1229
|
+
"9744f65d-1103-419d-8fb2-e13d5c37f673",
|
|
1230
|
+
"6558829b-a8f3-49e8-ba99-82cc1740ce0a"
|
|
1212
1231
|
],
|
|
1213
1232
|
"failures": [],
|
|
1214
1233
|
"pending": [],
|
|
1215
1234
|
"skipped": [],
|
|
1216
|
-
"duration":
|
|
1235
|
+
"duration": 0,
|
|
1217
1236
|
"root": false,
|
|
1218
1237
|
"rootEmpty": false,
|
|
1219
1238
|
"_timeout": 2000
|
|
1220
1239
|
},
|
|
1221
1240
|
{
|
|
1222
|
-
"uuid": "
|
|
1241
|
+
"uuid": "745d0ae2-2612-4b1b-9ef4-c6752d655987",
|
|
1223
1242
|
"title": "toJSON()",
|
|
1224
1243
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1225
1244
|
"file": "/test/device.ts",
|
|
@@ -1230,7 +1249,7 @@
|
|
|
1230
1249
|
"title": "should return a object representation",
|
|
1231
1250
|
"fullTitle": "NodePyATVDevice toJSON() should return a object representation",
|
|
1232
1251
|
"timedOut": false,
|
|
1233
|
-
"duration":
|
|
1252
|
+
"duration": 1,
|
|
1234
1253
|
"state": "passed",
|
|
1235
1254
|
"speed": "fast",
|
|
1236
1255
|
"pass": true,
|
|
@@ -1239,8 +1258,8 @@
|
|
|
1239
1258
|
"context": null,
|
|
1240
1259
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});\nassert_1.default.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n});",
|
|
1241
1260
|
"err": {},
|
|
1242
|
-
"uuid": "
|
|
1243
|
-
"parentUUID": "
|
|
1261
|
+
"uuid": "b4ad424d-d36a-4563-a7ae-cbe7fb8c47e2",
|
|
1262
|
+
"parentUUID": "745d0ae2-2612-4b1b-9ef4-c6752d655987",
|
|
1244
1263
|
"isHook": false,
|
|
1245
1264
|
"skipped": false
|
|
1246
1265
|
},
|
|
@@ -1248,7 +1267,7 @@
|
|
|
1248
1267
|
"title": "should be possible to create a new device from this",
|
|
1249
1268
|
"fullTitle": "NodePyATVDevice toJSON() should be possible to create a new device from this",
|
|
1250
1269
|
"timedOut": false,
|
|
1251
|
-
"duration":
|
|
1270
|
+
"duration": 0,
|
|
1252
1271
|
"state": "passed",
|
|
1253
1272
|
"speed": "fast",
|
|
1254
1273
|
"pass": true,
|
|
@@ -1257,16 +1276,16 @@
|
|
|
1257
1276
|
"context": null,
|
|
1258
1277
|
"code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: types_1.NodePyATVProtocol.airplay\n};\nconst deviceA = new device_1.default(config);\nconst deviceB = new device_1.default(deviceA.toJSON());\nassert_1.default.deepEqual(deviceB.toJSON(), config);",
|
|
1259
1278
|
"err": {},
|
|
1260
|
-
"uuid": "
|
|
1261
|
-
"parentUUID": "
|
|
1279
|
+
"uuid": "43b13ff0-bd65-4717-aca0-adf3f8eb50be",
|
|
1280
|
+
"parentUUID": "745d0ae2-2612-4b1b-9ef4-c6752d655987",
|
|
1262
1281
|
"isHook": false,
|
|
1263
1282
|
"skipped": false
|
|
1264
1283
|
}
|
|
1265
1284
|
],
|
|
1266
1285
|
"suites": [],
|
|
1267
1286
|
"passes": [
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1287
|
+
"b4ad424d-d36a-4563-a7ae-cbe7fb8c47e2",
|
|
1288
|
+
"43b13ff0-bd65-4717-aca0-adf3f8eb50be"
|
|
1270
1289
|
],
|
|
1271
1290
|
"failures": [],
|
|
1272
1291
|
"pending": [],
|
|
@@ -1277,7 +1296,7 @@
|
|
|
1277
1296
|
"_timeout": 2000
|
|
1278
1297
|
},
|
|
1279
1298
|
{
|
|
1280
|
-
"uuid": "
|
|
1299
|
+
"uuid": "c6b23e07-6c1e-4a4d-a95e-885e7c896c40",
|
|
1281
1300
|
"title": "toString()",
|
|
1282
1301
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1283
1302
|
"file": "/test/device.ts",
|
|
@@ -1288,7 +1307,7 @@
|
|
|
1288
1307
|
"title": "should work",
|
|
1289
1308
|
"fullTitle": "NodePyATVDevice toString() should work",
|
|
1290
1309
|
"timedOut": false,
|
|
1291
|
-
"duration":
|
|
1310
|
+
"duration": 0,
|
|
1292
1311
|
"state": "passed",
|
|
1293
1312
|
"speed": "fast",
|
|
1294
1313
|
"pass": true,
|
|
@@ -1297,26 +1316,26 @@
|
|
|
1297
1316
|
"context": null,
|
|
1298
1317
|
"code": "const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert_1.default.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
|
|
1299
1318
|
"err": {},
|
|
1300
|
-
"uuid": "
|
|
1301
|
-
"parentUUID": "
|
|
1319
|
+
"uuid": "9240855d-4214-452f-93c3-28c6968b0052",
|
|
1320
|
+
"parentUUID": "c6b23e07-6c1e-4a4d-a95e-885e7c896c40",
|
|
1302
1321
|
"isHook": false,
|
|
1303
1322
|
"skipped": false
|
|
1304
1323
|
}
|
|
1305
1324
|
],
|
|
1306
1325
|
"suites": [],
|
|
1307
1326
|
"passes": [
|
|
1308
|
-
"
|
|
1327
|
+
"9240855d-4214-452f-93c3-28c6968b0052"
|
|
1309
1328
|
],
|
|
1310
1329
|
"failures": [],
|
|
1311
1330
|
"pending": [],
|
|
1312
1331
|
"skipped": [],
|
|
1313
|
-
"duration":
|
|
1332
|
+
"duration": 0,
|
|
1314
1333
|
"root": false,
|
|
1315
1334
|
"rootEmpty": false,
|
|
1316
1335
|
"_timeout": 2000
|
|
1317
1336
|
},
|
|
1318
1337
|
{
|
|
1319
|
-
"uuid": "
|
|
1338
|
+
"uuid": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1320
1339
|
"title": "getState()",
|
|
1321
1340
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1322
1341
|
"file": "/test/device.ts",
|
|
@@ -1336,8 +1355,8 @@
|
|
|
1336
1355
|
"context": null,
|
|
1337
1356
|
"code": "",
|
|
1338
1357
|
"err": {},
|
|
1339
|
-
"uuid": "
|
|
1340
|
-
"parentUUID": "
|
|
1358
|
+
"uuid": "fc1a4074-825a-4a69-8905-064e37f9ddd0",
|
|
1359
|
+
"parentUUID": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1341
1360
|
"isHook": false,
|
|
1342
1361
|
"skipped": false
|
|
1343
1362
|
},
|
|
@@ -1354,8 +1373,26 @@
|
|
|
1354
1373
|
"context": null,
|
|
1355
1374
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const result = yield device.getState();\n assert_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
|
|
1356
1375
|
"err": {},
|
|
1357
|
-
"uuid": "
|
|
1358
|
-
"parentUUID": "
|
|
1376
|
+
"uuid": "fb716122-da78-44ee-a2c1-3e97897cec2c",
|
|
1377
|
+
"parentUUID": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1378
|
+
"isHook": false,
|
|
1379
|
+
"skipped": false
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"title": "should reject with error if pyatv fails",
|
|
1383
|
+
"fullTitle": "NodePyATVDevice getState() should reject with error if pyatv fails",
|
|
1384
|
+
"timedOut": false,
|
|
1385
|
+
"duration": 0,
|
|
1386
|
+
"state": "passed",
|
|
1387
|
+
"speed": "fast",
|
|
1388
|
+
"pass": true,
|
|
1389
|
+
"fail": false,
|
|
1390
|
+
"pending": false,
|
|
1391
|
+
"context": null,
|
|
1392
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.getState();\n }), /Got pyatv Error: invalid credentials: 321/);\n});",
|
|
1393
|
+
"err": {},
|
|
1394
|
+
"uuid": "d6628714-5028-4352-889d-658354ade0bb",
|
|
1395
|
+
"parentUUID": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1359
1396
|
"isHook": false,
|
|
1360
1397
|
"skipped": false
|
|
1361
1398
|
},
|
|
@@ -1363,7 +1400,7 @@
|
|
|
1363
1400
|
"title": "should cache requests for a bit",
|
|
1364
1401
|
"fullTitle": "NodePyATVDevice getState() should cache requests for a bit",
|
|
1365
1402
|
"timedOut": false,
|
|
1366
|
-
"duration":
|
|
1403
|
+
"duration": 2,
|
|
1367
1404
|
"state": "passed",
|
|
1368
1405
|
"speed": "fast",
|
|
1369
1406
|
"pass": true,
|
|
@@ -1372,8 +1409,8 @@
|
|
|
1372
1409
|
"context": null,
|
|
1373
1410
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: new Date().toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n const secondResult = yield device.getState();\n assert_1.default.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert_1.default.strictEqual(executions, 1);\n});",
|
|
1374
1411
|
"err": {},
|
|
1375
|
-
"uuid": "
|
|
1376
|
-
"parentUUID": "
|
|
1412
|
+
"uuid": "64bd40cd-a31b-48c9-8fef-751539162507",
|
|
1413
|
+
"parentUUID": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1377
1414
|
"isHook": false,
|
|
1378
1415
|
"skipped": false
|
|
1379
1416
|
},
|
|
@@ -1390,30 +1427,31 @@
|
|
|
1390
1427
|
"context": null,
|
|
1391
1428
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: new Date(new Date().getTime() - 1000).toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n assert_1.default.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert_1.default.ok(secondResult.position);\n assert_1.default.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert_1.default.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
|
|
1392
1429
|
"err": {},
|
|
1393
|
-
"uuid": "
|
|
1394
|
-
"parentUUID": "
|
|
1430
|
+
"uuid": "5a608e7c-c48b-4c51-8c20-767ffd41817c",
|
|
1431
|
+
"parentUUID": "8f717813-0c18-4198-a145-9f042dd2bee7",
|
|
1395
1432
|
"isHook": false,
|
|
1396
1433
|
"skipped": false
|
|
1397
1434
|
}
|
|
1398
1435
|
],
|
|
1399
1436
|
"suites": [],
|
|
1400
1437
|
"passes": [
|
|
1401
|
-
"
|
|
1402
|
-
"
|
|
1403
|
-
"
|
|
1438
|
+
"fb716122-da78-44ee-a2c1-3e97897cec2c",
|
|
1439
|
+
"d6628714-5028-4352-889d-658354ade0bb",
|
|
1440
|
+
"64bd40cd-a31b-48c9-8fef-751539162507",
|
|
1441
|
+
"5a608e7c-c48b-4c51-8c20-767ffd41817c"
|
|
1404
1442
|
],
|
|
1405
1443
|
"failures": [],
|
|
1406
1444
|
"pending": [
|
|
1407
|
-
"
|
|
1445
|
+
"fc1a4074-825a-4a69-8905-064e37f9ddd0"
|
|
1408
1446
|
],
|
|
1409
1447
|
"skipped": [],
|
|
1410
|
-
"duration":
|
|
1448
|
+
"duration": 6,
|
|
1411
1449
|
"root": false,
|
|
1412
1450
|
"rootEmpty": false,
|
|
1413
1451
|
"_timeout": 2000
|
|
1414
1452
|
},
|
|
1415
1453
|
{
|
|
1416
|
-
"uuid": "
|
|
1454
|
+
"uuid": "b2433652-f7f2-443b-83a3-b704b19ee9f4",
|
|
1417
1455
|
"title": "clearState()",
|
|
1418
1456
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1419
1457
|
"file": "/test/device.ts",
|
|
@@ -1424,7 +1462,7 @@
|
|
|
1424
1462
|
"title": "should work",
|
|
1425
1463
|
"fullTitle": "NodePyATVDevice clearState() should work",
|
|
1426
1464
|
"timedOut": false,
|
|
1427
|
-
"duration":
|
|
1465
|
+
"duration": 3,
|
|
1428
1466
|
"state": "passed",
|
|
1429
1467
|
"speed": "fast",
|
|
1430
1468
|
"pass": true,
|
|
@@ -1433,26 +1471,26 @@
|
|
|
1433
1471
|
"context": null,
|
|
1434
1472
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n title: 'Solo: A Star Wars Story'\n });\n })\n });\n assert_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert_1.default.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert_1.default.strictEqual(executions, 2);\n});",
|
|
1435
1473
|
"err": {},
|
|
1436
|
-
"uuid": "
|
|
1437
|
-
"parentUUID": "
|
|
1474
|
+
"uuid": "a08ed459-a520-47bb-90bf-a63a318e1b66",
|
|
1475
|
+
"parentUUID": "b2433652-f7f2-443b-83a3-b704b19ee9f4",
|
|
1438
1476
|
"isHook": false,
|
|
1439
1477
|
"skipped": false
|
|
1440
1478
|
}
|
|
1441
1479
|
],
|
|
1442
1480
|
"suites": [],
|
|
1443
1481
|
"passes": [
|
|
1444
|
-
"
|
|
1482
|
+
"a08ed459-a520-47bb-90bf-a63a318e1b66"
|
|
1445
1483
|
],
|
|
1446
1484
|
"failures": [],
|
|
1447
1485
|
"pending": [],
|
|
1448
1486
|
"skipped": [],
|
|
1449
|
-
"duration":
|
|
1487
|
+
"duration": 3,
|
|
1450
1488
|
"root": false,
|
|
1451
1489
|
"rootEmpty": false,
|
|
1452
1490
|
"_timeout": 2000
|
|
1453
1491
|
},
|
|
1454
1492
|
{
|
|
1455
|
-
"uuid": "
|
|
1493
|
+
"uuid": "82599e35-0c6f-461e-b144-4c4da0f5e1ab",
|
|
1456
1494
|
"title": "getDateTime()",
|
|
1457
1495
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1458
1496
|
"file": "/test/device.ts",
|
|
@@ -1472,15 +1510,15 @@
|
|
|
1472
1510
|
"context": null,
|
|
1473
1511
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert_1.default.ok(result instanceof Date);\n});",
|
|
1474
1512
|
"err": {},
|
|
1475
|
-
"uuid": "
|
|
1476
|
-
"parentUUID": "
|
|
1513
|
+
"uuid": "e40dce95-ca14-4fee-b80b-63b7ea943d21",
|
|
1514
|
+
"parentUUID": "82599e35-0c6f-461e-b144-4c4da0f5e1ab",
|
|
1477
1515
|
"isHook": false,
|
|
1478
1516
|
"skipped": false
|
|
1479
1517
|
}
|
|
1480
1518
|
],
|
|
1481
1519
|
"suites": [],
|
|
1482
1520
|
"passes": [
|
|
1483
|
-
"
|
|
1521
|
+
"e40dce95-ca14-4fee-b80b-63b7ea943d21"
|
|
1484
1522
|
],
|
|
1485
1523
|
"failures": [],
|
|
1486
1524
|
"pending": [],
|
|
@@ -1491,7 +1529,7 @@
|
|
|
1491
1529
|
"_timeout": 2000
|
|
1492
1530
|
},
|
|
1493
1531
|
{
|
|
1494
|
-
"uuid": "
|
|
1532
|
+
"uuid": "14508526-c9c3-41a7-b933-24c54c1795f7",
|
|
1495
1533
|
"title": "getHash()",
|
|
1496
1534
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1497
1535
|
"file": "/test/device.ts",
|
|
@@ -1511,15 +1549,15 @@
|
|
|
1511
1549
|
"context": null,
|
|
1512
1550
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert_1.default.strictEqual(result, '12345');\n});",
|
|
1513
1551
|
"err": {},
|
|
1514
|
-
"uuid": "
|
|
1515
|
-
"parentUUID": "
|
|
1552
|
+
"uuid": "42ad553a-c3f9-46be-985e-066fc0673da7",
|
|
1553
|
+
"parentUUID": "14508526-c9c3-41a7-b933-24c54c1795f7",
|
|
1516
1554
|
"isHook": false,
|
|
1517
1555
|
"skipped": false
|
|
1518
1556
|
}
|
|
1519
1557
|
],
|
|
1520
1558
|
"suites": [],
|
|
1521
1559
|
"passes": [
|
|
1522
|
-
"
|
|
1560
|
+
"42ad553a-c3f9-46be-985e-066fc0673da7"
|
|
1523
1561
|
],
|
|
1524
1562
|
"failures": [],
|
|
1525
1563
|
"pending": [],
|
|
@@ -1530,7 +1568,7 @@
|
|
|
1530
1568
|
"_timeout": 2000
|
|
1531
1569
|
},
|
|
1532
1570
|
{
|
|
1533
|
-
"uuid": "
|
|
1571
|
+
"uuid": "ded66867-788b-49fd-9c89-7e689cbdb089",
|
|
1534
1572
|
"title": "getMediaType()",
|
|
1535
1573
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1536
1574
|
"file": "/test/device.ts",
|
|
@@ -1550,15 +1588,15 @@
|
|
|
1550
1588
|
"context": null,
|
|
1551
1589
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVMediaType.video);\n assert_1.default.deepStrictEqual(result, 'video');\n});",
|
|
1552
1590
|
"err": {},
|
|
1553
|
-
"uuid": "
|
|
1554
|
-
"parentUUID": "
|
|
1591
|
+
"uuid": "4698833e-aa10-4478-af41-ee9ae8cafde1",
|
|
1592
|
+
"parentUUID": "ded66867-788b-49fd-9c89-7e689cbdb089",
|
|
1555
1593
|
"isHook": false,
|
|
1556
1594
|
"skipped": false
|
|
1557
1595
|
}
|
|
1558
1596
|
],
|
|
1559
1597
|
"suites": [],
|
|
1560
1598
|
"passes": [
|
|
1561
|
-
"
|
|
1599
|
+
"4698833e-aa10-4478-af41-ee9ae8cafde1"
|
|
1562
1600
|
],
|
|
1563
1601
|
"failures": [],
|
|
1564
1602
|
"pending": [],
|
|
@@ -1569,7 +1607,7 @@
|
|
|
1569
1607
|
"_timeout": 2000
|
|
1570
1608
|
},
|
|
1571
1609
|
{
|
|
1572
|
-
"uuid": "
|
|
1610
|
+
"uuid": "1dcca381-9d72-4f29-9c1c-5fa16d4be1c2",
|
|
1573
1611
|
"title": "getDeviceState()",
|
|
1574
1612
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1575
1613
|
"file": "/test/device.ts",
|
|
@@ -1589,15 +1627,15 @@
|
|
|
1589
1627
|
"context": null,
|
|
1590
1628
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVDeviceState.seeking);\n assert_1.default.deepStrictEqual(result, 'seeking');\n});",
|
|
1591
1629
|
"err": {},
|
|
1592
|
-
"uuid": "
|
|
1593
|
-
"parentUUID": "
|
|
1630
|
+
"uuid": "b3739ef1-3d01-49be-9e3a-740ddcdb833f",
|
|
1631
|
+
"parentUUID": "1dcca381-9d72-4f29-9c1c-5fa16d4be1c2",
|
|
1594
1632
|
"isHook": false,
|
|
1595
1633
|
"skipped": false
|
|
1596
1634
|
}
|
|
1597
1635
|
],
|
|
1598
1636
|
"suites": [],
|
|
1599
1637
|
"passes": [
|
|
1600
|
-
"
|
|
1638
|
+
"b3739ef1-3d01-49be-9e3a-740ddcdb833f"
|
|
1601
1639
|
],
|
|
1602
1640
|
"failures": [],
|
|
1603
1641
|
"pending": [],
|
|
@@ -1608,7 +1646,7 @@
|
|
|
1608
1646
|
"_timeout": 2000
|
|
1609
1647
|
},
|
|
1610
1648
|
{
|
|
1611
|
-
"uuid": "
|
|
1649
|
+
"uuid": "cdb8eabb-e865-42c1-97fe-926dfb8dcee5",
|
|
1612
1650
|
"title": "getTitle()",
|
|
1613
1651
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1614
1652
|
"file": "/test/device.ts",
|
|
@@ -1628,15 +1666,15 @@
|
|
|
1628
1666
|
"context": null,
|
|
1629
1667
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert_1.default.strictEqual(result, 'My Movie');\n});",
|
|
1630
1668
|
"err": {},
|
|
1631
|
-
"uuid": "
|
|
1632
|
-
"parentUUID": "
|
|
1669
|
+
"uuid": "aca3e006-a7b8-4446-9a13-a55742d055c8",
|
|
1670
|
+
"parentUUID": "cdb8eabb-e865-42c1-97fe-926dfb8dcee5",
|
|
1633
1671
|
"isHook": false,
|
|
1634
1672
|
"skipped": false
|
|
1635
1673
|
}
|
|
1636
1674
|
],
|
|
1637
1675
|
"suites": [],
|
|
1638
1676
|
"passes": [
|
|
1639
|
-
"
|
|
1677
|
+
"aca3e006-a7b8-4446-9a13-a55742d055c8"
|
|
1640
1678
|
],
|
|
1641
1679
|
"failures": [],
|
|
1642
1680
|
"pending": [],
|
|
@@ -1647,7 +1685,7 @@
|
|
|
1647
1685
|
"_timeout": 2000
|
|
1648
1686
|
},
|
|
1649
1687
|
{
|
|
1650
|
-
"uuid": "
|
|
1688
|
+
"uuid": "7d3981ae-6cf4-4f66-9f48-7dd9d1d6abd7",
|
|
1651
1689
|
"title": "getArtist()",
|
|
1652
1690
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1653
1691
|
"file": "/test/device.ts",
|
|
@@ -1667,15 +1705,15 @@
|
|
|
1667
1705
|
"context": null,
|
|
1668
1706
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert_1.default.strictEqual(result, 'My Artist');\n});",
|
|
1669
1707
|
"err": {},
|
|
1670
|
-
"uuid": "
|
|
1671
|
-
"parentUUID": "
|
|
1708
|
+
"uuid": "67ed939f-59aa-4488-8c53-b05b193dcccf",
|
|
1709
|
+
"parentUUID": "7d3981ae-6cf4-4f66-9f48-7dd9d1d6abd7",
|
|
1672
1710
|
"isHook": false,
|
|
1673
1711
|
"skipped": false
|
|
1674
1712
|
}
|
|
1675
1713
|
],
|
|
1676
1714
|
"suites": [],
|
|
1677
1715
|
"passes": [
|
|
1678
|
-
"
|
|
1716
|
+
"67ed939f-59aa-4488-8c53-b05b193dcccf"
|
|
1679
1717
|
],
|
|
1680
1718
|
"failures": [],
|
|
1681
1719
|
"pending": [],
|
|
@@ -1686,7 +1724,7 @@
|
|
|
1686
1724
|
"_timeout": 2000
|
|
1687
1725
|
},
|
|
1688
1726
|
{
|
|
1689
|
-
"uuid": "
|
|
1727
|
+
"uuid": "fb31dc98-8ffd-453e-8a2b-25c13aed211c",
|
|
1690
1728
|
"title": "getAlbum()",
|
|
1691
1729
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1692
1730
|
"file": "/test/device.ts",
|
|
@@ -1697,7 +1735,7 @@
|
|
|
1697
1735
|
"title": "should work",
|
|
1698
1736
|
"fullTitle": "NodePyATVDevice getAlbum() should work",
|
|
1699
1737
|
"timedOut": false,
|
|
1700
|
-
"duration":
|
|
1738
|
+
"duration": 2,
|
|
1701
1739
|
"state": "passed",
|
|
1702
1740
|
"speed": "fast",
|
|
1703
1741
|
"pass": true,
|
|
@@ -1706,26 +1744,26 @@
|
|
|
1706
1744
|
"context": null,
|
|
1707
1745
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert_1.default.strictEqual(result, 'My ALbum');\n});",
|
|
1708
1746
|
"err": {},
|
|
1709
|
-
"uuid": "
|
|
1710
|
-
"parentUUID": "
|
|
1747
|
+
"uuid": "f5702de6-de76-4ce0-9037-f72ba9636c16",
|
|
1748
|
+
"parentUUID": "fb31dc98-8ffd-453e-8a2b-25c13aed211c",
|
|
1711
1749
|
"isHook": false,
|
|
1712
1750
|
"skipped": false
|
|
1713
1751
|
}
|
|
1714
1752
|
],
|
|
1715
1753
|
"suites": [],
|
|
1716
1754
|
"passes": [
|
|
1717
|
-
"
|
|
1755
|
+
"f5702de6-de76-4ce0-9037-f72ba9636c16"
|
|
1718
1756
|
],
|
|
1719
1757
|
"failures": [],
|
|
1720
1758
|
"pending": [],
|
|
1721
1759
|
"skipped": [],
|
|
1722
|
-
"duration":
|
|
1760
|
+
"duration": 2,
|
|
1723
1761
|
"root": false,
|
|
1724
1762
|
"rootEmpty": false,
|
|
1725
1763
|
"_timeout": 2000
|
|
1726
1764
|
},
|
|
1727
1765
|
{
|
|
1728
|
-
"uuid": "
|
|
1766
|
+
"uuid": "b5b70bac-cd25-47cf-9209-7f3cf8c0ec86",
|
|
1729
1767
|
"title": "getGenre()",
|
|
1730
1768
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1731
1769
|
"file": "/test/device.ts",
|
|
@@ -1745,15 +1783,15 @@
|
|
|
1745
1783
|
"context": null,
|
|
1746
1784
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert_1.default.strictEqual(result, 'My Genre');\n});",
|
|
1747
1785
|
"err": {},
|
|
1748
|
-
"uuid": "
|
|
1749
|
-
"parentUUID": "
|
|
1786
|
+
"uuid": "ebcc4fd5-d13a-470b-9651-4e19f8ed2a2a",
|
|
1787
|
+
"parentUUID": "b5b70bac-cd25-47cf-9209-7f3cf8c0ec86",
|
|
1750
1788
|
"isHook": false,
|
|
1751
1789
|
"skipped": false
|
|
1752
1790
|
}
|
|
1753
1791
|
],
|
|
1754
1792
|
"suites": [],
|
|
1755
1793
|
"passes": [
|
|
1756
|
-
"
|
|
1794
|
+
"ebcc4fd5-d13a-470b-9651-4e19f8ed2a2a"
|
|
1757
1795
|
],
|
|
1758
1796
|
"failures": [],
|
|
1759
1797
|
"pending": [],
|
|
@@ -1764,7 +1802,7 @@
|
|
|
1764
1802
|
"_timeout": 2000
|
|
1765
1803
|
},
|
|
1766
1804
|
{
|
|
1767
|
-
"uuid": "
|
|
1805
|
+
"uuid": "0ff6cf03-bb3d-4993-8e0a-e04c8cc5c88e",
|
|
1768
1806
|
"title": "getTotalTime()",
|
|
1769
1807
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1770
1808
|
"file": "/test/device.ts",
|
|
@@ -1784,15 +1822,15 @@
|
|
|
1784
1822
|
"context": null,
|
|
1785
1823
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert_1.default.strictEqual(result, 45);\n});",
|
|
1786
1824
|
"err": {},
|
|
1787
|
-
"uuid": "
|
|
1788
|
-
"parentUUID": "
|
|
1825
|
+
"uuid": "45618a23-c9c8-4012-bea2-8a9a2ccedba9",
|
|
1826
|
+
"parentUUID": "0ff6cf03-bb3d-4993-8e0a-e04c8cc5c88e",
|
|
1789
1827
|
"isHook": false,
|
|
1790
1828
|
"skipped": false
|
|
1791
1829
|
}
|
|
1792
1830
|
],
|
|
1793
1831
|
"suites": [],
|
|
1794
1832
|
"passes": [
|
|
1795
|
-
"
|
|
1833
|
+
"45618a23-c9c8-4012-bea2-8a9a2ccedba9"
|
|
1796
1834
|
],
|
|
1797
1835
|
"failures": [],
|
|
1798
1836
|
"pending": [],
|
|
@@ -1803,7 +1841,7 @@
|
|
|
1803
1841
|
"_timeout": 2000
|
|
1804
1842
|
},
|
|
1805
1843
|
{
|
|
1806
|
-
"uuid": "
|
|
1844
|
+
"uuid": "93ec7859-a76f-45cd-85a7-8245e552aed8",
|
|
1807
1845
|
"title": "getPosition()",
|
|
1808
1846
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1809
1847
|
"file": "/test/device.ts",
|
|
@@ -1814,7 +1852,7 @@
|
|
|
1814
1852
|
"title": "should work",
|
|
1815
1853
|
"fullTitle": "NodePyATVDevice getPosition() should work",
|
|
1816
1854
|
"timedOut": false,
|
|
1817
|
-
"duration":
|
|
1855
|
+
"duration": 3,
|
|
1818
1856
|
"state": "passed",
|
|
1819
1857
|
"speed": "fast",
|
|
1820
1858
|
"pass": true,
|
|
@@ -1823,26 +1861,26 @@
|
|
|
1823
1861
|
"context": null,
|
|
1824
1862
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert_1.default.strictEqual(result, 30);\n});",
|
|
1825
1863
|
"err": {},
|
|
1826
|
-
"uuid": "
|
|
1827
|
-
"parentUUID": "
|
|
1864
|
+
"uuid": "65c4da49-fce4-43c8-b877-c5245a30831d",
|
|
1865
|
+
"parentUUID": "93ec7859-a76f-45cd-85a7-8245e552aed8",
|
|
1828
1866
|
"isHook": false,
|
|
1829
1867
|
"skipped": false
|
|
1830
1868
|
}
|
|
1831
1869
|
],
|
|
1832
1870
|
"suites": [],
|
|
1833
1871
|
"passes": [
|
|
1834
|
-
"
|
|
1872
|
+
"65c4da49-fce4-43c8-b877-c5245a30831d"
|
|
1835
1873
|
],
|
|
1836
1874
|
"failures": [],
|
|
1837
1875
|
"pending": [],
|
|
1838
1876
|
"skipped": [],
|
|
1839
|
-
"duration":
|
|
1877
|
+
"duration": 3,
|
|
1840
1878
|
"root": false,
|
|
1841
1879
|
"rootEmpty": false,
|
|
1842
1880
|
"_timeout": 2000
|
|
1843
1881
|
},
|
|
1844
1882
|
{
|
|
1845
|
-
"uuid": "
|
|
1883
|
+
"uuid": "c1bc55c0-966a-4564-9a27-859e949cf550",
|
|
1846
1884
|
"title": "getShuffle()",
|
|
1847
1885
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1848
1886
|
"file": "/test/device.ts",
|
|
@@ -1853,7 +1891,7 @@
|
|
|
1853
1891
|
"title": "should work",
|
|
1854
1892
|
"fullTitle": "NodePyATVDevice getShuffle() should work",
|
|
1855
1893
|
"timedOut": false,
|
|
1856
|
-
"duration":
|
|
1894
|
+
"duration": 2,
|
|
1857
1895
|
"state": "passed",
|
|
1858
1896
|
"speed": "fast",
|
|
1859
1897
|
"pass": true,
|
|
@@ -1862,26 +1900,26 @@
|
|
|
1862
1900
|
"context": null,
|
|
1863
1901
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVShuffleState.songs);\n assert_1.default.deepStrictEqual(result, 'songs');\n});",
|
|
1864
1902
|
"err": {},
|
|
1865
|
-
"uuid": "
|
|
1866
|
-
"parentUUID": "
|
|
1903
|
+
"uuid": "66a4b5d7-7241-4bcd-8dc4-c57c149cf9d6",
|
|
1904
|
+
"parentUUID": "c1bc55c0-966a-4564-9a27-859e949cf550",
|
|
1867
1905
|
"isHook": false,
|
|
1868
1906
|
"skipped": false
|
|
1869
1907
|
}
|
|
1870
1908
|
],
|
|
1871
1909
|
"suites": [],
|
|
1872
1910
|
"passes": [
|
|
1873
|
-
"
|
|
1911
|
+
"66a4b5d7-7241-4bcd-8dc4-c57c149cf9d6"
|
|
1874
1912
|
],
|
|
1875
1913
|
"failures": [],
|
|
1876
1914
|
"pending": [],
|
|
1877
1915
|
"skipped": [],
|
|
1878
|
-
"duration":
|
|
1916
|
+
"duration": 2,
|
|
1879
1917
|
"root": false,
|
|
1880
1918
|
"rootEmpty": false,
|
|
1881
1919
|
"_timeout": 2000
|
|
1882
1920
|
},
|
|
1883
1921
|
{
|
|
1884
|
-
"uuid": "
|
|
1922
|
+
"uuid": "b9a81cfe-4711-4e31-9e02-38edc216d5e8",
|
|
1885
1923
|
"title": "getRepeat()",
|
|
1886
1924
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1887
1925
|
"file": "/test/device.ts",
|
|
@@ -1901,15 +1939,15 @@
|
|
|
1901
1939
|
"context": null,
|
|
1902
1940
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert_1.default.deepStrictEqual(result, types_1.NodePyATVRepeatState.all);\n assert_1.default.deepStrictEqual(result, 'all');\n});",
|
|
1903
1941
|
"err": {},
|
|
1904
|
-
"uuid": "
|
|
1905
|
-
"parentUUID": "
|
|
1942
|
+
"uuid": "498affc2-2715-4dae-859b-ed40ff71c4de",
|
|
1943
|
+
"parentUUID": "b9a81cfe-4711-4e31-9e02-38edc216d5e8",
|
|
1906
1944
|
"isHook": false,
|
|
1907
1945
|
"skipped": false
|
|
1908
1946
|
}
|
|
1909
1947
|
],
|
|
1910
1948
|
"suites": [],
|
|
1911
1949
|
"passes": [
|
|
1912
|
-
"
|
|
1950
|
+
"498affc2-2715-4dae-859b-ed40ff71c4de"
|
|
1913
1951
|
],
|
|
1914
1952
|
"failures": [],
|
|
1915
1953
|
"pending": [],
|
|
@@ -1920,7 +1958,7 @@
|
|
|
1920
1958
|
"_timeout": 2000
|
|
1921
1959
|
},
|
|
1922
1960
|
{
|
|
1923
|
-
"uuid": "
|
|
1961
|
+
"uuid": "63678d16-5709-44f4-ae80-1a30f22fd735",
|
|
1924
1962
|
"title": "getApp()",
|
|
1925
1963
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1926
1964
|
"file": "/test/device.ts",
|
|
@@ -1931,7 +1969,7 @@
|
|
|
1931
1969
|
"title": "should work",
|
|
1932
1970
|
"fullTitle": "NodePyATVDevice getApp() should work",
|
|
1933
1971
|
"timedOut": false,
|
|
1934
|
-
"duration":
|
|
1972
|
+
"duration": 2,
|
|
1935
1973
|
"state": "passed",
|
|
1936
1974
|
"speed": "fast",
|
|
1937
1975
|
"pass": true,
|
|
@@ -1940,26 +1978,26 @@
|
|
|
1940
1978
|
"context": null,
|
|
1941
1979
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert_1.default.strictEqual(result, 'My App');\n});",
|
|
1942
1980
|
"err": {},
|
|
1943
|
-
"uuid": "
|
|
1944
|
-
"parentUUID": "
|
|
1981
|
+
"uuid": "0abe7acc-0535-455a-96f6-a7a9197c41d4",
|
|
1982
|
+
"parentUUID": "63678d16-5709-44f4-ae80-1a30f22fd735",
|
|
1945
1983
|
"isHook": false,
|
|
1946
1984
|
"skipped": false
|
|
1947
1985
|
}
|
|
1948
1986
|
],
|
|
1949
1987
|
"suites": [],
|
|
1950
1988
|
"passes": [
|
|
1951
|
-
"
|
|
1989
|
+
"0abe7acc-0535-455a-96f6-a7a9197c41d4"
|
|
1952
1990
|
],
|
|
1953
1991
|
"failures": [],
|
|
1954
1992
|
"pending": [],
|
|
1955
1993
|
"skipped": [],
|
|
1956
|
-
"duration":
|
|
1994
|
+
"duration": 2,
|
|
1957
1995
|
"root": false,
|
|
1958
1996
|
"rootEmpty": false,
|
|
1959
1997
|
"_timeout": 2000
|
|
1960
1998
|
},
|
|
1961
1999
|
{
|
|
1962
|
-
"uuid": "
|
|
2000
|
+
"uuid": "dcda79da-39e7-4575-95b1-96c210e79e5e",
|
|
1963
2001
|
"title": "getAppId()",
|
|
1964
2002
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1965
2003
|
"file": "/test/device.ts",
|
|
@@ -1979,15 +2017,15 @@
|
|
|
1979
2017
|
"context": null,
|
|
1980
2018
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end({\n result: 'success',\n app_id: 'app.example.com'\n });\n })\n });\n const result = yield device.getAppId();\n assert_1.default.strictEqual(result, 'app.example.com');\n});",
|
|
1981
2019
|
"err": {},
|
|
1982
|
-
"uuid": "
|
|
1983
|
-
"parentUUID": "
|
|
2020
|
+
"uuid": "75a50fb1-e481-4ac2-b853-6b5c33a0cba1",
|
|
2021
|
+
"parentUUID": "dcda79da-39e7-4575-95b1-96c210e79e5e",
|
|
1984
2022
|
"isHook": false,
|
|
1985
2023
|
"skipped": false
|
|
1986
2024
|
}
|
|
1987
2025
|
],
|
|
1988
2026
|
"suites": [],
|
|
1989
2027
|
"passes": [
|
|
1990
|
-
"
|
|
2028
|
+
"75a50fb1-e481-4ac2-b853-6b5c33a0cba1"
|
|
1991
2029
|
],
|
|
1992
2030
|
"failures": [],
|
|
1993
2031
|
"pending": [],
|
|
@@ -1998,7 +2036,7 @@
|
|
|
1998
2036
|
"_timeout": 2000
|
|
1999
2037
|
},
|
|
2000
2038
|
{
|
|
2001
|
-
"uuid": "
|
|
2039
|
+
"uuid": "baf86b07-0fe2-463c-9e1f-a55f3a378d94",
|
|
2002
2040
|
"title": "pressKey()",
|
|
2003
2041
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2004
2042
|
"file": "/test/device.ts",
|
|
@@ -2009,7 +2047,7 @@
|
|
|
2009
2047
|
"title": "should work with valid key",
|
|
2010
2048
|
"fullTitle": "NodePyATVDevice pressKey() should work with valid key",
|
|
2011
2049
|
"timedOut": false,
|
|
2012
|
-
"duration":
|
|
2050
|
+
"duration": 2,
|
|
2013
2051
|
"state": "passed",
|
|
2014
2052
|
"speed": "fast",
|
|
2015
2053
|
"pass": true,
|
|
@@ -2018,8 +2056,8 @@
|
|
|
2018
2056
|
"context": null,
|
|
2019
2057
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(types_1.NodePyATVKeys.home);\n});",
|
|
2020
2058
|
"err": {},
|
|
2021
|
-
"uuid": "
|
|
2022
|
-
"parentUUID": "
|
|
2059
|
+
"uuid": "f8d0b6a3-a61e-44f2-9b0d-354e9b884fa5",
|
|
2060
|
+
"parentUUID": "baf86b07-0fe2-463c-9e1f-a55f3a378d94",
|
|
2023
2061
|
"isHook": false,
|
|
2024
2062
|
"skipped": false
|
|
2025
2063
|
},
|
|
@@ -2027,7 +2065,7 @@
|
|
|
2027
2065
|
"title": "should throw error with invalid key",
|
|
2028
2066
|
"fullTitle": "NodePyATVDevice pressKey() should throw error with invalid key",
|
|
2029
2067
|
"timedOut": false,
|
|
2030
|
-
"duration":
|
|
2068
|
+
"duration": 0,
|
|
2031
2069
|
"state": "passed",
|
|
2032
2070
|
"speed": "fast",
|
|
2033
2071
|
"pass": true,
|
|
@@ -2036,8 +2074,8 @@
|
|
|
2036
2074
|
"context": null,
|
|
2037
2075
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n // @ts-ignore\n yield device.pressKey('foo');\n }), /Unsupported key value foo/);\n});",
|
|
2038
2076
|
"err": {},
|
|
2039
|
-
"uuid": "
|
|
2040
|
-
"parentUUID": "
|
|
2077
|
+
"uuid": "3bfe73f0-bb5c-4268-be12-9d903de23576",
|
|
2078
|
+
"parentUUID": "baf86b07-0fe2-463c-9e1f-a55f3a378d94",
|
|
2041
2079
|
"isHook": false,
|
|
2042
2080
|
"skipped": false
|
|
2043
2081
|
},
|
|
@@ -2054,17 +2092,17 @@
|
|
|
2054
2092
|
"context": null,
|
|
2055
2093
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(types_1.NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
|
|
2056
2094
|
"err": {},
|
|
2057
|
-
"uuid": "
|
|
2058
|
-
"parentUUID": "
|
|
2095
|
+
"uuid": "b2613f3a-fe47-40e6-ac16-6ce89009de61",
|
|
2096
|
+
"parentUUID": "baf86b07-0fe2-463c-9e1f-a55f3a378d94",
|
|
2059
2097
|
"isHook": false,
|
|
2060
2098
|
"skipped": false
|
|
2061
2099
|
}
|
|
2062
2100
|
],
|
|
2063
2101
|
"suites": [],
|
|
2064
2102
|
"passes": [
|
|
2065
|
-
"
|
|
2066
|
-
"
|
|
2067
|
-
"
|
|
2103
|
+
"f8d0b6a3-a61e-44f2-9b0d-354e9b884fa5",
|
|
2104
|
+
"3bfe73f0-bb5c-4268-be12-9d903de23576",
|
|
2105
|
+
"b2613f3a-fe47-40e6-ac16-6ce89009de61"
|
|
2068
2106
|
],
|
|
2069
2107
|
"failures": [],
|
|
2070
2108
|
"pending": [],
|
|
@@ -2075,7 +2113,7 @@
|
|
|
2075
2113
|
"_timeout": 2000
|
|
2076
2114
|
},
|
|
2077
2115
|
{
|
|
2078
|
-
"uuid": "
|
|
2116
|
+
"uuid": "e39e735f-0aa7-470e-bdfd-0acb439e6243",
|
|
2079
2117
|
"title": "down()",
|
|
2080
2118
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2081
2119
|
"file": "/test/device.ts",
|
|
@@ -2095,15 +2133,15 @@
|
|
|
2095
2133
|
"context": null,
|
|
2096
2134
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2097
2135
|
"err": {},
|
|
2098
|
-
"uuid": "
|
|
2099
|
-
"parentUUID": "
|
|
2136
|
+
"uuid": "f7f2ab2a-0cd4-4cc5-9e87-a09451a4104e",
|
|
2137
|
+
"parentUUID": "e39e735f-0aa7-470e-bdfd-0acb439e6243",
|
|
2100
2138
|
"isHook": false,
|
|
2101
2139
|
"skipped": false
|
|
2102
2140
|
}
|
|
2103
2141
|
],
|
|
2104
2142
|
"suites": [],
|
|
2105
2143
|
"passes": [
|
|
2106
|
-
"
|
|
2144
|
+
"f7f2ab2a-0cd4-4cc5-9e87-a09451a4104e"
|
|
2107
2145
|
],
|
|
2108
2146
|
"failures": [],
|
|
2109
2147
|
"pending": [],
|
|
@@ -2114,7 +2152,7 @@
|
|
|
2114
2152
|
"_timeout": 2000
|
|
2115
2153
|
},
|
|
2116
2154
|
{
|
|
2117
|
-
"uuid": "
|
|
2155
|
+
"uuid": "4f135e2f-d594-445e-96b8-27f55486d3a3",
|
|
2118
2156
|
"title": "home()",
|
|
2119
2157
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2120
2158
|
"file": "/test/device.ts",
|
|
@@ -2125,7 +2163,7 @@
|
|
|
2125
2163
|
"title": "should work",
|
|
2126
2164
|
"fullTitle": "NodePyATVDevice home() should work",
|
|
2127
2165
|
"timedOut": false,
|
|
2128
|
-
"duration":
|
|
2166
|
+
"duration": 2,
|
|
2129
2167
|
"state": "passed",
|
|
2130
2168
|
"speed": "fast",
|
|
2131
2169
|
"pass": true,
|
|
@@ -2134,26 +2172,26 @@
|
|
|
2134
2172
|
"context": null,
|
|
2135
2173
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2136
2174
|
"err": {},
|
|
2137
|
-
"uuid": "
|
|
2138
|
-
"parentUUID": "
|
|
2175
|
+
"uuid": "bc05d7e6-0599-45c6-8d78-70f6919289e9",
|
|
2176
|
+
"parentUUID": "4f135e2f-d594-445e-96b8-27f55486d3a3",
|
|
2139
2177
|
"isHook": false,
|
|
2140
2178
|
"skipped": false
|
|
2141
2179
|
}
|
|
2142
2180
|
],
|
|
2143
2181
|
"suites": [],
|
|
2144
2182
|
"passes": [
|
|
2145
|
-
"
|
|
2183
|
+
"bc05d7e6-0599-45c6-8d78-70f6919289e9"
|
|
2146
2184
|
],
|
|
2147
2185
|
"failures": [],
|
|
2148
2186
|
"pending": [],
|
|
2149
2187
|
"skipped": [],
|
|
2150
|
-
"duration":
|
|
2188
|
+
"duration": 2,
|
|
2151
2189
|
"root": false,
|
|
2152
2190
|
"rootEmpty": false,
|
|
2153
2191
|
"_timeout": 2000
|
|
2154
2192
|
},
|
|
2155
2193
|
{
|
|
2156
|
-
"uuid": "
|
|
2194
|
+
"uuid": "9f879eab-4bf7-4901-8dcf-0cc1e40a391e",
|
|
2157
2195
|
"title": "homeHold()",
|
|
2158
2196
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2159
2197
|
"file": "/test/device.ts",
|
|
@@ -2164,7 +2202,7 @@
|
|
|
2164
2202
|
"title": "should work",
|
|
2165
2203
|
"fullTitle": "NodePyATVDevice homeHold() should work",
|
|
2166
2204
|
"timedOut": false,
|
|
2167
|
-
"duration":
|
|
2205
|
+
"duration": 2,
|
|
2168
2206
|
"state": "passed",
|
|
2169
2207
|
"speed": "fast",
|
|
2170
2208
|
"pass": true,
|
|
@@ -2173,26 +2211,26 @@
|
|
|
2173
2211
|
"context": null,
|
|
2174
2212
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2175
2213
|
"err": {},
|
|
2176
|
-
"uuid": "
|
|
2177
|
-
"parentUUID": "
|
|
2214
|
+
"uuid": "31a03abf-296b-47a8-8f4a-049fc9bc9a7b",
|
|
2215
|
+
"parentUUID": "9f879eab-4bf7-4901-8dcf-0cc1e40a391e",
|
|
2178
2216
|
"isHook": false,
|
|
2179
2217
|
"skipped": false
|
|
2180
2218
|
}
|
|
2181
2219
|
],
|
|
2182
2220
|
"suites": [],
|
|
2183
2221
|
"passes": [
|
|
2184
|
-
"
|
|
2222
|
+
"31a03abf-296b-47a8-8f4a-049fc9bc9a7b"
|
|
2185
2223
|
],
|
|
2186
2224
|
"failures": [],
|
|
2187
2225
|
"pending": [],
|
|
2188
2226
|
"skipped": [],
|
|
2189
|
-
"duration":
|
|
2227
|
+
"duration": 2,
|
|
2190
2228
|
"root": false,
|
|
2191
2229
|
"rootEmpty": false,
|
|
2192
2230
|
"_timeout": 2000
|
|
2193
2231
|
},
|
|
2194
2232
|
{
|
|
2195
|
-
"uuid": "
|
|
2233
|
+
"uuid": "a50fe802-ca01-44bf-a6d7-f6ef94330bdd",
|
|
2196
2234
|
"title": "left()",
|
|
2197
2235
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2198
2236
|
"file": "/test/device.ts",
|
|
@@ -2203,7 +2241,7 @@
|
|
|
2203
2241
|
"title": "should work",
|
|
2204
2242
|
"fullTitle": "NodePyATVDevice left() should work",
|
|
2205
2243
|
"timedOut": false,
|
|
2206
|
-
"duration":
|
|
2244
|
+
"duration": 2,
|
|
2207
2245
|
"state": "passed",
|
|
2208
2246
|
"speed": "fast",
|
|
2209
2247
|
"pass": true,
|
|
@@ -2212,26 +2250,26 @@
|
|
|
2212
2250
|
"context": null,
|
|
2213
2251
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2214
2252
|
"err": {},
|
|
2215
|
-
"uuid": "
|
|
2216
|
-
"parentUUID": "
|
|
2253
|
+
"uuid": "d9481036-b362-4b62-87bd-3ddeec9a96a6",
|
|
2254
|
+
"parentUUID": "a50fe802-ca01-44bf-a6d7-f6ef94330bdd",
|
|
2217
2255
|
"isHook": false,
|
|
2218
2256
|
"skipped": false
|
|
2219
2257
|
}
|
|
2220
2258
|
],
|
|
2221
2259
|
"suites": [],
|
|
2222
2260
|
"passes": [
|
|
2223
|
-
"
|
|
2261
|
+
"d9481036-b362-4b62-87bd-3ddeec9a96a6"
|
|
2224
2262
|
],
|
|
2225
2263
|
"failures": [],
|
|
2226
2264
|
"pending": [],
|
|
2227
2265
|
"skipped": [],
|
|
2228
|
-
"duration":
|
|
2266
|
+
"duration": 2,
|
|
2229
2267
|
"root": false,
|
|
2230
2268
|
"rootEmpty": false,
|
|
2231
2269
|
"_timeout": 2000
|
|
2232
2270
|
},
|
|
2233
2271
|
{
|
|
2234
|
-
"uuid": "
|
|
2272
|
+
"uuid": "a34b652a-d3d9-4702-9d76-67a53a606b08",
|
|
2235
2273
|
"title": "menu()",
|
|
2236
2274
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2237
2275
|
"file": "/test/device.ts",
|
|
@@ -2251,15 +2289,15 @@
|
|
|
2251
2289
|
"context": null,
|
|
2252
2290
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2253
2291
|
"err": {},
|
|
2254
|
-
"uuid": "
|
|
2255
|
-
"parentUUID": "
|
|
2292
|
+
"uuid": "10e90ff6-bd4d-4375-9c3f-9242bfe56600",
|
|
2293
|
+
"parentUUID": "a34b652a-d3d9-4702-9d76-67a53a606b08",
|
|
2256
2294
|
"isHook": false,
|
|
2257
2295
|
"skipped": false
|
|
2258
2296
|
}
|
|
2259
2297
|
],
|
|
2260
2298
|
"suites": [],
|
|
2261
2299
|
"passes": [
|
|
2262
|
-
"
|
|
2300
|
+
"10e90ff6-bd4d-4375-9c3f-9242bfe56600"
|
|
2263
2301
|
],
|
|
2264
2302
|
"failures": [],
|
|
2265
2303
|
"pending": [],
|
|
@@ -2270,7 +2308,7 @@
|
|
|
2270
2308
|
"_timeout": 2000
|
|
2271
2309
|
},
|
|
2272
2310
|
{
|
|
2273
|
-
"uuid": "
|
|
2311
|
+
"uuid": "4dd12ed0-1fc2-47a0-86dc-8a01b7dfa074",
|
|
2274
2312
|
"title": "next()",
|
|
2275
2313
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2276
2314
|
"file": "/test/device.ts",
|
|
@@ -2281,7 +2319,7 @@
|
|
|
2281
2319
|
"title": "should work",
|
|
2282
2320
|
"fullTitle": "NodePyATVDevice next() should work",
|
|
2283
2321
|
"timedOut": false,
|
|
2284
|
-
"duration":
|
|
2322
|
+
"duration": 2,
|
|
2285
2323
|
"state": "passed",
|
|
2286
2324
|
"speed": "fast",
|
|
2287
2325
|
"pass": true,
|
|
@@ -2290,26 +2328,26 @@
|
|
|
2290
2328
|
"context": null,
|
|
2291
2329
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2292
2330
|
"err": {},
|
|
2293
|
-
"uuid": "
|
|
2294
|
-
"parentUUID": "
|
|
2331
|
+
"uuid": "2c04c404-2920-4ac3-b86c-1885261e42f9",
|
|
2332
|
+
"parentUUID": "4dd12ed0-1fc2-47a0-86dc-8a01b7dfa074",
|
|
2295
2333
|
"isHook": false,
|
|
2296
2334
|
"skipped": false
|
|
2297
2335
|
}
|
|
2298
2336
|
],
|
|
2299
2337
|
"suites": [],
|
|
2300
2338
|
"passes": [
|
|
2301
|
-
"
|
|
2339
|
+
"2c04c404-2920-4ac3-b86c-1885261e42f9"
|
|
2302
2340
|
],
|
|
2303
2341
|
"failures": [],
|
|
2304
2342
|
"pending": [],
|
|
2305
2343
|
"skipped": [],
|
|
2306
|
-
"duration":
|
|
2344
|
+
"duration": 2,
|
|
2307
2345
|
"root": false,
|
|
2308
2346
|
"rootEmpty": false,
|
|
2309
2347
|
"_timeout": 2000
|
|
2310
2348
|
},
|
|
2311
2349
|
{
|
|
2312
|
-
"uuid": "
|
|
2350
|
+
"uuid": "dff88f75-d9e5-48f8-8993-c5c4ed4c9d61",
|
|
2313
2351
|
"title": "pause()",
|
|
2314
2352
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2315
2353
|
"file": "/test/device.ts",
|
|
@@ -2329,15 +2367,15 @@
|
|
|
2329
2367
|
"context": null,
|
|
2330
2368
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2331
2369
|
"err": {},
|
|
2332
|
-
"uuid": "
|
|
2333
|
-
"parentUUID": "
|
|
2370
|
+
"uuid": "6d3d12de-6c69-430a-b898-64591e22b07e",
|
|
2371
|
+
"parentUUID": "dff88f75-d9e5-48f8-8993-c5c4ed4c9d61",
|
|
2334
2372
|
"isHook": false,
|
|
2335
2373
|
"skipped": false
|
|
2336
2374
|
}
|
|
2337
2375
|
],
|
|
2338
2376
|
"suites": [],
|
|
2339
2377
|
"passes": [
|
|
2340
|
-
"
|
|
2378
|
+
"6d3d12de-6c69-430a-b898-64591e22b07e"
|
|
2341
2379
|
],
|
|
2342
2380
|
"failures": [],
|
|
2343
2381
|
"pending": [],
|
|
@@ -2348,7 +2386,7 @@
|
|
|
2348
2386
|
"_timeout": 2000
|
|
2349
2387
|
},
|
|
2350
2388
|
{
|
|
2351
|
-
"uuid": "
|
|
2389
|
+
"uuid": "481581e3-832a-4e86-85e8-17181c59cad9",
|
|
2352
2390
|
"title": "play()",
|
|
2353
2391
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2354
2392
|
"file": "/test/device.ts",
|
|
@@ -2368,15 +2406,15 @@
|
|
|
2368
2406
|
"context": null,
|
|
2369
2407
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2370
2408
|
"err": {},
|
|
2371
|
-
"uuid": "
|
|
2372
|
-
"parentUUID": "
|
|
2409
|
+
"uuid": "6a5d0e4c-fcae-4d9b-a010-aa89a60e1057",
|
|
2410
|
+
"parentUUID": "481581e3-832a-4e86-85e8-17181c59cad9",
|
|
2373
2411
|
"isHook": false,
|
|
2374
2412
|
"skipped": false
|
|
2375
2413
|
}
|
|
2376
2414
|
],
|
|
2377
2415
|
"suites": [],
|
|
2378
2416
|
"passes": [
|
|
2379
|
-
"
|
|
2417
|
+
"6a5d0e4c-fcae-4d9b-a010-aa89a60e1057"
|
|
2380
2418
|
],
|
|
2381
2419
|
"failures": [],
|
|
2382
2420
|
"pending": [],
|
|
@@ -2387,7 +2425,7 @@
|
|
|
2387
2425
|
"_timeout": 2000
|
|
2388
2426
|
},
|
|
2389
2427
|
{
|
|
2390
|
-
"uuid": "
|
|
2428
|
+
"uuid": "dac3d363-a40b-445f-a06c-c0f6b7ce28f6",
|
|
2391
2429
|
"title": "playPause()",
|
|
2392
2430
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2393
2431
|
"file": "/test/device.ts",
|
|
@@ -2407,15 +2445,15 @@
|
|
|
2407
2445
|
"context": null,
|
|
2408
2446
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2409
2447
|
"err": {},
|
|
2410
|
-
"uuid": "
|
|
2411
|
-
"parentUUID": "
|
|
2448
|
+
"uuid": "ca3cd9c2-545b-4ce2-92c6-d0aad9e41e88",
|
|
2449
|
+
"parentUUID": "dac3d363-a40b-445f-a06c-c0f6b7ce28f6",
|
|
2412
2450
|
"isHook": false,
|
|
2413
2451
|
"skipped": false
|
|
2414
2452
|
}
|
|
2415
2453
|
],
|
|
2416
2454
|
"suites": [],
|
|
2417
2455
|
"passes": [
|
|
2418
|
-
"
|
|
2456
|
+
"ca3cd9c2-545b-4ce2-92c6-d0aad9e41e88"
|
|
2419
2457
|
],
|
|
2420
2458
|
"failures": [],
|
|
2421
2459
|
"pending": [],
|
|
@@ -2426,7 +2464,7 @@
|
|
|
2426
2464
|
"_timeout": 2000
|
|
2427
2465
|
},
|
|
2428
2466
|
{
|
|
2429
|
-
"uuid": "
|
|
2467
|
+
"uuid": "efcc2d8e-25cd-43fd-a980-e1bfe1ae3ddf",
|
|
2430
2468
|
"title": "previous()",
|
|
2431
2469
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2432
2470
|
"file": "/test/device.ts",
|
|
@@ -2437,7 +2475,7 @@
|
|
|
2437
2475
|
"title": "should work",
|
|
2438
2476
|
"fullTitle": "NodePyATVDevice previous() should work",
|
|
2439
2477
|
"timedOut": false,
|
|
2440
|
-
"duration":
|
|
2478
|
+
"duration": 1,
|
|
2441
2479
|
"state": "passed",
|
|
2442
2480
|
"speed": "fast",
|
|
2443
2481
|
"pass": true,
|
|
@@ -2446,26 +2484,26 @@
|
|
|
2446
2484
|
"context": null,
|
|
2447
2485
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2448
2486
|
"err": {},
|
|
2449
|
-
"uuid": "
|
|
2450
|
-
"parentUUID": "
|
|
2487
|
+
"uuid": "5e9bf9d6-b272-49fb-b4ae-3ba5977da6b0",
|
|
2488
|
+
"parentUUID": "efcc2d8e-25cd-43fd-a980-e1bfe1ae3ddf",
|
|
2451
2489
|
"isHook": false,
|
|
2452
2490
|
"skipped": false
|
|
2453
2491
|
}
|
|
2454
2492
|
],
|
|
2455
2493
|
"suites": [],
|
|
2456
2494
|
"passes": [
|
|
2457
|
-
"
|
|
2495
|
+
"5e9bf9d6-b272-49fb-b4ae-3ba5977da6b0"
|
|
2458
2496
|
],
|
|
2459
2497
|
"failures": [],
|
|
2460
2498
|
"pending": [],
|
|
2461
2499
|
"skipped": [],
|
|
2462
|
-
"duration":
|
|
2500
|
+
"duration": 1,
|
|
2463
2501
|
"root": false,
|
|
2464
2502
|
"rootEmpty": false,
|
|
2465
2503
|
"_timeout": 2000
|
|
2466
2504
|
},
|
|
2467
2505
|
{
|
|
2468
|
-
"uuid": "
|
|
2506
|
+
"uuid": "24d00950-b5c6-4420-8445-0e37f3b1b0b6",
|
|
2469
2507
|
"title": "right()",
|
|
2470
2508
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2471
2509
|
"file": "/test/device.ts",
|
|
@@ -2476,7 +2514,7 @@
|
|
|
2476
2514
|
"title": "should work",
|
|
2477
2515
|
"fullTitle": "NodePyATVDevice right() should work",
|
|
2478
2516
|
"timedOut": false,
|
|
2479
|
-
"duration":
|
|
2517
|
+
"duration": 1,
|
|
2480
2518
|
"state": "passed",
|
|
2481
2519
|
"speed": "fast",
|
|
2482
2520
|
"pass": true,
|
|
@@ -2485,26 +2523,26 @@
|
|
|
2485
2523
|
"context": null,
|
|
2486
2524
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2487
2525
|
"err": {},
|
|
2488
|
-
"uuid": "
|
|
2489
|
-
"parentUUID": "
|
|
2526
|
+
"uuid": "27e79f19-e955-4c11-b186-639edcec70a8",
|
|
2527
|
+
"parentUUID": "24d00950-b5c6-4420-8445-0e37f3b1b0b6",
|
|
2490
2528
|
"isHook": false,
|
|
2491
2529
|
"skipped": false
|
|
2492
2530
|
}
|
|
2493
2531
|
],
|
|
2494
2532
|
"suites": [],
|
|
2495
2533
|
"passes": [
|
|
2496
|
-
"
|
|
2534
|
+
"27e79f19-e955-4c11-b186-639edcec70a8"
|
|
2497
2535
|
],
|
|
2498
2536
|
"failures": [],
|
|
2499
2537
|
"pending": [],
|
|
2500
2538
|
"skipped": [],
|
|
2501
|
-
"duration":
|
|
2539
|
+
"duration": 1,
|
|
2502
2540
|
"root": false,
|
|
2503
2541
|
"rootEmpty": false,
|
|
2504
2542
|
"_timeout": 2000
|
|
2505
2543
|
},
|
|
2506
2544
|
{
|
|
2507
|
-
"uuid": "
|
|
2545
|
+
"uuid": "31fd1c1a-1d83-4918-a5af-21d923f3c322",
|
|
2508
2546
|
"title": "select()",
|
|
2509
2547
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2510
2548
|
"file": "/test/device.ts",
|
|
@@ -2515,7 +2553,7 @@
|
|
|
2515
2553
|
"title": "should work",
|
|
2516
2554
|
"fullTitle": "NodePyATVDevice select() should work",
|
|
2517
2555
|
"timedOut": false,
|
|
2518
|
-
"duration":
|
|
2556
|
+
"duration": 1,
|
|
2519
2557
|
"state": "passed",
|
|
2520
2558
|
"speed": "fast",
|
|
2521
2559
|
"pass": true,
|
|
@@ -2524,26 +2562,26 @@
|
|
|
2524
2562
|
"context": null,
|
|
2525
2563
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2526
2564
|
"err": {},
|
|
2527
|
-
"uuid": "
|
|
2528
|
-
"parentUUID": "
|
|
2565
|
+
"uuid": "6b6ddbc8-28c0-419f-b628-9f6ade0f02a4",
|
|
2566
|
+
"parentUUID": "31fd1c1a-1d83-4918-a5af-21d923f3c322",
|
|
2529
2567
|
"isHook": false,
|
|
2530
2568
|
"skipped": false
|
|
2531
2569
|
}
|
|
2532
2570
|
],
|
|
2533
2571
|
"suites": [],
|
|
2534
2572
|
"passes": [
|
|
2535
|
-
"
|
|
2573
|
+
"6b6ddbc8-28c0-419f-b628-9f6ade0f02a4"
|
|
2536
2574
|
],
|
|
2537
2575
|
"failures": [],
|
|
2538
2576
|
"pending": [],
|
|
2539
2577
|
"skipped": [],
|
|
2540
|
-
"duration":
|
|
2578
|
+
"duration": 1,
|
|
2541
2579
|
"root": false,
|
|
2542
2580
|
"rootEmpty": false,
|
|
2543
2581
|
"_timeout": 2000
|
|
2544
2582
|
},
|
|
2545
2583
|
{
|
|
2546
|
-
"uuid": "
|
|
2584
|
+
"uuid": "5dabe6d0-723a-41fb-b1d9-185c2cd3a279",
|
|
2547
2585
|
"title": "skipBackward()",
|
|
2548
2586
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2549
2587
|
"file": "/test/device.ts",
|
|
@@ -2563,15 +2601,15 @@
|
|
|
2563
2601
|
"context": null,
|
|
2564
2602
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2565
2603
|
"err": {},
|
|
2566
|
-
"uuid": "
|
|
2567
|
-
"parentUUID": "
|
|
2604
|
+
"uuid": "10fb1084-f1f7-43c5-aea2-aaf941520db7",
|
|
2605
|
+
"parentUUID": "5dabe6d0-723a-41fb-b1d9-185c2cd3a279",
|
|
2568
2606
|
"isHook": false,
|
|
2569
2607
|
"skipped": false
|
|
2570
2608
|
}
|
|
2571
2609
|
],
|
|
2572
2610
|
"suites": [],
|
|
2573
2611
|
"passes": [
|
|
2574
|
-
"
|
|
2612
|
+
"10fb1084-f1f7-43c5-aea2-aaf941520db7"
|
|
2575
2613
|
],
|
|
2576
2614
|
"failures": [],
|
|
2577
2615
|
"pending": [],
|
|
@@ -2582,7 +2620,7 @@
|
|
|
2582
2620
|
"_timeout": 2000
|
|
2583
2621
|
},
|
|
2584
2622
|
{
|
|
2585
|
-
"uuid": "
|
|
2623
|
+
"uuid": "1b8e38b0-1e0d-41c1-b8bb-e40893c300b7",
|
|
2586
2624
|
"title": "skipForward()",
|
|
2587
2625
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2588
2626
|
"file": "/test/device.ts",
|
|
@@ -2593,7 +2631,7 @@
|
|
|
2593
2631
|
"title": "should work",
|
|
2594
2632
|
"fullTitle": "NodePyATVDevice skipForward() should work",
|
|
2595
2633
|
"timedOut": false,
|
|
2596
|
-
"duration":
|
|
2634
|
+
"duration": 0,
|
|
2597
2635
|
"state": "passed",
|
|
2598
2636
|
"speed": "fast",
|
|
2599
2637
|
"pass": true,
|
|
@@ -2602,26 +2640,26 @@
|
|
|
2602
2640
|
"context": null,
|
|
2603
2641
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2604
2642
|
"err": {},
|
|
2605
|
-
"uuid": "
|
|
2606
|
-
"parentUUID": "
|
|
2643
|
+
"uuid": "0b25b8c3-b517-4e5c-a677-f07db2dc5f30",
|
|
2644
|
+
"parentUUID": "1b8e38b0-1e0d-41c1-b8bb-e40893c300b7",
|
|
2607
2645
|
"isHook": false,
|
|
2608
2646
|
"skipped": false
|
|
2609
2647
|
}
|
|
2610
2648
|
],
|
|
2611
2649
|
"suites": [],
|
|
2612
2650
|
"passes": [
|
|
2613
|
-
"
|
|
2651
|
+
"0b25b8c3-b517-4e5c-a677-f07db2dc5f30"
|
|
2614
2652
|
],
|
|
2615
2653
|
"failures": [],
|
|
2616
2654
|
"pending": [],
|
|
2617
2655
|
"skipped": [],
|
|
2618
|
-
"duration":
|
|
2656
|
+
"duration": 0,
|
|
2619
2657
|
"root": false,
|
|
2620
2658
|
"rootEmpty": false,
|
|
2621
2659
|
"_timeout": 2000
|
|
2622
2660
|
},
|
|
2623
2661
|
{
|
|
2624
|
-
"uuid": "
|
|
2662
|
+
"uuid": "e79038e9-8202-4beb-ba26-340592b15531",
|
|
2625
2663
|
"title": "stop()",
|
|
2626
2664
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2627
2665
|
"file": "/test/device.ts",
|
|
@@ -2641,15 +2679,15 @@
|
|
|
2641
2679
|
"context": null,
|
|
2642
2680
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2643
2681
|
"err": {},
|
|
2644
|
-
"uuid": "
|
|
2645
|
-
"parentUUID": "
|
|
2682
|
+
"uuid": "9c37f10c-a329-4560-b18b-6286bdf57e23",
|
|
2683
|
+
"parentUUID": "e79038e9-8202-4beb-ba26-340592b15531",
|
|
2646
2684
|
"isHook": false,
|
|
2647
2685
|
"skipped": false
|
|
2648
2686
|
}
|
|
2649
2687
|
],
|
|
2650
2688
|
"suites": [],
|
|
2651
2689
|
"passes": [
|
|
2652
|
-
"
|
|
2690
|
+
"9c37f10c-a329-4560-b18b-6286bdf57e23"
|
|
2653
2691
|
],
|
|
2654
2692
|
"failures": [],
|
|
2655
2693
|
"pending": [],
|
|
@@ -2660,7 +2698,7 @@
|
|
|
2660
2698
|
"_timeout": 2000
|
|
2661
2699
|
},
|
|
2662
2700
|
{
|
|
2663
|
-
"uuid": "
|
|
2701
|
+
"uuid": "dde693ad-60e1-4792-a41d-ebd1f190e4d8",
|
|
2664
2702
|
"title": "suspend()",
|
|
2665
2703
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2666
2704
|
"file": "/test/device.ts",
|
|
@@ -2671,7 +2709,7 @@
|
|
|
2671
2709
|
"title": "should work",
|
|
2672
2710
|
"fullTitle": "NodePyATVDevice suspend() should work",
|
|
2673
2711
|
"timedOut": false,
|
|
2674
|
-
"duration":
|
|
2712
|
+
"duration": 1,
|
|
2675
2713
|
"state": "passed",
|
|
2676
2714
|
"speed": "fast",
|
|
2677
2715
|
"pass": true,
|
|
@@ -2680,26 +2718,26 @@
|
|
|
2680
2718
|
"context": null,
|
|
2681
2719
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2682
2720
|
"err": {},
|
|
2683
|
-
"uuid": "
|
|
2684
|
-
"parentUUID": "
|
|
2721
|
+
"uuid": "1ae8e666-1b1f-4bed-bac2-a03a20211905",
|
|
2722
|
+
"parentUUID": "dde693ad-60e1-4792-a41d-ebd1f190e4d8",
|
|
2685
2723
|
"isHook": false,
|
|
2686
2724
|
"skipped": false
|
|
2687
2725
|
}
|
|
2688
2726
|
],
|
|
2689
2727
|
"suites": [],
|
|
2690
2728
|
"passes": [
|
|
2691
|
-
"
|
|
2729
|
+
"1ae8e666-1b1f-4bed-bac2-a03a20211905"
|
|
2692
2730
|
],
|
|
2693
2731
|
"failures": [],
|
|
2694
2732
|
"pending": [],
|
|
2695
2733
|
"skipped": [],
|
|
2696
|
-
"duration":
|
|
2734
|
+
"duration": 1,
|
|
2697
2735
|
"root": false,
|
|
2698
2736
|
"rootEmpty": false,
|
|
2699
2737
|
"_timeout": 2000
|
|
2700
2738
|
},
|
|
2701
2739
|
{
|
|
2702
|
-
"uuid": "
|
|
2740
|
+
"uuid": "fe0a8770-d8a3-4821-8def-1675f49dc083",
|
|
2703
2741
|
"title": "topMenu()",
|
|
2704
2742
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2705
2743
|
"file": "/test/device.ts",
|
|
@@ -2719,15 +2757,15 @@
|
|
|
2719
2757
|
"context": null,
|
|
2720
2758
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2721
2759
|
"err": {},
|
|
2722
|
-
"uuid": "
|
|
2723
|
-
"parentUUID": "
|
|
2760
|
+
"uuid": "0cdd3d9d-cf9a-44f1-8c39-e8023cd5c78d",
|
|
2761
|
+
"parentUUID": "fe0a8770-d8a3-4821-8def-1675f49dc083",
|
|
2724
2762
|
"isHook": false,
|
|
2725
2763
|
"skipped": false
|
|
2726
2764
|
}
|
|
2727
2765
|
],
|
|
2728
2766
|
"suites": [],
|
|
2729
2767
|
"passes": [
|
|
2730
|
-
"
|
|
2768
|
+
"0cdd3d9d-cf9a-44f1-8c39-e8023cd5c78d"
|
|
2731
2769
|
],
|
|
2732
2770
|
"failures": [],
|
|
2733
2771
|
"pending": [],
|
|
@@ -2738,7 +2776,7 @@
|
|
|
2738
2776
|
"_timeout": 2000
|
|
2739
2777
|
},
|
|
2740
2778
|
{
|
|
2741
|
-
"uuid": "
|
|
2779
|
+
"uuid": "96a7466a-2a8a-434f-b3a0-4a3cce83429c",
|
|
2742
2780
|
"title": "up()",
|
|
2743
2781
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2744
2782
|
"file": "/test/device.ts",
|
|
@@ -2758,15 +2796,15 @@
|
|
|
2758
2796
|
"context": null,
|
|
2759
2797
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2760
2798
|
"err": {},
|
|
2761
|
-
"uuid": "
|
|
2762
|
-
"parentUUID": "
|
|
2799
|
+
"uuid": "2acc62a5-df5b-40df-8e90-247ce32fda9e",
|
|
2800
|
+
"parentUUID": "96a7466a-2a8a-434f-b3a0-4a3cce83429c",
|
|
2763
2801
|
"isHook": false,
|
|
2764
2802
|
"skipped": false
|
|
2765
2803
|
}
|
|
2766
2804
|
],
|
|
2767
2805
|
"suites": [],
|
|
2768
2806
|
"passes": [
|
|
2769
|
-
"
|
|
2807
|
+
"2acc62a5-df5b-40df-8e90-247ce32fda9e"
|
|
2770
2808
|
],
|
|
2771
2809
|
"failures": [],
|
|
2772
2810
|
"pending": [],
|
|
@@ -2777,7 +2815,7 @@
|
|
|
2777
2815
|
"_timeout": 2000
|
|
2778
2816
|
},
|
|
2779
2817
|
{
|
|
2780
|
-
"uuid": "
|
|
2818
|
+
"uuid": "bccd6cec-3bc3-405a-a4de-e1b337b8aceb",
|
|
2781
2819
|
"title": "volumeDown()",
|
|
2782
2820
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2783
2821
|
"file": "/test/device.ts",
|
|
@@ -2788,7 +2826,7 @@
|
|
|
2788
2826
|
"title": "should work",
|
|
2789
2827
|
"fullTitle": "NodePyATVDevice volumeDown() should work",
|
|
2790
2828
|
"timedOut": false,
|
|
2791
|
-
"duration":
|
|
2829
|
+
"duration": 2,
|
|
2792
2830
|
"state": "passed",
|
|
2793
2831
|
"speed": "fast",
|
|
2794
2832
|
"pass": true,
|
|
@@ -2797,26 +2835,26 @@
|
|
|
2797
2835
|
"context": null,
|
|
2798
2836
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2799
2837
|
"err": {},
|
|
2800
|
-
"uuid": "
|
|
2801
|
-
"parentUUID": "
|
|
2838
|
+
"uuid": "13ddedb7-1dc3-44e4-8ddc-a53840a4090b",
|
|
2839
|
+
"parentUUID": "bccd6cec-3bc3-405a-a4de-e1b337b8aceb",
|
|
2802
2840
|
"isHook": false,
|
|
2803
2841
|
"skipped": false
|
|
2804
2842
|
}
|
|
2805
2843
|
],
|
|
2806
2844
|
"suites": [],
|
|
2807
2845
|
"passes": [
|
|
2808
|
-
"
|
|
2846
|
+
"13ddedb7-1dc3-44e4-8ddc-a53840a4090b"
|
|
2809
2847
|
],
|
|
2810
2848
|
"failures": [],
|
|
2811
2849
|
"pending": [],
|
|
2812
2850
|
"skipped": [],
|
|
2813
|
-
"duration":
|
|
2851
|
+
"duration": 2,
|
|
2814
2852
|
"root": false,
|
|
2815
2853
|
"rootEmpty": false,
|
|
2816
2854
|
"_timeout": 2000
|
|
2817
2855
|
},
|
|
2818
2856
|
{
|
|
2819
|
-
"uuid": "
|
|
2857
|
+
"uuid": "81219ee9-a69a-47c6-85ea-ac8a11b3bfca",
|
|
2820
2858
|
"title": "volumeUp()",
|
|
2821
2859
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2822
2860
|
"file": "/test/device.ts",
|
|
@@ -2827,7 +2865,7 @@
|
|
|
2827
2865
|
"title": "should work",
|
|
2828
2866
|
"fullTitle": "NodePyATVDevice volumeUp() should work",
|
|
2829
2867
|
"timedOut": false,
|
|
2830
|
-
"duration":
|
|
2868
|
+
"duration": 2,
|
|
2831
2869
|
"state": "passed",
|
|
2832
2870
|
"speed": "fast",
|
|
2833
2871
|
"pass": true,
|
|
@@ -2836,26 +2874,26 @@
|
|
|
2836
2874
|
"context": null,
|
|
2837
2875
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2838
2876
|
"err": {},
|
|
2839
|
-
"uuid": "
|
|
2840
|
-
"parentUUID": "
|
|
2877
|
+
"uuid": "e0ea0bc1-464b-46d6-ae2c-60007d214a91",
|
|
2878
|
+
"parentUUID": "81219ee9-a69a-47c6-85ea-ac8a11b3bfca",
|
|
2841
2879
|
"isHook": false,
|
|
2842
2880
|
"skipped": false
|
|
2843
2881
|
}
|
|
2844
2882
|
],
|
|
2845
2883
|
"suites": [],
|
|
2846
2884
|
"passes": [
|
|
2847
|
-
"
|
|
2885
|
+
"e0ea0bc1-464b-46d6-ae2c-60007d214a91"
|
|
2848
2886
|
],
|
|
2849
2887
|
"failures": [],
|
|
2850
2888
|
"pending": [],
|
|
2851
2889
|
"skipped": [],
|
|
2852
|
-
"duration":
|
|
2890
|
+
"duration": 2,
|
|
2853
2891
|
"root": false,
|
|
2854
2892
|
"rootEmpty": false,
|
|
2855
2893
|
"_timeout": 2000
|
|
2856
2894
|
},
|
|
2857
2895
|
{
|
|
2858
|
-
"uuid": "
|
|
2896
|
+
"uuid": "28b550e8-71a4-4218-8905-b2499fbd6647",
|
|
2859
2897
|
"title": "wakeup()",
|
|
2860
2898
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2861
2899
|
"file": "/test/device.ts",
|
|
@@ -2875,15 +2913,15 @@
|
|
|
2875
2913
|
"context": null,
|
|
2876
2914
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new device_1.default({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2877
2915
|
"err": {},
|
|
2878
|
-
"uuid": "
|
|
2879
|
-
"parentUUID": "
|
|
2916
|
+
"uuid": "ea984cce-f634-45cb-aadc-5900f4887fb6",
|
|
2917
|
+
"parentUUID": "28b550e8-71a4-4218-8905-b2499fbd6647",
|
|
2880
2918
|
"isHook": false,
|
|
2881
2919
|
"skipped": false
|
|
2882
2920
|
}
|
|
2883
2921
|
],
|
|
2884
2922
|
"suites": [],
|
|
2885
2923
|
"passes": [
|
|
2886
|
-
"
|
|
2924
|
+
"ea984cce-f634-45cb-aadc-5900f4887fb6"
|
|
2887
2925
|
],
|
|
2888
2926
|
"failures": [],
|
|
2889
2927
|
"pending": [],
|
|
@@ -2904,7 +2942,7 @@
|
|
|
2904
2942
|
"_timeout": 2000
|
|
2905
2943
|
},
|
|
2906
2944
|
{
|
|
2907
|
-
"uuid": "
|
|
2945
|
+
"uuid": "8fd681c8-23ad-41ea-9fc1-2e024165ae5a",
|
|
2908
2946
|
"title": "NodePyATVInstance",
|
|
2909
2947
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2910
2948
|
"file": "/test/instance.ts",
|
|
@@ -2913,7 +2951,7 @@
|
|
|
2913
2951
|
"tests": [],
|
|
2914
2952
|
"suites": [
|
|
2915
2953
|
{
|
|
2916
|
-
"uuid": "
|
|
2954
|
+
"uuid": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
2917
2955
|
"title": "static version()",
|
|
2918
2956
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
2919
2957
|
"file": "/test/instance.ts",
|
|
@@ -2924,7 +2962,7 @@
|
|
|
2924
2962
|
"title": "should work with pyatv [L]",
|
|
2925
2963
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
2926
2964
|
"timedOut": false,
|
|
2927
|
-
"duration":
|
|
2965
|
+
"duration": 608,
|
|
2928
2966
|
"state": "passed",
|
|
2929
2967
|
"speed": "slow",
|
|
2930
2968
|
"pass": true,
|
|
@@ -2933,8 +2971,8 @@
|
|
|
2933
2971
|
"context": null,
|
|
2934
2972
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield index_1.default.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert_1.default.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert_1.default.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
2935
2973
|
"err": {},
|
|
2936
|
-
"uuid": "
|
|
2937
|
-
"parentUUID": "
|
|
2974
|
+
"uuid": "b43cbfce-1787-49ec-aa79-ddf8ae332689",
|
|
2975
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
2938
2976
|
"isHook": false,
|
|
2939
2977
|
"skipped": false
|
|
2940
2978
|
},
|
|
@@ -2951,8 +2989,8 @@
|
|
|
2951
2989
|
"context": null,
|
|
2952
2990
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert_1.default.ok(result.pyatv);\n assert_1.default.strictEqual(result.pyatv, '0.7.4');\n});",
|
|
2953
2991
|
"err": {},
|
|
2954
|
-
"uuid": "
|
|
2955
|
-
"parentUUID": "
|
|
2992
|
+
"uuid": "06933895-66dc-457f-b686-575f7bd0c0a7",
|
|
2993
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
2956
2994
|
"isHook": false,
|
|
2957
2995
|
"skipped": false
|
|
2958
2996
|
},
|
|
@@ -2969,8 +3007,8 @@
|
|
|
2969
3007
|
"context": null,
|
|
2970
3008
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n assert_1.default.strictEqual(result.module, require(__dirname + '/../package.json').version || null);\n});",
|
|
2971
3009
|
"err": {},
|
|
2972
|
-
"uuid": "
|
|
2973
|
-
"parentUUID": "
|
|
3010
|
+
"uuid": "bddef68a-cb89-4fb9-b186-6326d9efd083",
|
|
3011
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
2974
3012
|
"isHook": false,
|
|
2975
3013
|
"skipped": false
|
|
2976
3014
|
},
|
|
@@ -2987,8 +3025,8 @@
|
|
|
2987
3025
|
"context": null,
|
|
2988
3026
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n atvremotePath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
|
|
2989
3027
|
"err": {},
|
|
2990
|
-
"uuid": "
|
|
2991
|
-
"parentUUID": "
|
|
3028
|
+
"uuid": "f87c93c5-1205-4f43-a727-15b5f1d9d91c",
|
|
3029
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
2992
3030
|
"isHook": false,
|
|
2993
3031
|
"skipped": false
|
|
2994
3032
|
},
|
|
@@ -2996,7 +3034,7 @@
|
|
|
2996
3034
|
"title": "should work with option.debug = true",
|
|
2997
3035
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
2998
3036
|
"timedOut": false,
|
|
2999
|
-
"duration":
|
|
3037
|
+
"duration": 3,
|
|
3000
3038
|
"state": "passed",
|
|
3001
3039
|
"speed": "fast",
|
|
3002
3040
|
"pass": true,
|
|
@@ -3005,8 +3043,8 @@
|
|
|
3005
3043
|
"context": null,
|
|
3006
3044
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3007
3045
|
"err": {},
|
|
3008
|
-
"uuid": "
|
|
3009
|
-
"parentUUID": "
|
|
3046
|
+
"uuid": "16a6654d-c0b8-4a77-b843-6ae41ba91ac1",
|
|
3047
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3010
3048
|
"isHook": false,
|
|
3011
3049
|
"skipped": false
|
|
3012
3050
|
},
|
|
@@ -3023,8 +3061,8 @@
|
|
|
3023
3061
|
"context": null,
|
|
3024
3062
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.version({\n debug: () => { },\n noColors: true,\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.code(1).end())\n });\n});",
|
|
3025
3063
|
"err": {},
|
|
3026
|
-
"uuid": "
|
|
3027
|
-
"parentUUID": "
|
|
3064
|
+
"uuid": "5e0c8aac-cd8d-4298-a3d6-de307aec4287",
|
|
3065
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3028
3066
|
"isHook": false,
|
|
3029
3067
|
"skipped": false
|
|
3030
3068
|
},
|
|
@@ -3041,8 +3079,8 @@
|
|
|
3041
3079
|
"context": null,
|
|
3042
3080
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3043
3081
|
"err": {},
|
|
3044
|
-
"uuid": "
|
|
3045
|
-
"parentUUID": "
|
|
3082
|
+
"uuid": "16258e13-e491-4475-9222-86240cb2bb46",
|
|
3083
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3046
3084
|
"isHook": false,
|
|
3047
3085
|
"skipped": false
|
|
3048
3086
|
},
|
|
@@ -3059,8 +3097,8 @@
|
|
|
3059
3097
|
"context": null,
|
|
3060
3098
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3061
3099
|
"err": {},
|
|
3062
|
-
"uuid": "
|
|
3063
|
-
"parentUUID": "
|
|
3100
|
+
"uuid": "12cbe6f9-a350-453f-af6b-faa16401ee7b",
|
|
3101
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3064
3102
|
"isHook": false,
|
|
3065
3103
|
"skipped": false
|
|
3066
3104
|
},
|
|
@@ -3077,8 +3115,8 @@
|
|
|
3077
3115
|
"context": null,
|
|
3078
3116
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.pyatv, null);\n});",
|
|
3079
3117
|
"err": {},
|
|
3080
|
-
"uuid": "
|
|
3081
|
-
"parentUUID": "
|
|
3118
|
+
"uuid": "b4abc2ad-5166-42e7-8541-b3474b150729",
|
|
3119
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3082
3120
|
"isHook": false,
|
|
3083
3121
|
"skipped": false
|
|
3084
3122
|
},
|
|
@@ -3086,7 +3124,7 @@
|
|
|
3086
3124
|
"title": "should return null on empty module version",
|
|
3087
3125
|
"fullTitle": "NodePyATVInstance static version() should return null on empty module version",
|
|
3088
3126
|
"timedOut": false,
|
|
3089
|
-
"duration":
|
|
3127
|
+
"duration": 2,
|
|
3090
3128
|
"state": "passed",
|
|
3091
3129
|
"speed": "fast",
|
|
3092
3130
|
"pass": true,
|
|
@@ -3095,8 +3133,8 @@
|
|
|
3095
3133
|
"context": null,
|
|
3096
3134
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = {};\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3097
3135
|
"err": {},
|
|
3098
|
-
"uuid": "
|
|
3099
|
-
"parentUUID": "
|
|
3136
|
+
"uuid": "40720ab9-8ca1-45c3-9b20-ca852c1b5e28",
|
|
3137
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3100
3138
|
"isHook": false,
|
|
3101
3139
|
"skipped": false
|
|
3102
3140
|
},
|
|
@@ -3113,36 +3151,36 @@
|
|
|
3113
3151
|
"context": null,
|
|
3114
3152
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = { version: 42 };\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3115
3153
|
"err": {},
|
|
3116
|
-
"uuid": "
|
|
3117
|
-
"parentUUID": "
|
|
3154
|
+
"uuid": "a3f85862-7816-44ec-a43e-b9bf24e44d5a",
|
|
3155
|
+
"parentUUID": "c0e71afc-c23e-4f0b-8a48-296b2692a276",
|
|
3118
3156
|
"isHook": false,
|
|
3119
3157
|
"skipped": false
|
|
3120
3158
|
}
|
|
3121
3159
|
],
|
|
3122
3160
|
"suites": [],
|
|
3123
3161
|
"passes": [
|
|
3124
|
-
"
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
"
|
|
3129
|
-
"
|
|
3130
|
-
"
|
|
3131
|
-
"
|
|
3132
|
-
"
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3162
|
+
"b43cbfce-1787-49ec-aa79-ddf8ae332689",
|
|
3163
|
+
"06933895-66dc-457f-b686-575f7bd0c0a7",
|
|
3164
|
+
"bddef68a-cb89-4fb9-b186-6326d9efd083",
|
|
3165
|
+
"f87c93c5-1205-4f43-a727-15b5f1d9d91c",
|
|
3166
|
+
"16a6654d-c0b8-4a77-b843-6ae41ba91ac1",
|
|
3167
|
+
"5e0c8aac-cd8d-4298-a3d6-de307aec4287",
|
|
3168
|
+
"16258e13-e491-4475-9222-86240cb2bb46",
|
|
3169
|
+
"12cbe6f9-a350-453f-af6b-faa16401ee7b",
|
|
3170
|
+
"b4abc2ad-5166-42e7-8541-b3474b150729",
|
|
3171
|
+
"40720ab9-8ca1-45c3-9b20-ca852c1b5e28",
|
|
3172
|
+
"a3f85862-7816-44ec-a43e-b9bf24e44d5a"
|
|
3135
3173
|
],
|
|
3136
3174
|
"failures": [],
|
|
3137
3175
|
"pending": [],
|
|
3138
3176
|
"skipped": [],
|
|
3139
|
-
"duration":
|
|
3177
|
+
"duration": 625,
|
|
3140
3178
|
"root": false,
|
|
3141
3179
|
"rootEmpty": false,
|
|
3142
3180
|
"_timeout": 2000
|
|
3143
3181
|
},
|
|
3144
3182
|
{
|
|
3145
|
-
"uuid": "
|
|
3183
|
+
"uuid": "24522f5d-25e4-478d-8e25-97f09c3bcb11",
|
|
3146
3184
|
"title": "static check()",
|
|
3147
3185
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3148
3186
|
"file": "/test/instance.ts",
|
|
@@ -3153,7 +3191,7 @@
|
|
|
3153
3191
|
"title": "should resolve in test environment [L]",
|
|
3154
3192
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3155
3193
|
"timedOut": false,
|
|
3156
|
-
"duration":
|
|
3194
|
+
"duration": 5934,
|
|
3157
3195
|
"state": "passed",
|
|
3158
3196
|
"speed": "slow",
|
|
3159
3197
|
"pass": true,
|
|
@@ -3162,8 +3200,8 @@
|
|
|
3162
3200
|
"context": null,
|
|
3163
3201
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield index_1.default.check();\n});",
|
|
3164
3202
|
"err": {},
|
|
3165
|
-
"uuid": "
|
|
3166
|
-
"parentUUID": "
|
|
3203
|
+
"uuid": "c1a85a50-6baa-4ce3-8543-b88129eea70c",
|
|
3204
|
+
"parentUUID": "24522f5d-25e4-478d-8e25-97f09c3bcb11",
|
|
3167
3205
|
"isHook": false,
|
|
3168
3206
|
"skipped": false
|
|
3169
3207
|
},
|
|
@@ -3180,8 +3218,8 @@
|
|
|
3180
3218
|
"context": null,
|
|
3181
3219
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3182
3220
|
"err": {},
|
|
3183
|
-
"uuid": "
|
|
3184
|
-
"parentUUID": "
|
|
3221
|
+
"uuid": "228dae7d-c342-4545-9e36-7db3f78c2147",
|
|
3222
|
+
"parentUUID": "24522f5d-25e4-478d-8e25-97f09c3bcb11",
|
|
3185
3223
|
"isHook": false,
|
|
3186
3224
|
"skipped": false
|
|
3187
3225
|
},
|
|
@@ -3198,8 +3236,8 @@
|
|
|
3198
3236
|
"context": null,
|
|
3199
3237
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.5.1').code(1).end();\n })\n });\n }), /Found pyatv, but unforunately it's too old. Please update pyatv./);\n});",
|
|
3200
3238
|
"err": {},
|
|
3201
|
-
"uuid": "
|
|
3202
|
-
"parentUUID": "
|
|
3239
|
+
"uuid": "9d8565a0-fb0b-4d3c-ba09-080bbfb03d16",
|
|
3240
|
+
"parentUUID": "24522f5d-25e4-478d-8e25-97f09c3bcb11",
|
|
3203
3241
|
"isHook": false,
|
|
3204
3242
|
"skipped": false
|
|
3205
3243
|
},
|
|
@@ -3207,7 +3245,7 @@
|
|
|
3207
3245
|
"title": "should return nice error message if scan failed",
|
|
3208
3246
|
"fullTitle": "NodePyATVInstance static check() should return nice error message if scan failed",
|
|
3209
3247
|
"timedOut": false,
|
|
3210
|
-
"duration":
|
|
3248
|
+
"duration": 2,
|
|
3211
3249
|
"state": "passed",
|
|
3212
3250
|
"speed": "fast",
|
|
3213
3251
|
"pass": true,
|
|
@@ -3216,29 +3254,29 @@
|
|
|
3216
3254
|
"context": null,
|
|
3217
3255
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n if (i === 0) {\n cp.stdout('atvremote 0.7.0').code(1).end();\n i++;\n }\n else {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n }\n })\n });\n }), /Unable to scan for devices/);\n});",
|
|
3218
3256
|
"err": {},
|
|
3219
|
-
"uuid": "
|
|
3220
|
-
"parentUUID": "
|
|
3257
|
+
"uuid": "a24a9bd0-14fc-4139-b11f-87c06153cd28",
|
|
3258
|
+
"parentUUID": "24522f5d-25e4-478d-8e25-97f09c3bcb11",
|
|
3221
3259
|
"isHook": false,
|
|
3222
3260
|
"skipped": false
|
|
3223
3261
|
}
|
|
3224
3262
|
],
|
|
3225
3263
|
"suites": [],
|
|
3226
3264
|
"passes": [
|
|
3227
|
-
"
|
|
3228
|
-
"
|
|
3229
|
-
"
|
|
3230
|
-
"
|
|
3265
|
+
"c1a85a50-6baa-4ce3-8543-b88129eea70c",
|
|
3266
|
+
"228dae7d-c342-4545-9e36-7db3f78c2147",
|
|
3267
|
+
"9d8565a0-fb0b-4d3c-ba09-080bbfb03d16",
|
|
3268
|
+
"a24a9bd0-14fc-4139-b11f-87c06153cd28"
|
|
3231
3269
|
],
|
|
3232
3270
|
"failures": [],
|
|
3233
3271
|
"pending": [],
|
|
3234
3272
|
"skipped": [],
|
|
3235
|
-
"duration":
|
|
3273
|
+
"duration": 5940,
|
|
3236
3274
|
"root": false,
|
|
3237
3275
|
"rootEmpty": false,
|
|
3238
3276
|
"_timeout": 2000
|
|
3239
3277
|
},
|
|
3240
3278
|
{
|
|
3241
|
-
"uuid": "
|
|
3279
|
+
"uuid": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3242
3280
|
"title": "static find()",
|
|
3243
3281
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3244
3282
|
"file": "/test/instance.ts",
|
|
@@ -3249,7 +3287,7 @@
|
|
|
3249
3287
|
"title": "should work [L]",
|
|
3250
3288
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3251
3289
|
"timedOut": false,
|
|
3252
|
-
"duration":
|
|
3290
|
+
"duration": 5467,
|
|
3253
3291
|
"state": "passed",
|
|
3254
3292
|
"speed": "slow",
|
|
3255
3293
|
"pass": true,
|
|
@@ -3258,8 +3296,8 @@
|
|
|
3258
3296
|
"context": null,
|
|
3259
3297
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield index_1.default.find();\n assert_1.default.ok(Array.isArray(result));\n});",
|
|
3260
3298
|
"err": {},
|
|
3261
|
-
"uuid": "
|
|
3262
|
-
"parentUUID": "
|
|
3299
|
+
"uuid": "1dae2688-375f-42b1-a970-0e83d4164183",
|
|
3300
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3263
3301
|
"isHook": false,
|
|
3264
3302
|
"skipped": false
|
|
3265
3303
|
},
|
|
@@ -3276,8 +3314,8 @@
|
|
|
3276
3314
|
"context": null,
|
|
3277
3315
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n atvscriptPath: '/foo/bar',\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), '/foo/bar');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3278
3316
|
"err": {},
|
|
3279
|
-
"uuid": "
|
|
3280
|
-
"parentUUID": "
|
|
3317
|
+
"uuid": "7a0697a3-e69b-4c61-b433-10191eb9c003",
|
|
3318
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3281
3319
|
"isHook": false,
|
|
3282
3320
|
"skipped": false
|
|
3283
3321
|
},
|
|
@@ -3285,7 +3323,7 @@
|
|
|
3285
3323
|
"title": "should throw error on stderr output",
|
|
3286
3324
|
"fullTitle": "NodePyATVInstance static find() should throw error on stderr output",
|
|
3287
3325
|
"timedOut": false,
|
|
3288
|
-
"duration":
|
|
3326
|
+
"duration": 2,
|
|
3289
3327
|
"state": "passed",
|
|
3290
3328
|
"speed": "fast",
|
|
3291
3329
|
"pass": true,
|
|
@@ -3294,8 +3332,8 @@
|
|
|
3294
3332
|
"context": null,
|
|
3295
3333
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
|
|
3296
3334
|
"err": {},
|
|
3297
|
-
"uuid": "
|
|
3298
|
-
"parentUUID": "
|
|
3335
|
+
"uuid": "222b8cb8-c4c2-42f9-a915-ba646a6f893f",
|
|
3336
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3299
3337
|
"isHook": false,
|
|
3300
3338
|
"skipped": false
|
|
3301
3339
|
},
|
|
@@ -3303,7 +3341,7 @@
|
|
|
3303
3341
|
"title": "should throw error on error",
|
|
3304
3342
|
"fullTitle": "NodePyATVInstance static find() should throw error on error",
|
|
3305
3343
|
"timedOut": false,
|
|
3306
|
-
"duration":
|
|
3344
|
+
"duration": 2,
|
|
3307
3345
|
"state": "passed",
|
|
3308
3346
|
"speed": "fast",
|
|
3309
3347
|
"pass": true,
|
|
@@ -3312,8 +3350,8 @@
|
|
|
3312
3350
|
"context": null,
|
|
3313
3351
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
|
|
3314
3352
|
"err": {},
|
|
3315
|
-
"uuid": "
|
|
3316
|
-
"parentUUID": "
|
|
3353
|
+
"uuid": "f1168ec4-97c2-4fd3-8625-f2fdcb8e8afd",
|
|
3354
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3317
3355
|
"isHook": false,
|
|
3318
3356
|
"skipped": false
|
|
3319
3357
|
},
|
|
@@ -3330,8 +3368,8 @@
|
|
|
3330
3368
|
"context": null,
|
|
3331
3369
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout(JSON.stringify({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).substr(1)).end();\n })\n });\n }), /Unable to parse result/);\n});",
|
|
3332
3370
|
"err": {},
|
|
3333
|
-
"uuid": "
|
|
3334
|
-
"parentUUID": "
|
|
3371
|
+
"uuid": "236d31ee-dc3a-41e8-913e-85a66f9458dd",
|
|
3372
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3335
3373
|
"isHook": false,
|
|
3336
3374
|
"skipped": false
|
|
3337
3375
|
},
|
|
@@ -3348,8 +3386,8 @@
|
|
|
3348
3386
|
"context": null,
|
|
3349
3387
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3350
3388
|
"err": {},
|
|
3351
|
-
"uuid": "
|
|
3352
|
-
"parentUUID": "
|
|
3389
|
+
"uuid": "4c0de129-b5ec-460c-9f64-90ba3c581999",
|
|
3390
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3353
3391
|
"isHook": false,
|
|
3354
3392
|
"skipped": false
|
|
3355
3393
|
},
|
|
@@ -3357,7 +3395,7 @@
|
|
|
3357
3395
|
"title": "should throw error if atvscript result is without device array",
|
|
3358
3396
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3359
3397
|
"timedOut": false,
|
|
3360
|
-
"duration":
|
|
3398
|
+
"duration": 2,
|
|
3361
3399
|
"state": "passed",
|
|
3362
3400
|
"speed": "fast",
|
|
3363
3401
|
"pass": true,
|
|
@@ -3366,32 +3404,32 @@
|
|
|
3366
3404
|
"context": null,
|
|
3367
3405
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield index_1.default.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3368
3406
|
"err": {},
|
|
3369
|
-
"uuid": "
|
|
3370
|
-
"parentUUID": "
|
|
3407
|
+
"uuid": "5fe2965a-8715-441c-93bb-ba76be31f520",
|
|
3408
|
+
"parentUUID": "ec8368e9-4fd4-446e-8fd5-27cfc2d2ab63",
|
|
3371
3409
|
"isHook": false,
|
|
3372
3410
|
"skipped": false
|
|
3373
3411
|
}
|
|
3374
3412
|
],
|
|
3375
3413
|
"suites": [],
|
|
3376
3414
|
"passes": [
|
|
3377
|
-
"
|
|
3378
|
-
"
|
|
3379
|
-
"
|
|
3380
|
-
"
|
|
3381
|
-
"
|
|
3382
|
-
"
|
|
3383
|
-
"
|
|
3415
|
+
"1dae2688-375f-42b1-a970-0e83d4164183",
|
|
3416
|
+
"7a0697a3-e69b-4c61-b433-10191eb9c003",
|
|
3417
|
+
"222b8cb8-c4c2-42f9-a915-ba646a6f893f",
|
|
3418
|
+
"f1168ec4-97c2-4fd3-8625-f2fdcb8e8afd",
|
|
3419
|
+
"236d31ee-dc3a-41e8-913e-85a66f9458dd",
|
|
3420
|
+
"4c0de129-b5ec-460c-9f64-90ba3c581999",
|
|
3421
|
+
"5fe2965a-8715-441c-93bb-ba76be31f520"
|
|
3384
3422
|
],
|
|
3385
3423
|
"failures": [],
|
|
3386
3424
|
"pending": [],
|
|
3387
3425
|
"skipped": [],
|
|
3388
|
-
"duration":
|
|
3426
|
+
"duration": 5479,
|
|
3389
3427
|
"root": false,
|
|
3390
3428
|
"rootEmpty": false,
|
|
3391
3429
|
"_timeout": 2000
|
|
3392
3430
|
},
|
|
3393
3431
|
{
|
|
3394
|
-
"uuid": "
|
|
3432
|
+
"uuid": "8c116b06-b04e-41af-811a-bd7305b00fbf",
|
|
3395
3433
|
"title": "static device()",
|
|
3396
3434
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3397
3435
|
"file": "/test/instance.ts",
|
|
@@ -3411,15 +3449,15 @@
|
|
|
3411
3449
|
"context": null,
|
|
3412
3450
|
"code": "const device = index_1.default.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert_1.default.strictEqual(device.host, '192.168.178.6');\nassert_1.default.strictEqual(device.name, 'My Testdevice');",
|
|
3413
3451
|
"err": {},
|
|
3414
|
-
"uuid": "
|
|
3415
|
-
"parentUUID": "
|
|
3452
|
+
"uuid": "300412e8-86cd-4304-8228-d6361a404a97",
|
|
3453
|
+
"parentUUID": "8c116b06-b04e-41af-811a-bd7305b00fbf",
|
|
3416
3454
|
"isHook": false,
|
|
3417
3455
|
"skipped": false
|
|
3418
3456
|
}
|
|
3419
3457
|
],
|
|
3420
3458
|
"suites": [],
|
|
3421
3459
|
"passes": [
|
|
3422
|
-
"
|
|
3460
|
+
"300412e8-86cd-4304-8228-d6361a404a97"
|
|
3423
3461
|
],
|
|
3424
3462
|
"failures": [],
|
|
3425
3463
|
"pending": [],
|
|
@@ -3430,7 +3468,7 @@
|
|
|
3430
3468
|
"_timeout": 2000
|
|
3431
3469
|
},
|
|
3432
3470
|
{
|
|
3433
|
-
"uuid": "
|
|
3471
|
+
"uuid": "b9217c36-2b67-4599-bed9-60c16600d05f",
|
|
3434
3472
|
"title": "version()",
|
|
3435
3473
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3436
3474
|
"file": "/test/instance.ts",
|
|
@@ -3441,7 +3479,7 @@
|
|
|
3441
3479
|
"title": "should merge options from constructor",
|
|
3442
3480
|
"fullTitle": "NodePyATVInstance version() should merge options from constructor",
|
|
3443
3481
|
"timedOut": false,
|
|
3444
|
-
"duration":
|
|
3482
|
+
"duration": 1,
|
|
3445
3483
|
"state": "passed",
|
|
3446
3484
|
"speed": "fast",
|
|
3447
3485
|
"pass": true,
|
|
@@ -3450,26 +3488,26 @@
|
|
|
3450
3488
|
"context": null,
|
|
3451
3489
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield i.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
|
|
3452
3490
|
"err": {},
|
|
3453
|
-
"uuid": "
|
|
3454
|
-
"parentUUID": "
|
|
3491
|
+
"uuid": "c11192d1-29f5-4cac-8c72-88f7979cf2b0",
|
|
3492
|
+
"parentUUID": "b9217c36-2b67-4599-bed9-60c16600d05f",
|
|
3455
3493
|
"isHook": false,
|
|
3456
3494
|
"skipped": false
|
|
3457
3495
|
}
|
|
3458
3496
|
],
|
|
3459
3497
|
"suites": [],
|
|
3460
3498
|
"passes": [
|
|
3461
|
-
"
|
|
3499
|
+
"c11192d1-29f5-4cac-8c72-88f7979cf2b0"
|
|
3462
3500
|
],
|
|
3463
3501
|
"failures": [],
|
|
3464
3502
|
"pending": [],
|
|
3465
3503
|
"skipped": [],
|
|
3466
|
-
"duration":
|
|
3504
|
+
"duration": 1,
|
|
3467
3505
|
"root": false,
|
|
3468
3506
|
"rootEmpty": false,
|
|
3469
3507
|
"_timeout": 2000
|
|
3470
3508
|
},
|
|
3471
3509
|
{
|
|
3472
|
-
"uuid": "
|
|
3510
|
+
"uuid": "4ff90d6b-5081-49c2-8d5c-08f50883a3ed",
|
|
3473
3511
|
"title": "check()",
|
|
3474
3512
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3475
3513
|
"file": "/test/instance.ts",
|
|
@@ -3489,15 +3527,15 @@
|
|
|
3489
3527
|
"context": null,
|
|
3490
3528
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvremotePath: 'test' });\n yield assert_1.default.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3491
3529
|
"err": {},
|
|
3492
|
-
"uuid": "
|
|
3493
|
-
"parentUUID": "
|
|
3530
|
+
"uuid": "31baf99d-71d8-4c72-bf91-7cc05d4292c9",
|
|
3531
|
+
"parentUUID": "4ff90d6b-5081-49c2-8d5c-08f50883a3ed",
|
|
3494
3532
|
"isHook": false,
|
|
3495
3533
|
"skipped": false
|
|
3496
3534
|
}
|
|
3497
3535
|
],
|
|
3498
3536
|
"suites": [],
|
|
3499
3537
|
"passes": [
|
|
3500
|
-
"
|
|
3538
|
+
"31baf99d-71d8-4c72-bf91-7cc05d4292c9"
|
|
3501
3539
|
],
|
|
3502
3540
|
"failures": [],
|
|
3503
3541
|
"pending": [],
|
|
@@ -3508,7 +3546,7 @@
|
|
|
3508
3546
|
"_timeout": 2000
|
|
3509
3547
|
},
|
|
3510
3548
|
{
|
|
3511
|
-
"uuid": "
|
|
3549
|
+
"uuid": "bb6cef54-dcfc-41d6-bfb8-112a135e43ea",
|
|
3512
3550
|
"title": "find()",
|
|
3513
3551
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3514
3552
|
"file": "/test/instance.ts",
|
|
@@ -3528,15 +3566,15 @@
|
|
|
3528
3566
|
"context": null,
|
|
3529
3567
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ atvscriptPath: 'test' });\n yield i.find({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n assert_1.default.strictEqual(cp.cmd(), 'test');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3530
3568
|
"err": {},
|
|
3531
|
-
"uuid": "
|
|
3532
|
-
"parentUUID": "
|
|
3569
|
+
"uuid": "adc7c012-859b-4616-9053-75b5e42a8ad9",
|
|
3570
|
+
"parentUUID": "bb6cef54-dcfc-41d6-bfb8-112a135e43ea",
|
|
3533
3571
|
"isHook": false,
|
|
3534
3572
|
"skipped": false
|
|
3535
3573
|
}
|
|
3536
3574
|
],
|
|
3537
3575
|
"suites": [],
|
|
3538
3576
|
"passes": [
|
|
3539
|
-
"
|
|
3577
|
+
"adc7c012-859b-4616-9053-75b5e42a8ad9"
|
|
3540
3578
|
],
|
|
3541
3579
|
"failures": [],
|
|
3542
3580
|
"pending": [],
|
|
@@ -3547,7 +3585,7 @@
|
|
|
3547
3585
|
"_timeout": 2000
|
|
3548
3586
|
},
|
|
3549
3587
|
{
|
|
3550
|
-
"uuid": "
|
|
3588
|
+
"uuid": "f89cde87-55ae-47c3-9728-2907c83c1a53",
|
|
3551
3589
|
"title": "device()",
|
|
3552
3590
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3553
3591
|
"file": "/test/instance.ts",
|
|
@@ -3567,15 +3605,15 @@
|
|
|
3567
3605
|
"context": null,
|
|
3568
3606
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new index_1.default({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert_1.default.deepStrictEqual(d.debug, true);\n});",
|
|
3569
3607
|
"err": {},
|
|
3570
|
-
"uuid": "
|
|
3571
|
-
"parentUUID": "
|
|
3608
|
+
"uuid": "d16a2a07-5260-4c45-9d6f-0d1139e742cd",
|
|
3609
|
+
"parentUUID": "f89cde87-55ae-47c3-9728-2907c83c1a53",
|
|
3572
3610
|
"isHook": false,
|
|
3573
3611
|
"skipped": false
|
|
3574
3612
|
}
|
|
3575
3613
|
],
|
|
3576
3614
|
"suites": [],
|
|
3577
3615
|
"passes": [
|
|
3578
|
-
"
|
|
3616
|
+
"d16a2a07-5260-4c45-9d6f-0d1139e742cd"
|
|
3579
3617
|
],
|
|
3580
3618
|
"failures": [],
|
|
3581
3619
|
"pending": [],
|
|
@@ -3586,7 +3624,7 @@
|
|
|
3586
3624
|
"_timeout": 2000
|
|
3587
3625
|
},
|
|
3588
3626
|
{
|
|
3589
|
-
"uuid": "
|
|
3627
|
+
"uuid": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3590
3628
|
"title": "Type Exports",
|
|
3591
3629
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3592
3630
|
"file": "/test/instance.ts",
|
|
@@ -3606,8 +3644,8 @@
|
|
|
3606
3644
|
"context": null,
|
|
3607
3645
|
"code": "assert_1.default.ok(index_1.NodePyATVProtocol);",
|
|
3608
3646
|
"err": {},
|
|
3609
|
-
"uuid": "
|
|
3610
|
-
"parentUUID": "
|
|
3647
|
+
"uuid": "514ab98e-f2ca-4ab9-9ff4-576f1e84cf6d",
|
|
3648
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3611
3649
|
"isHook": false,
|
|
3612
3650
|
"skipped": false
|
|
3613
3651
|
},
|
|
@@ -3624,8 +3662,8 @@
|
|
|
3624
3662
|
"context": null,
|
|
3625
3663
|
"code": "assert_1.default.ok(index_1.NodePyATVMediaType);",
|
|
3626
3664
|
"err": {},
|
|
3627
|
-
"uuid": "
|
|
3628
|
-
"parentUUID": "
|
|
3665
|
+
"uuid": "e555b75e-5b8e-48e5-92a3-9534228ec002",
|
|
3666
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3629
3667
|
"isHook": false,
|
|
3630
3668
|
"skipped": false
|
|
3631
3669
|
},
|
|
@@ -3642,8 +3680,8 @@
|
|
|
3642
3680
|
"context": null,
|
|
3643
3681
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceEvent);",
|
|
3644
3682
|
"err": {},
|
|
3645
|
-
"uuid": "
|
|
3646
|
-
"parentUUID": "
|
|
3683
|
+
"uuid": "23dd73c8-7a98-4e8e-8df9-7f1c90670760",
|
|
3684
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3647
3685
|
"isHook": false,
|
|
3648
3686
|
"skipped": false
|
|
3649
3687
|
},
|
|
@@ -3660,8 +3698,8 @@
|
|
|
3660
3698
|
"context": null,
|
|
3661
3699
|
"code": "assert_1.default.ok(index_1.NodePyATVDeviceState);",
|
|
3662
3700
|
"err": {},
|
|
3663
|
-
"uuid": "
|
|
3664
|
-
"parentUUID": "
|
|
3701
|
+
"uuid": "eb695074-677d-4906-b653-9c6f973b086f",
|
|
3702
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3665
3703
|
"isHook": false,
|
|
3666
3704
|
"skipped": false
|
|
3667
3705
|
},
|
|
@@ -3678,8 +3716,8 @@
|
|
|
3678
3716
|
"context": null,
|
|
3679
3717
|
"code": "assert_1.default.ok(index_1.NodePyATVRepeatState);",
|
|
3680
3718
|
"err": {},
|
|
3681
|
-
"uuid": "
|
|
3682
|
-
"parentUUID": "
|
|
3719
|
+
"uuid": "18f8536c-1554-4361-8571-3855d3695d72",
|
|
3720
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3683
3721
|
"isHook": false,
|
|
3684
3722
|
"skipped": false
|
|
3685
3723
|
},
|
|
@@ -3696,8 +3734,8 @@
|
|
|
3696
3734
|
"context": null,
|
|
3697
3735
|
"code": "assert_1.default.ok(index_1.NodePyATVShuffleState);",
|
|
3698
3736
|
"err": {},
|
|
3699
|
-
"uuid": "
|
|
3700
|
-
"parentUUID": "
|
|
3737
|
+
"uuid": "527b886f-1a9a-4ae8-b315-ac3f0dcf9265",
|
|
3738
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3701
3739
|
"isHook": false,
|
|
3702
3740
|
"skipped": false
|
|
3703
3741
|
},
|
|
@@ -3714,21 +3752,21 @@
|
|
|
3714
3752
|
"context": null,
|
|
3715
3753
|
"code": "assert_1.default.ok(index_1.NodePyATVKeys);",
|
|
3716
3754
|
"err": {},
|
|
3717
|
-
"uuid": "
|
|
3718
|
-
"parentUUID": "
|
|
3755
|
+
"uuid": "35117f66-d961-4b0a-a883-1c2037e8e160",
|
|
3756
|
+
"parentUUID": "d9b816a2-f050-49ab-bcbb-54a08fe30f42",
|
|
3719
3757
|
"isHook": false,
|
|
3720
3758
|
"skipped": false
|
|
3721
3759
|
}
|
|
3722
3760
|
],
|
|
3723
3761
|
"suites": [],
|
|
3724
3762
|
"passes": [
|
|
3725
|
-
"
|
|
3726
|
-
"
|
|
3727
|
-
"
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3730
|
-
"
|
|
3731
|
-
"
|
|
3763
|
+
"514ab98e-f2ca-4ab9-9ff4-576f1e84cf6d",
|
|
3764
|
+
"e555b75e-5b8e-48e5-92a3-9534228ec002",
|
|
3765
|
+
"23dd73c8-7a98-4e8e-8df9-7f1c90670760",
|
|
3766
|
+
"eb695074-677d-4906-b653-9c6f973b086f",
|
|
3767
|
+
"18f8536c-1554-4361-8571-3855d3695d72",
|
|
3768
|
+
"527b886f-1a9a-4ae8-b315-ac3f0dcf9265",
|
|
3769
|
+
"35117f66-d961-4b0a-a883-1c2037e8e160"
|
|
3732
3770
|
],
|
|
3733
3771
|
"failures": [],
|
|
3734
3772
|
"pending": [],
|
|
@@ -3749,7 +3787,7 @@
|
|
|
3749
3787
|
"_timeout": 2000
|
|
3750
3788
|
},
|
|
3751
3789
|
{
|
|
3752
|
-
"uuid": "
|
|
3790
|
+
"uuid": "cdee3d12-2c0a-4520-b9c4-98e9c2679788",
|
|
3753
3791
|
"title": "Tools",
|
|
3754
3792
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3755
3793
|
"file": "/test/tools.ts",
|
|
@@ -3758,7 +3796,7 @@
|
|
|
3758
3796
|
"tests": [],
|
|
3759
3797
|
"suites": [
|
|
3760
3798
|
{
|
|
3761
|
-
"uuid": "
|
|
3799
|
+
"uuid": "30746f7c-d969-4731-9ff8-d9e41f01a7bb",
|
|
3762
3800
|
"title": "addRequestId() / removeRequestId()",
|
|
3763
3801
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3764
3802
|
"file": "/test/tools.ts",
|
|
@@ -3778,8 +3816,8 @@
|
|
|
3778
3816
|
"context": null,
|
|
3779
3817
|
"code": "const id = (0, tools_1.addRequestId)();\nassert_1.default.strictEqual(typeof id, 'string');\n(0, tools_1.removeRequestId)(id);",
|
|
3780
3818
|
"err": {},
|
|
3781
|
-
"uuid": "
|
|
3782
|
-
"parentUUID": "
|
|
3819
|
+
"uuid": "e38916f9-ad65-470d-8bc2-5a2dca01dfc3",
|
|
3820
|
+
"parentUUID": "30746f7c-d969-4731-9ff8-d9e41f01a7bb",
|
|
3783
3821
|
"isHook": false,
|
|
3784
3822
|
"skipped": false
|
|
3785
3823
|
},
|
|
@@ -3796,16 +3834,16 @@
|
|
|
3796
3834
|
"context": null,
|
|
3797
3835
|
"code": "(0, tools_1.removeRequestId)('FOO');",
|
|
3798
3836
|
"err": {},
|
|
3799
|
-
"uuid": "
|
|
3800
|
-
"parentUUID": "
|
|
3837
|
+
"uuid": "e05b20c6-d459-4064-bd12-39717a4878ee",
|
|
3838
|
+
"parentUUID": "30746f7c-d969-4731-9ff8-d9e41f01a7bb",
|
|
3801
3839
|
"isHook": false,
|
|
3802
3840
|
"skipped": false
|
|
3803
3841
|
}
|
|
3804
3842
|
],
|
|
3805
3843
|
"suites": [],
|
|
3806
3844
|
"passes": [
|
|
3807
|
-
"
|
|
3808
|
-
"
|
|
3845
|
+
"e38916f9-ad65-470d-8bc2-5a2dca01dfc3",
|
|
3846
|
+
"e05b20c6-d459-4064-bd12-39717a4878ee"
|
|
3809
3847
|
],
|
|
3810
3848
|
"failures": [],
|
|
3811
3849
|
"pending": [],
|
|
@@ -3816,7 +3854,7 @@
|
|
|
3816
3854
|
"_timeout": 2000
|
|
3817
3855
|
},
|
|
3818
3856
|
{
|
|
3819
|
-
"uuid": "
|
|
3857
|
+
"uuid": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3820
3858
|
"title": "debug()",
|
|
3821
3859
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3822
3860
|
"file": "/test/tools.ts",
|
|
@@ -3836,8 +3874,8 @@
|
|
|
3836
3874
|
"context": null,
|
|
3837
3875
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {});",
|
|
3838
3876
|
"err": {},
|
|
3839
|
-
"uuid": "
|
|
3840
|
-
"parentUUID": "
|
|
3877
|
+
"uuid": "a26200b6-2049-4543-8be1-e26c166cb02c",
|
|
3878
|
+
"parentUUID": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3841
3879
|
"isHook": false,
|
|
3842
3880
|
"skipped": false
|
|
3843
3881
|
},
|
|
@@ -3845,7 +3883,7 @@
|
|
|
3845
3883
|
"title": "should work with default logger",
|
|
3846
3884
|
"fullTitle": "Tools debug() should work with default logger",
|
|
3847
3885
|
"timedOut": false,
|
|
3848
|
-
"duration":
|
|
3886
|
+
"duration": 0,
|
|
3849
3887
|
"state": "passed",
|
|
3850
3888
|
"speed": "fast",
|
|
3851
3889
|
"pass": true,
|
|
@@ -3854,8 +3892,8 @@
|
|
|
3854
3892
|
"context": null,
|
|
3855
3893
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { debug: true });",
|
|
3856
3894
|
"err": {},
|
|
3857
|
-
"uuid": "
|
|
3858
|
-
"parentUUID": "
|
|
3895
|
+
"uuid": "82630d38-168f-4dea-934c-e0497a0f9467",
|
|
3896
|
+
"parentUUID": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3859
3897
|
"isHook": false,
|
|
3860
3898
|
"skipped": false
|
|
3861
3899
|
},
|
|
@@ -3872,8 +3910,8 @@
|
|
|
3872
3910
|
"context": null,
|
|
3873
3911
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.ok(msg.includes('Hello World'));\n }\n});",
|
|
3874
3912
|
"err": {},
|
|
3875
|
-
"uuid": "
|
|
3876
|
-
"parentUUID": "
|
|
3913
|
+
"uuid": "bc951f45-669d-4957-8f36-f3cad98ba1cb",
|
|
3914
|
+
"parentUUID": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3877
3915
|
"isHook": false,
|
|
3878
3916
|
"skipped": false
|
|
3879
3917
|
},
|
|
@@ -3890,8 +3928,8 @@
|
|
|
3890
3928
|
"context": null,
|
|
3891
3929
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', { noColors: true });",
|
|
3892
3930
|
"err": {},
|
|
3893
|
-
"uuid": "
|
|
3894
|
-
"parentUUID": "
|
|
3931
|
+
"uuid": "9a243563-09dd-4b1b-8b7c-9d141311c3e0",
|
|
3932
|
+
"parentUUID": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3895
3933
|
"isHook": false,
|
|
3896
3934
|
"skipped": false
|
|
3897
3935
|
},
|
|
@@ -3908,30 +3946,30 @@
|
|
|
3908
3946
|
"context": null,
|
|
3909
3947
|
"code": "(0, tools_1.debug)('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert_1.default.strictEqual(this, null);\n assert_1.default.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
|
|
3910
3948
|
"err": {},
|
|
3911
|
-
"uuid": "
|
|
3912
|
-
"parentUUID": "
|
|
3949
|
+
"uuid": "d35e1bc9-33d9-4522-b561-60d9cadb04c3",
|
|
3950
|
+
"parentUUID": "b5e31cb9-d210-473f-9857-48981b9ce487",
|
|
3913
3951
|
"isHook": false,
|
|
3914
3952
|
"skipped": false
|
|
3915
3953
|
}
|
|
3916
3954
|
],
|
|
3917
3955
|
"suites": [],
|
|
3918
3956
|
"passes": [
|
|
3919
|
-
"
|
|
3920
|
-
"
|
|
3921
|
-
"
|
|
3922
|
-
"
|
|
3923
|
-
"
|
|
3957
|
+
"a26200b6-2049-4543-8be1-e26c166cb02c",
|
|
3958
|
+
"82630d38-168f-4dea-934c-e0497a0f9467",
|
|
3959
|
+
"bc951f45-669d-4957-8f36-f3cad98ba1cb",
|
|
3960
|
+
"9a243563-09dd-4b1b-8b7c-9d141311c3e0",
|
|
3961
|
+
"d35e1bc9-33d9-4522-b561-60d9cadb04c3"
|
|
3924
3962
|
],
|
|
3925
3963
|
"failures": [],
|
|
3926
3964
|
"pending": [],
|
|
3927
3965
|
"skipped": [],
|
|
3928
|
-
"duration":
|
|
3966
|
+
"duration": 0,
|
|
3929
3967
|
"root": false,
|
|
3930
3968
|
"rootEmpty": false,
|
|
3931
3969
|
"_timeout": 2000
|
|
3932
3970
|
},
|
|
3933
3971
|
{
|
|
3934
|
-
"uuid": "
|
|
3972
|
+
"uuid": "cadc91c3-eedb-45d4-b175-9c080225d377",
|
|
3935
3973
|
"title": "getExecutable()",
|
|
3936
3974
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3937
3975
|
"file": "/test/tools.ts",
|
|
@@ -3951,8 +3989,8 @@
|
|
|
3951
3989
|
"context": null,
|
|
3952
3990
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/1');",
|
|
3953
3991
|
"err": {},
|
|
3954
|
-
"uuid": "
|
|
3955
|
-
"parentUUID": "
|
|
3992
|
+
"uuid": "7405d725-2bbc-428a-8e09-9827e4681f71",
|
|
3993
|
+
"parentUUID": "cadc91c3-eedb-45d4-b175-9c080225d377",
|
|
3956
3994
|
"isHook": false,
|
|
3957
3995
|
"skipped": false
|
|
3958
3996
|
},
|
|
@@ -3969,8 +4007,8 @@
|
|
|
3969
4007
|
"context": null,
|
|
3970
4008
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert_1.default.strictEqual(result, '/tmp/2');",
|
|
3971
4009
|
"err": {},
|
|
3972
|
-
"uuid": "
|
|
3973
|
-
"parentUUID": "
|
|
4010
|
+
"uuid": "76c7918f-2115-423b-9268-0857096b6836",
|
|
4011
|
+
"parentUUID": "cadc91c3-eedb-45d4-b175-9c080225d377",
|
|
3974
4012
|
"isHook": false,
|
|
3975
4013
|
"skipped": false
|
|
3976
4014
|
},
|
|
@@ -3978,7 +4016,7 @@
|
|
|
3978
4016
|
"title": "should handle default for atvremote",
|
|
3979
4017
|
"fullTitle": "Tools getExecutable() should handle default for atvremote",
|
|
3980
4018
|
"timedOut": false,
|
|
3981
|
-
"duration":
|
|
4019
|
+
"duration": 1,
|
|
3982
4020
|
"state": "passed",
|
|
3983
4021
|
"speed": "fast",
|
|
3984
4022
|
"pass": true,
|
|
@@ -3987,8 +4025,8 @@
|
|
|
3987
4025
|
"context": null,
|
|
3988
4026
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvremote');",
|
|
3989
4027
|
"err": {},
|
|
3990
|
-
"uuid": "
|
|
3991
|
-
"parentUUID": "
|
|
4028
|
+
"uuid": "d495e4f6-9a31-4d2b-8235-80a83ce4fe5b",
|
|
4029
|
+
"parentUUID": "cadc91c3-eedb-45d4-b175-9c080225d377",
|
|
3992
4030
|
"isHook": false,
|
|
3993
4031
|
"skipped": false
|
|
3994
4032
|
},
|
|
@@ -4005,29 +4043,29 @@
|
|
|
4005
4043
|
"context": null,
|
|
4006
4044
|
"code": "const result = (0, tools_1.getExecutable)(types_1.NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert_1.default.strictEqual(result, 'atvscript');",
|
|
4007
4045
|
"err": {},
|
|
4008
|
-
"uuid": "
|
|
4009
|
-
"parentUUID": "
|
|
4046
|
+
"uuid": "f49f038a-187b-4726-b8be-ee11ecdffa83",
|
|
4047
|
+
"parentUUID": "cadc91c3-eedb-45d4-b175-9c080225d377",
|
|
4010
4048
|
"isHook": false,
|
|
4011
4049
|
"skipped": false
|
|
4012
4050
|
}
|
|
4013
4051
|
],
|
|
4014
4052
|
"suites": [],
|
|
4015
4053
|
"passes": [
|
|
4016
|
-
"
|
|
4017
|
-
"
|
|
4018
|
-
"
|
|
4019
|
-
"
|
|
4054
|
+
"7405d725-2bbc-428a-8e09-9827e4681f71",
|
|
4055
|
+
"76c7918f-2115-423b-9268-0857096b6836",
|
|
4056
|
+
"d495e4f6-9a31-4d2b-8235-80a83ce4fe5b",
|
|
4057
|
+
"f49f038a-187b-4726-b8be-ee11ecdffa83"
|
|
4020
4058
|
],
|
|
4021
4059
|
"failures": [],
|
|
4022
4060
|
"pending": [],
|
|
4023
4061
|
"skipped": [],
|
|
4024
|
-
"duration":
|
|
4062
|
+
"duration": 1,
|
|
4025
4063
|
"root": false,
|
|
4026
4064
|
"rootEmpty": false,
|
|
4027
4065
|
"_timeout": 2000
|
|
4028
4066
|
},
|
|
4029
4067
|
{
|
|
4030
|
-
"uuid": "
|
|
4068
|
+
"uuid": "bfe2f6a7-f9b9-4323-94e1-f836d83066ce",
|
|
4031
4069
|
"title": "getParameters()",
|
|
4032
4070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4033
4071
|
"file": "/test/tools.ts",
|
|
@@ -4047,8 +4085,8 @@
|
|
|
4047
4085
|
"context": null,
|
|
4048
4086
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)();\n assert_1.default.deepEqual(result, []);\n});",
|
|
4049
4087
|
"err": {},
|
|
4050
|
-
"uuid": "
|
|
4051
|
-
"parentUUID": "
|
|
4088
|
+
"uuid": "187a96c1-0213-423b-ab15-3b60bf831803",
|
|
4089
|
+
"parentUUID": "bfe2f6a7-f9b9-4323-94e1-f836d83066ce",
|
|
4052
4090
|
"isHook": false,
|
|
4053
4091
|
"skipped": false
|
|
4054
4092
|
},
|
|
@@ -4065,8 +4103,8 @@
|
|
|
4065
4103
|
"context": null,
|
|
4066
4104
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n host: '192.168.178.2'\n });\n assert_1.default.deepEqual(result, ['-s', '192.168.178.2']);\n});",
|
|
4067
4105
|
"err": {},
|
|
4068
|
-
"uuid": "
|
|
4069
|
-
"parentUUID": "
|
|
4106
|
+
"uuid": "8e4d0220-583a-4ae7-8f27-1707ffcce582",
|
|
4107
|
+
"parentUUID": "bfe2f6a7-f9b9-4323-94e1-f836d83066ce",
|
|
4070
4108
|
"isHook": false,
|
|
4071
4109
|
"skipped": false
|
|
4072
4110
|
},
|
|
@@ -4074,7 +4112,7 @@
|
|
|
4074
4112
|
"title": "full case",
|
|
4075
4113
|
"fullTitle": "Tools getParameters() full case",
|
|
4076
4114
|
"timedOut": false,
|
|
4077
|
-
"duration":
|
|
4115
|
+
"duration": 0,
|
|
4078
4116
|
"state": "passed",
|
|
4079
4117
|
"speed": "fast",
|
|
4080
4118
|
"pass": true,
|
|
@@ -4083,28 +4121,28 @@
|
|
|
4083
4121
|
"context": null,
|
|
4084
4122
|
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield (0, tools_1.getParamters)({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: types_1.NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert_1.default.deepEqual(result, [\n '-s', '192.168.178.2,192.168.178.3',\n '-i', '****',\n '--protocol', 'mrp',\n '--dmap-credentials', '****',\n '--mrp-credentials', '****',\n '--airplay-credentials', '****',\n '--companion-credentials', '1234',\n '--raop-credentials', '::foo:'\n ]);\n});",
|
|
4085
4123
|
"err": {},
|
|
4086
|
-
"uuid": "
|
|
4087
|
-
"parentUUID": "
|
|
4124
|
+
"uuid": "67a8b5af-c0b0-472c-a013-cb81c9ad1fe1",
|
|
4125
|
+
"parentUUID": "bfe2f6a7-f9b9-4323-94e1-f836d83066ce",
|
|
4088
4126
|
"isHook": false,
|
|
4089
4127
|
"skipped": false
|
|
4090
4128
|
}
|
|
4091
4129
|
],
|
|
4092
4130
|
"suites": [],
|
|
4093
4131
|
"passes": [
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4096
|
-
"
|
|
4132
|
+
"187a96c1-0213-423b-ab15-3b60bf831803",
|
|
4133
|
+
"8e4d0220-583a-4ae7-8f27-1707ffcce582",
|
|
4134
|
+
"67a8b5af-c0b0-472c-a013-cb81c9ad1fe1"
|
|
4097
4135
|
],
|
|
4098
4136
|
"failures": [],
|
|
4099
4137
|
"pending": [],
|
|
4100
4138
|
"skipped": [],
|
|
4101
|
-
"duration":
|
|
4139
|
+
"duration": 0,
|
|
4102
4140
|
"root": false,
|
|
4103
4141
|
"rootEmpty": false,
|
|
4104
4142
|
"_timeout": 2000
|
|
4105
4143
|
},
|
|
4106
4144
|
{
|
|
4107
|
-
"uuid": "
|
|
4145
|
+
"uuid": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4108
4146
|
"title": "parseState()",
|
|
4109
4147
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4110
4148
|
"file": "/test/tools.ts",
|
|
@@ -4115,7 +4153,7 @@
|
|
|
4115
4153
|
"title": "should work with empty data",
|
|
4116
4154
|
"fullTitle": "Tools parseState() should work with empty data",
|
|
4117
4155
|
"timedOut": false,
|
|
4118
|
-
"duration":
|
|
4156
|
+
"duration": 1,
|
|
4119
4157
|
"state": "passed",
|
|
4120
4158
|
"speed": "fast",
|
|
4121
4159
|
"pass": true,
|
|
@@ -4124,8 +4162,8 @@
|
|
|
4124
4162
|
"context": null,
|
|
4125
4163
|
"code": "const input = {};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4126
4164
|
"err": {},
|
|
4127
|
-
"uuid": "
|
|
4128
|
-
"parentUUID": "
|
|
4165
|
+
"uuid": "d1608824-2eb5-4526-8f5b-23cc5d3f87fa",
|
|
4166
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4129
4167
|
"isHook": false,
|
|
4130
4168
|
"skipped": false
|
|
4131
4169
|
},
|
|
@@ -4142,8 +4180,8 @@
|
|
|
4142
4180
|
"context": null,
|
|
4143
4181
|
"code": "// @ts-ignore\nconst result = (0, tools_1.parseState)(null, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4144
4182
|
"err": {},
|
|
4145
|
-
"uuid": "
|
|
4146
|
-
"parentUUID": "
|
|
4183
|
+
"uuid": "13d382a6-4846-4bbd-9b9c-4c6f9c7b9428",
|
|
4184
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4147
4185
|
"isHook": false,
|
|
4148
4186
|
"skipped": false
|
|
4149
4187
|
},
|
|
@@ -4160,8 +4198,26 @@
|
|
|
4160
4198
|
"context": null,
|
|
4161
4199
|
"code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: types_1.NodePyATVMediaType.video,\n deviceState: types_1.NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: types_1.NodePyATVShuffleState.off,\n repeat: types_1.NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
|
|
4162
4200
|
"err": {},
|
|
4163
|
-
"uuid": "
|
|
4164
|
-
"parentUUID": "
|
|
4201
|
+
"uuid": "ec9c468b-922a-47a7-a52f-7be9a265de69",
|
|
4202
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4203
|
+
"isHook": false,
|
|
4204
|
+
"skipped": false
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
"title": "should throw an error for pyatv exceptions",
|
|
4208
|
+
"fullTitle": "Tools parseState() should throw an error for pyatv exceptions",
|
|
4209
|
+
"timedOut": false,
|
|
4210
|
+
"duration": 1,
|
|
4211
|
+
"state": "passed",
|
|
4212
|
+
"speed": "fast",
|
|
4213
|
+
"pass": true,
|
|
4214
|
+
"fail": false,
|
|
4215
|
+
"pending": false,
|
|
4216
|
+
"context": null,
|
|
4217
|
+
"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/);",
|
|
4218
|
+
"err": {},
|
|
4219
|
+
"uuid": "2953e4cf-89c5-45af-a666-47aaa6f99db8",
|
|
4220
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4165
4221
|
"isHook": false,
|
|
4166
4222
|
"skipped": false
|
|
4167
4223
|
},
|
|
@@ -4178,8 +4234,8 @@
|
|
|
4178
4234
|
"context": null,
|
|
4179
4235
|
"code": "const input = { datetime: 'today' };\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4180
4236
|
"err": {},
|
|
4181
|
-
"uuid": "
|
|
4182
|
-
"parentUUID": "
|
|
4237
|
+
"uuid": "bdf4306a-cf39-4760-bc48-c70fc21aa34f",
|
|
4238
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4183
4239
|
"isHook": false,
|
|
4184
4240
|
"skipped": false
|
|
4185
4241
|
},
|
|
@@ -4187,7 +4243,7 @@
|
|
|
4187
4243
|
"title": "should ignore data if unsupported type",
|
|
4188
4244
|
"fullTitle": "Tools parseState() should ignore data if unsupported type",
|
|
4189
4245
|
"timedOut": false,
|
|
4190
|
-
"duration":
|
|
4246
|
+
"duration": 0,
|
|
4191
4247
|
"state": "passed",
|
|
4192
4248
|
"speed": "fast",
|
|
4193
4249
|
"pass": true,
|
|
@@ -4196,8 +4252,8 @@
|
|
|
4196
4252
|
"context": null,
|
|
4197
4253
|
"code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4198
4254
|
"err": {},
|
|
4199
|
-
"uuid": "
|
|
4200
|
-
"parentUUID": "
|
|
4255
|
+
"uuid": "bca65ede-ab33-4c5e-9156-e58ee594af3b",
|
|
4256
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4201
4257
|
"isHook": false,
|
|
4202
4258
|
"skipped": false
|
|
4203
4259
|
},
|
|
@@ -4214,25 +4270,26 @@
|
|
|
4214
4270
|
"context": null,
|
|
4215
4271
|
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = (0, tools_1.parseState)(input, '', {});\nassert_1.default.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4216
4272
|
"err": {},
|
|
4217
|
-
"uuid": "
|
|
4218
|
-
"parentUUID": "
|
|
4273
|
+
"uuid": "cdf831f1-1292-41a4-af85-4bc1056ff3f1",
|
|
4274
|
+
"parentUUID": "6afca18e-98af-4596-a5c1-437bfd2b237f",
|
|
4219
4275
|
"isHook": false,
|
|
4220
4276
|
"skipped": false
|
|
4221
4277
|
}
|
|
4222
4278
|
],
|
|
4223
4279
|
"suites": [],
|
|
4224
4280
|
"passes": [
|
|
4225
|
-
"
|
|
4226
|
-
"
|
|
4227
|
-
"
|
|
4228
|
-
"
|
|
4229
|
-
"
|
|
4230
|
-
"
|
|
4281
|
+
"d1608824-2eb5-4526-8f5b-23cc5d3f87fa",
|
|
4282
|
+
"13d382a6-4846-4bbd-9b9c-4c6f9c7b9428",
|
|
4283
|
+
"ec9c468b-922a-47a7-a52f-7be9a265de69",
|
|
4284
|
+
"2953e4cf-89c5-45af-a666-47aaa6f99db8",
|
|
4285
|
+
"bdf4306a-cf39-4760-bc48-c70fc21aa34f",
|
|
4286
|
+
"bca65ede-ab33-4c5e-9156-e58ee594af3b",
|
|
4287
|
+
"cdf831f1-1292-41a4-af85-4bc1056ff3f1"
|
|
4231
4288
|
],
|
|
4232
4289
|
"failures": [],
|
|
4233
4290
|
"pending": [],
|
|
4234
4291
|
"skipped": [],
|
|
4235
|
-
"duration":
|
|
4292
|
+
"duration": 2,
|
|
4236
4293
|
"root": false,
|
|
4237
4294
|
"rootEmpty": false,
|
|
4238
4295
|
"_timeout": 2000
|
|
@@ -4272,11 +4329,11 @@
|
|
|
4272
4329
|
"useInlineDiffs": false,
|
|
4273
4330
|
"code": true
|
|
4274
4331
|
},
|
|
4275
|
-
"version": "
|
|
4332
|
+
"version": "7.0.1"
|
|
4276
4333
|
},
|
|
4277
4334
|
"marge": {
|
|
4278
4335
|
"options": null,
|
|
4279
|
-
"version": "
|
|
4336
|
+
"version": "6.0.1"
|
|
4280
4337
|
}
|
|
4281
4338
|
}
|
|
4282
4339
|
}
|