@sebbo2002/node-pyatv 4.3.4-develop.4 → 5.0.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/.mocharc.yml +3 -3
- package/CHANGELOG.md +12 -0
- package/dist/bin/check.js +2 -6
- package/dist/bin/check.js.map +1 -1
- package/dist/examples/push.js +2 -6
- package/dist/examples/push.js.map +1 -1
- package/dist/lib/device-event.d.ts +2 -2
- package/dist/lib/device-event.js +1 -3
- package/dist/lib/device-event.js.map +1 -1
- package/dist/lib/device-events.d.ts +2 -2
- package/dist/lib/device-events.js +38 -40
- package/dist/lib/device-events.js.map +1 -1
- package/dist/lib/device.d.ts +2 -2
- package/dist/lib/device.js +44 -46
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/fake-spawn.js +7 -14
- package/dist/lib/fake-spawn.js.map +1 -1
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +5 -22
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/instance.d.ts +2 -2
- package/dist/lib/instance.js +27 -27
- package/dist/lib/instance.js.map +1 -1
- package/dist/lib/tools.d.ts +1 -1
- package/dist/lib/tools.js +24 -34
- package/dist/lib/tools.js.map +1 -1
- package/dist/lib/types.js +20 -23
- package/dist/lib/types.js.map +1 -1
- package/docs/coverage/cobertura-coverage.xml +1 -1528
- package/docs/coverage/index.html +20 -125
- package/docs/coverage/index.ts.html +27 -27
- package/docs/reference/assets/highlight.css +7 -21
- package/docs/reference/assets/main.js +4 -2
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/assets/style.css +424 -538
- package/docs/reference/classes/NodePyATVDevice.html +1059 -125
- package/docs/reference/classes/NodePyATVDeviceEvent.html +111 -10
- package/docs/reference/classes/default.html +211 -34
- package/docs/reference/enums/NodePyATVDeviceState.html +93 -1
- package/docs/reference/enums/NodePyATVKeys.html +212 -1
- package/docs/reference/enums/NodePyATVListenerState.html +79 -1
- package/docs/reference/enums/NodePyATVMediaType.html +79 -1
- package/docs/reference/enums/NodePyATVPowerState.html +65 -1
- package/docs/reference/enums/NodePyATVProtocol.html +79 -1
- package/docs/reference/enums/NodePyATVRepeatState.html +72 -1
- package/docs/reference/enums/NodePyATVShuffleState.html +72 -1
- package/docs/reference/index.html +58 -53
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +194 -1
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +190 -1
- package/docs/reference/interfaces/NodePyATVFindOptions.html +120 -1
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +62 -1
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +110 -1
- package/docs/reference/interfaces/NodePyATVState.html +160 -1
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +69 -1
- package/docs/reference/modules.html +89 -1
- package/docs/reference/types/NodePyATVEventValueType.html +61 -0
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +733 -771
- package/package.json +16 -13
- package/release.config.cjs +56 -0
- package/src/bin/check.ts +1 -1
- package/src/examples/push.ts +1 -1
- package/src/lib/device-event.ts +2 -2
- package/src/lib/device-events.ts +4 -4
- package/src/lib/device.ts +3 -3
- package/src/lib/index.ts +5 -5
- package/src/lib/instance.ts +23 -20
- package/src/lib/tools.ts +1 -1
- package/test/device-event.ts +2 -2
- package/test/device-events.ts +2 -2
- package/test/device.ts +4 -4
- package/test/instance.ts +44 -37
- package/test/tools.ts +2 -2
- package/tsconfig.json +1 -1
- package/docs/coverage/device-event.ts.html +0 -251
- package/docs/coverage/device-events.ts.html +0 -956
- package/docs/coverage/device.ts.html +0 -2210
- package/docs/coverage/fake-spawn.ts.html +0 -443
- package/docs/coverage/instance.ts.html +0 -686
- package/docs/coverage/tools.ts.html +0 -1217
- package/docs/coverage/types.ts.html +0 -674
- package/docs/reference/assets/icons.css +0 -1043
- package/docs/reference/assets/icons.png +0 -0
- package/docs/reference/assets/icons@2x.png +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stats": {
|
|
3
3
|
"suites": 84,
|
|
4
|
-
"tests":
|
|
5
|
-
"passes":
|
|
4
|
+
"tests": 141,
|
|
5
|
+
"passes": 139,
|
|
6
6
|
"pending": 2,
|
|
7
7
|
"failures": 0,
|
|
8
|
-
"start": "2022-
|
|
9
|
-
"end": "2022-
|
|
10
|
-
"duration":
|
|
11
|
-
"testsRegistered":
|
|
8
|
+
"start": "2022-07-17T15:47:17.761Z",
|
|
9
|
+
"end": "2022-07-17T15:47:29.763Z",
|
|
10
|
+
"duration": 12002,
|
|
11
|
+
"testsRegistered": 141,
|
|
12
12
|
"passPercent": 100,
|
|
13
|
-
"pendingPercent": 1.
|
|
13
|
+
"pendingPercent": 1.4184397163120568,
|
|
14
14
|
"other": 0,
|
|
15
15
|
"hasOther": false,
|
|
16
16
|
"skipped": 0,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"results": [
|
|
20
20
|
{
|
|
21
|
-
"uuid": "
|
|
21
|
+
"uuid": "7a0df73c-57f5-4f03-b834-d25190668621",
|
|
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": "08889676-7c2b-4a65-8a58-40a5f7012384",
|
|
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": "935aded8-a14a-4b6c-aced-4da9121a96b7",
|
|
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,35 +47,35 @@
|
|
|
47
47
|
"title": "should work",
|
|
48
48
|
"fullTitle": "NodePyATVDeviceEvent get key() should work",
|
|
49
49
|
"timedOut": false,
|
|
50
|
-
"duration":
|
|
50
|
+
"duration": 0,
|
|
51
51
|
"state": "passed",
|
|
52
52
|
"speed": "fast",
|
|
53
53
|
"pass": true,
|
|
54
54
|
"fail": false,
|
|
55
55
|
"pending": false,
|
|
56
56
|
"context": null,
|
|
57
|
-
"code": "const event = new
|
|
57
|
+
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.key, 'genre');",
|
|
58
58
|
"err": {},
|
|
59
|
-
"uuid": "
|
|
60
|
-
"parentUUID": "
|
|
59
|
+
"uuid": "60c655b6-9b76-4306-9fcb-af257aba6a5e",
|
|
60
|
+
"parentUUID": "935aded8-a14a-4b6c-aced-4da9121a96b7",
|
|
61
61
|
"isHook": false,
|
|
62
62
|
"skipped": false
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"suites": [],
|
|
66
66
|
"passes": [
|
|
67
|
-
"
|
|
67
|
+
"60c655b6-9b76-4306-9fcb-af257aba6a5e"
|
|
68
68
|
],
|
|
69
69
|
"failures": [],
|
|
70
70
|
"pending": [],
|
|
71
71
|
"skipped": [],
|
|
72
|
-
"duration":
|
|
72
|
+
"duration": 0,
|
|
73
73
|
"root": false,
|
|
74
74
|
"rootEmpty": false,
|
|
75
75
|
"_timeout": 2000
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"uuid": "
|
|
78
|
+
"uuid": "f1dd0174-e6fe-415f-af62-c903f52ab20d",
|
|
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",
|
|
@@ -93,17 +93,17 @@
|
|
|
93
93
|
"fail": false,
|
|
94
94
|
"pending": false,
|
|
95
95
|
"context": null,
|
|
96
|
-
"code": "const event = new
|
|
96
|
+
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.oldValue, 'Jazz');",
|
|
97
97
|
"err": {},
|
|
98
|
-
"uuid": "
|
|
99
|
-
"parentUUID": "
|
|
98
|
+
"uuid": "f1fa17e5-cb28-4993-a48d-10e745ead20c",
|
|
99
|
+
"parentUUID": "f1dd0174-e6fe-415f-af62-c903f52ab20d",
|
|
100
100
|
"isHook": false,
|
|
101
101
|
"skipped": false
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"suites": [],
|
|
105
105
|
"passes": [
|
|
106
|
-
"
|
|
106
|
+
"f1fa17e5-cb28-4993-a48d-10e745ead20c"
|
|
107
107
|
],
|
|
108
108
|
"failures": [],
|
|
109
109
|
"pending": [],
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"_timeout": 2000
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uuid": "
|
|
117
|
+
"uuid": "e09ff2e6-38cf-45d3-b874-c7f9e8c08b83",
|
|
118
118
|
"title": "get newValue()",
|
|
119
119
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-event.ts",
|
|
120
120
|
"file": "/test/device-event.ts",
|
|
@@ -125,35 +125,35 @@
|
|
|
125
125
|
"title": "should work",
|
|
126
126
|
"fullTitle": "NodePyATVDeviceEvent get newValue() should work",
|
|
127
127
|
"timedOut": false,
|
|
128
|
-
"duration":
|
|
128
|
+
"duration": 1,
|
|
129
129
|
"state": "passed",
|
|
130
130
|
"speed": "fast",
|
|
131
131
|
"pass": true,
|
|
132
132
|
"fail": false,
|
|
133
133
|
"pending": false,
|
|
134
134
|
"context": null,
|
|
135
|
-
"code": "const event = new
|
|
135
|
+
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.newValue, 'Rock');",
|
|
136
136
|
"err": {},
|
|
137
|
-
"uuid": "
|
|
138
|
-
"parentUUID": "
|
|
137
|
+
"uuid": "a87ebca0-ef21-4a0e-9069-9150f6b0bfcb",
|
|
138
|
+
"parentUUID": "e09ff2e6-38cf-45d3-b874-c7f9e8c08b83",
|
|
139
139
|
"isHook": false,
|
|
140
140
|
"skipped": false
|
|
141
141
|
}
|
|
142
142
|
],
|
|
143
143
|
"suites": [],
|
|
144
144
|
"passes": [
|
|
145
|
-
"
|
|
145
|
+
"a87ebca0-ef21-4a0e-9069-9150f6b0bfcb"
|
|
146
146
|
],
|
|
147
147
|
"failures": [],
|
|
148
148
|
"pending": [],
|
|
149
149
|
"skipped": [],
|
|
150
|
-
"duration":
|
|
150
|
+
"duration": 1,
|
|
151
151
|
"root": false,
|
|
152
152
|
"rootEmpty": false,
|
|
153
153
|
"_timeout": 2000
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uuid": "
|
|
156
|
+
"uuid": "ac9c385d-77ec-4da1-932e-4a43ee0a755c",
|
|
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",
|
|
@@ -171,17 +171,17 @@
|
|
|
171
171
|
"fail": false,
|
|
172
172
|
"pending": false,
|
|
173
173
|
"context": null,
|
|
174
|
-
"code": "const event = new
|
|
174
|
+
"code": "const event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device: new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n })\n});\nassert.strictEqual(event.value, 'Rock');",
|
|
175
175
|
"err": {},
|
|
176
|
-
"uuid": "
|
|
177
|
-
"parentUUID": "
|
|
176
|
+
"uuid": "2732ed40-0fa0-4ad4-8f4a-b5eadb8ee669",
|
|
177
|
+
"parentUUID": "ac9c385d-77ec-4da1-932e-4a43ee0a755c",
|
|
178
178
|
"isHook": false,
|
|
179
179
|
"skipped": false
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"suites": [],
|
|
183
183
|
"passes": [
|
|
184
|
-
"
|
|
184
|
+
"2732ed40-0fa0-4ad4-8f4a-b5eadb8ee669"
|
|
185
185
|
],
|
|
186
186
|
"failures": [],
|
|
187
187
|
"pending": [],
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"_timeout": 2000
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uuid": "
|
|
195
|
+
"uuid": "3a478514-267b-43c6-a70e-5385c85e0304",
|
|
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",
|
|
@@ -210,17 +210,17 @@
|
|
|
210
210
|
"fail": false,
|
|
211
211
|
"pending": false,
|
|
212
212
|
"context": null,
|
|
213
|
-
"code": "const device = new
|
|
213
|
+
"code": "const device = new NodePyATVDevice({\n host: '192.168.178.2',\n name: 'My Testinstance'\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'genre',\n old: 'Jazz',\n new: 'Rock',\n device\n});\nassert.deepEqual(event.device, device);",
|
|
214
214
|
"err": {},
|
|
215
|
-
"uuid": "
|
|
216
|
-
"parentUUID": "
|
|
215
|
+
"uuid": "162e5aa6-0422-4f4b-b5ab-b1c20145e8c0",
|
|
216
|
+
"parentUUID": "3a478514-267b-43c6-a70e-5385c85e0304",
|
|
217
217
|
"isHook": false,
|
|
218
218
|
"skipped": false
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"suites": [],
|
|
222
222
|
"passes": [
|
|
223
|
-
"
|
|
223
|
+
"162e5aa6-0422-4f4b-b5ab-b1c20145e8c0"
|
|
224
224
|
],
|
|
225
225
|
"failures": [],
|
|
226
226
|
"pending": [],
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"_timeout": 2000
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
"uuid": "
|
|
244
|
+
"uuid": "d1c93e31-bc31-4892-ae27-8c7da8892ec1",
|
|
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": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
254
254
|
"title": "applyStateAndEmitEvents()",
|
|
255
255
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
256
256
|
"file": "/test/device-events.ts",
|
|
@@ -261,17 +261,17 @@
|
|
|
261
261
|
"title": "should emit update:key event",
|
|
262
262
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event",
|
|
263
263
|
"timedOut": false,
|
|
264
|
-
"duration":
|
|
264
|
+
"duration": 3,
|
|
265
265
|
"state": "passed",
|
|
266
266
|
"speed": "fast",
|
|
267
267
|
"pass": true,
|
|
268
268
|
"fail": false,
|
|
269
269
|
"pending": false,
|
|
270
270
|
"context": null,
|
|
271
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
271
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:title', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
272
272
|
"err": {},
|
|
273
|
-
"uuid": "
|
|
274
|
-
"parentUUID": "
|
|
273
|
+
"uuid": "dc9aa1d5-1a84-478e-a835-3e8a729f383a",
|
|
274
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
275
275
|
"isHook": false,
|
|
276
276
|
"skipped": false
|
|
277
277
|
},
|
|
@@ -286,10 +286,10 @@
|
|
|
286
286
|
"fail": false,
|
|
287
287
|
"pending": false,
|
|
288
288
|
"context": null,
|
|
289
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
289
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'title');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'My Movie');\n assert.strictEqual(event.value, 'My Movie');\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
290
290
|
"err": {},
|
|
291
|
-
"uuid": "
|
|
292
|
-
"parentUUID": "
|
|
291
|
+
"uuid": "3387f0e7-436f-4b54-94b2-f3e2a1f530e0",
|
|
292
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
293
293
|
"isHook": false,
|
|
294
294
|
"skipped": false
|
|
295
295
|
},
|
|
@@ -297,17 +297,17 @@
|
|
|
297
297
|
"title": "should emit update:key event before update",
|
|
298
298
|
"fullTitle": "NodePyATVDeviceEvents applyStateAndEmitEvents() should emit update:key event before update",
|
|
299
299
|
"timedOut": false,
|
|
300
|
-
"duration":
|
|
300
|
+
"duration": 1,
|
|
301
301
|
"state": "passed",
|
|
302
302
|
"speed": "fast",
|
|
303
303
|
"pass": true,
|
|
304
304
|
"fail": false,
|
|
305
305
|
"pending": false,
|
|
306
306
|
"context": null,
|
|
307
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
307
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const sort = [];\n yield Promise.race([\n new Promise(cb => {\n device.once('update', () => {\n sort.push('update');\n cb(undefined);\n });\n }),\n new Promise(cb => {\n device.once('update:title', () => {\n sort.push('update:title');\n cb(undefined);\n });\n })\n ]);\n assert.deepStrictEqual(sort, ['update:title', 'update']);\n});",
|
|
308
308
|
"err": {},
|
|
309
|
-
"uuid": "
|
|
310
|
-
"parentUUID": "
|
|
309
|
+
"uuid": "6ee7547b-6eab-4a90-a1bc-a77da8854789",
|
|
310
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
311
311
|
"isHook": false,
|
|
312
312
|
"skipped": false
|
|
313
313
|
},
|
|
@@ -322,10 +322,10 @@
|
|
|
322
322
|
"fail": false,
|
|
323
323
|
"pending": false,
|
|
324
324
|
"context": null,
|
|
325
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
325
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n yield new Promise(cb => {\n device.once('error', error => {\n assert.ok(error instanceof Error);\n assert.ok(error.toString().includes('invalid credentials: 321'));\n cb(undefined);\n });\n });\n});",
|
|
326
326
|
"err": {},
|
|
327
|
-
"uuid": "
|
|
328
|
-
"parentUUID": "
|
|
327
|
+
"uuid": "267ada84-fc0c-4b27-b9d6-43c94a50faad",
|
|
328
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
329
329
|
"isHook": false,
|
|
330
330
|
"skipped": false
|
|
331
331
|
},
|
|
@@ -340,10 +340,10 @@
|
|
|
340
340
|
"fail": false,
|
|
341
341
|
"pending": false,
|
|
342
342
|
"context": null,
|
|
343
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new
|
|
343
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n let spawnCounter = 0;\n let eventCounter = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n if (spawnCounter === 0) {\n cp.onStdIn(() => cp.end());\n }\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n spawnCounter++;\n if (spawnCounter >= 2) {\n cp.end();\n }\n })\n });\n const listener = () => {\n eventCounter++;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n yield device.getState();\n device.off('update', listener);\n assert.strictEqual(spawnCounter, 2);\n assert.strictEqual(eventCounter, 1);\n});",
|
|
344
344
|
"err": {},
|
|
345
|
-
"uuid": "
|
|
346
|
-
"parentUUID": "
|
|
345
|
+
"uuid": "cfcde59b-0ba6-4508-8bfa-e0f33bc94004",
|
|
346
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
347
347
|
"isHook": false,
|
|
348
348
|
"skipped": false
|
|
349
349
|
},
|
|
@@ -358,10 +358,10 @@
|
|
|
358
358
|
"fail": false,
|
|
359
359
|
"pending": false,
|
|
360
360
|
"context": null,
|
|
361
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
361
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n let callCounter = 0;\n const error = new Error('This is an error. Be nice.');\n device.once('error', err => {\n assert.strictEqual(err, error);\n callCounter++;\n });\n const listener = () => {\n throw error;\n };\n device.on('update', listener);\n yield new Promise(cb => setTimeout(cb, 0));\n device.off('update', listener);\n assert.strictEqual(callCounter, 1);\n});",
|
|
362
362
|
"err": {},
|
|
363
|
-
"uuid": "
|
|
364
|
-
"parentUUID": "
|
|
363
|
+
"uuid": "0b5d4728-8440-49d9-a0cb-d18581de08cf",
|
|
364
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
365
365
|
"isHook": false,
|
|
366
366
|
"skipped": false
|
|
367
367
|
},
|
|
@@ -376,34 +376,34 @@
|
|
|
376
376
|
"fail": false,
|
|
377
377
|
"pending": false,
|
|
378
378
|
"context": null,
|
|
379
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
379
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n datetime: new Date().toJSON(),\n power_state: 'off'\n });\n })\n });\n yield new Promise(cb => {\n device.once('update:powerState', event => {\n assert.ok(event instanceof NodePyATVDeviceEvent);\n assert.strictEqual(event.key, 'powerState');\n assert.strictEqual(event.oldValue, null);\n assert.strictEqual(event.newValue, 'off');\n assert.strictEqual(event.newValue, NodePyATVPowerState.off);\n assert.strictEqual(event.value, 'off');\n assert.strictEqual(event.value, NodePyATVPowerState.off);\n assert.deepStrictEqual(event.device, device);\n cb(undefined);\n });\n });\n});",
|
|
380
380
|
"err": {},
|
|
381
|
-
"uuid": "
|
|
382
|
-
"parentUUID": "
|
|
381
|
+
"uuid": "4bbd00ea-53b0-44e5-a144-f1791aad060b",
|
|
382
|
+
"parentUUID": "bb10506a-5d47-42a0-a03d-d4fed6184a44",
|
|
383
383
|
"isHook": false,
|
|
384
384
|
"skipped": false
|
|
385
385
|
}
|
|
386
386
|
],
|
|
387
387
|
"suites": [],
|
|
388
388
|
"passes": [
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
389
|
+
"dc9aa1d5-1a84-478e-a835-3e8a729f383a",
|
|
390
|
+
"3387f0e7-436f-4b54-94b2-f3e2a1f530e0",
|
|
391
|
+
"6ee7547b-6eab-4a90-a1bc-a77da8854789",
|
|
392
|
+
"267ada84-fc0c-4b27-b9d6-43c94a50faad",
|
|
393
|
+
"cfcde59b-0ba6-4508-8bfa-e0f33bc94004",
|
|
394
|
+
"0b5d4728-8440-49d9-a0cb-d18581de08cf",
|
|
395
|
+
"4bbd00ea-53b0-44e5-a144-f1791aad060b"
|
|
396
396
|
],
|
|
397
397
|
"failures": [],
|
|
398
398
|
"pending": [],
|
|
399
399
|
"skipped": [],
|
|
400
|
-
"duration":
|
|
400
|
+
"duration": 16,
|
|
401
401
|
"root": false,
|
|
402
402
|
"rootEmpty": false,
|
|
403
403
|
"_timeout": 2000
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"uuid": "
|
|
406
|
+
"uuid": "94a61962-6904-4285-9561-a6b4c0fa34e9",
|
|
407
407
|
"title": "start|stopListening()",
|
|
408
408
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
409
409
|
"file": "/test/device-events.ts",
|
|
@@ -414,17 +414,17 @@
|
|
|
414
414
|
"title": "should emit error if spawn fails",
|
|
415
415
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error if spawn fails",
|
|
416
416
|
"timedOut": false,
|
|
417
|
-
"duration":
|
|
417
|
+
"duration": 1,
|
|
418
418
|
"state": "passed",
|
|
419
419
|
"speed": "fast",
|
|
420
420
|
"pass": true,
|
|
421
421
|
"fail": false,
|
|
422
422
|
"pending": false,
|
|
423
423
|
"context": null,
|
|
424
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new
|
|
424
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const error = new Error();\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.error(error).end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.strictEqual(err, error);\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
425
425
|
"err": {},
|
|
426
|
-
"uuid": "
|
|
427
|
-
"parentUUID": "
|
|
426
|
+
"uuid": "7c00ae5a-2523-4da6-aa55-fc9a8f1bd5c8",
|
|
427
|
+
"parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
|
|
428
428
|
"isHook": false,
|
|
429
429
|
"skipped": false
|
|
430
430
|
},
|
|
@@ -432,17 +432,17 @@
|
|
|
432
432
|
"title": "should emit error on stderr data",
|
|
433
433
|
"fullTitle": "NodePyATVDeviceEvents start|stopListening() should emit error on stderr data",
|
|
434
434
|
"timedOut": false,
|
|
435
|
-
"duration":
|
|
435
|
+
"duration": 1,
|
|
436
436
|
"state": "passed",
|
|
437
437
|
"speed": "fast",
|
|
438
438
|
"pass": true,
|
|
439
439
|
"fail": false,
|
|
440
440
|
"pending": false,
|
|
441
441
|
"context": null,
|
|
442
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
442
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Got stderr output from pyatv: Hello World!'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
443
443
|
"err": {},
|
|
444
|
-
"uuid": "
|
|
445
|
-
"parentUUID": "
|
|
444
|
+
"uuid": "ff1793b6-13a3-4695-95e4-5297c65a2293",
|
|
445
|
+
"parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
|
|
446
446
|
"isHook": false,
|
|
447
447
|
"skipped": false
|
|
448
448
|
},
|
|
@@ -457,10 +457,10 @@
|
|
|
457
457
|
"fail": false,
|
|
458
458
|
"pending": false,
|
|
459
459
|
"context": null,
|
|
460
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
460
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.stdout('#').end();\n })\n });\n const listener = () => {\n // empty listener\n };\n device.on('update', listener);\n yield new Promise(cb => {\n device.once('error', err => {\n assert.ok(err instanceof Error);\n assert.ok(err.toString().includes('Unable to parse stdout json: SyntaxError: ' +\n 'Unexpected token # in JSON at position 0'));\n cb(undefined);\n });\n });\n device.off('update', listener);\n});",
|
|
461
461
|
"err": {},
|
|
462
|
-
"uuid": "
|
|
463
|
-
"parentUUID": "
|
|
462
|
+
"uuid": "1b4fa768-d73c-4006-b8ca-64bcdb7f78f0",
|
|
463
|
+
"parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
|
|
464
464
|
"isHook": false,
|
|
465
465
|
"skipped": false
|
|
466
466
|
},
|
|
@@ -477,30 +477,30 @@
|
|
|
477
477
|
"context": null,
|
|
478
478
|
"code": "",
|
|
479
479
|
"err": {},
|
|
480
|
-
"uuid": "
|
|
481
|
-
"parentUUID": "
|
|
480
|
+
"uuid": "74a5b2c9-23d9-474e-8b60-01d7d4cdb80c",
|
|
481
|
+
"parentUUID": "94a61962-6904-4285-9561-a6b4c0fa34e9",
|
|
482
482
|
"isHook": false,
|
|
483
483
|
"skipped": false
|
|
484
484
|
}
|
|
485
485
|
],
|
|
486
486
|
"suites": [],
|
|
487
487
|
"passes": [
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
488
|
+
"7c00ae5a-2523-4da6-aa55-fc9a8f1bd5c8",
|
|
489
|
+
"ff1793b6-13a3-4695-95e4-5297c65a2293",
|
|
490
|
+
"1b4fa768-d73c-4006-b8ca-64bcdb7f78f0"
|
|
491
491
|
],
|
|
492
492
|
"failures": [],
|
|
493
493
|
"pending": [
|
|
494
|
-
"
|
|
494
|
+
"74a5b2c9-23d9-474e-8b60-01d7d4cdb80c"
|
|
495
495
|
],
|
|
496
496
|
"skipped": [],
|
|
497
|
-
"duration":
|
|
497
|
+
"duration": 3,
|
|
498
498
|
"root": false,
|
|
499
499
|
"rootEmpty": false,
|
|
500
500
|
"_timeout": 2000
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
"uuid": "
|
|
503
|
+
"uuid": "88c1ade9-8e0e-46ef-bbcf-4f20d7d34808",
|
|
504
504
|
"title": "addListener() / removeAllListeners()",
|
|
505
505
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
506
506
|
"file": "/test/device-events.ts",
|
|
@@ -511,35 +511,35 @@
|
|
|
511
511
|
"title": "should work without any exceptions",
|
|
512
512
|
"fullTitle": "NodePyATVDeviceEvents addListener() / removeAllListeners() should work without any exceptions",
|
|
513
513
|
"timedOut": false,
|
|
514
|
-
"duration":
|
|
514
|
+
"duration": 1,
|
|
515
515
|
"state": "passed",
|
|
516
516
|
"speed": "fast",
|
|
517
517
|
"pass": true,
|
|
518
518
|
"fail": false,
|
|
519
519
|
"pending": false,
|
|
520
520
|
"context": null,
|
|
521
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
521
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n device.removeAllListeners('update');\n});",
|
|
522
522
|
"err": {},
|
|
523
|
-
"uuid": "
|
|
524
|
-
"parentUUID": "
|
|
523
|
+
"uuid": "486b5a7e-7a5b-4bcc-bd73-42a67e6e967f",
|
|
524
|
+
"parentUUID": "88c1ade9-8e0e-46ef-bbcf-4f20d7d34808",
|
|
525
525
|
"isHook": false,
|
|
526
526
|
"skipped": false
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
529
|
"suites": [],
|
|
530
530
|
"passes": [
|
|
531
|
-
"
|
|
531
|
+
"486b5a7e-7a5b-4bcc-bd73-42a67e6e967f"
|
|
532
532
|
],
|
|
533
533
|
"failures": [],
|
|
534
534
|
"pending": [],
|
|
535
535
|
"skipped": [],
|
|
536
|
-
"duration":
|
|
536
|
+
"duration": 1,
|
|
537
537
|
"root": false,
|
|
538
538
|
"rootEmpty": false,
|
|
539
539
|
"_timeout": 2000
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
"uuid": "
|
|
542
|
+
"uuid": "b575041b-7ebc-4fd6-b4f6-0baad323fb02",
|
|
543
543
|
"title": "emit()",
|
|
544
544
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
545
545
|
"file": "/test/device-events.ts",
|
|
@@ -557,17 +557,17 @@
|
|
|
557
557
|
"fail": false,
|
|
558
558
|
"pending": false,
|
|
559
559
|
"context": null,
|
|
560
|
-
"code": "const device = new
|
|
560
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst event = new NodePyATVDeviceEvent({\n key: 'dateTime',\n old: 'foo',\n new: 'bar',\n device\n});\nlet executions = 0;\ndevice.once('test', (e) => {\n executions++;\n assert.strictEqual(e, event);\n assert.strictEqual(executions, 1);\n done();\n});\ndevice.emit('test', event);",
|
|
561
561
|
"err": {},
|
|
562
|
-
"uuid": "
|
|
563
|
-
"parentUUID": "
|
|
562
|
+
"uuid": "73d657eb-ad29-4996-98fe-aef529b244d3",
|
|
563
|
+
"parentUUID": "b575041b-7ebc-4fd6-b4f6-0baad323fb02",
|
|
564
564
|
"isHook": false,
|
|
565
565
|
"skipped": false
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"suites": [],
|
|
569
569
|
"passes": [
|
|
570
|
-
"
|
|
570
|
+
"73d657eb-ad29-4996-98fe-aef529b244d3"
|
|
571
571
|
],
|
|
572
572
|
"failures": [],
|
|
573
573
|
"pending": [],
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"_timeout": 2000
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
"uuid": "
|
|
581
|
+
"uuid": "6bd6c3d6-cac2-43db-8310-41f924306ee3",
|
|
582
582
|
"title": "eventNames()",
|
|
583
583
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
584
584
|
"file": "/test/device-events.ts",
|
|
@@ -596,17 +596,17 @@
|
|
|
596
596
|
"fail": false,
|
|
597
597
|
"pending": false,
|
|
598
598
|
"context": null,
|
|
599
|
-
"code": "const device = new
|
|
599
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\ndevice.on('test', listener);\nassert.deepStrictEqual(device.eventNames(), ['test']);\ndevice.off('test', listener);",
|
|
600
600
|
"err": {},
|
|
601
|
-
"uuid": "
|
|
602
|
-
"parentUUID": "
|
|
601
|
+
"uuid": "5427cfb9-0a3f-4778-9c1e-3feda09878e8",
|
|
602
|
+
"parentUUID": "6bd6c3d6-cac2-43db-8310-41f924306ee3",
|
|
603
603
|
"isHook": false,
|
|
604
604
|
"skipped": false
|
|
605
605
|
}
|
|
606
606
|
],
|
|
607
607
|
"suites": [],
|
|
608
608
|
"passes": [
|
|
609
|
-
"
|
|
609
|
+
"5427cfb9-0a3f-4778-9c1e-3feda09878e8"
|
|
610
610
|
],
|
|
611
611
|
"failures": [],
|
|
612
612
|
"pending": [],
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"_timeout": 2000
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
"uuid": "
|
|
620
|
+
"uuid": "189ea1a8-7317-491f-97bc-d46bc0f94c27",
|
|
621
621
|
"title": "getMaxListeners()",
|
|
622
622
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
623
623
|
"file": "/test/device-events.ts",
|
|
@@ -635,17 +635,17 @@
|
|
|
635
635
|
"fail": false,
|
|
636
636
|
"pending": false,
|
|
637
637
|
"context": null,
|
|
638
|
-
"code": "const device = new
|
|
638
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst result = device.getMaxListeners();\nassert.ok(typeof result, 'number');\nassert.ok(result >= 10);",
|
|
639
639
|
"err": {},
|
|
640
|
-
"uuid": "
|
|
641
|
-
"parentUUID": "
|
|
640
|
+
"uuid": "6d6e159f-ccc6-44c3-8951-d232e312868e",
|
|
641
|
+
"parentUUID": "189ea1a8-7317-491f-97bc-d46bc0f94c27",
|
|
642
642
|
"isHook": false,
|
|
643
643
|
"skipped": false
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
646
|
"suites": [],
|
|
647
647
|
"passes": [
|
|
648
|
-
"
|
|
648
|
+
"6d6e159f-ccc6-44c3-8951-d232e312868e"
|
|
649
649
|
],
|
|
650
650
|
"failures": [],
|
|
651
651
|
"pending": [],
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"_timeout": 2000
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"uuid": "
|
|
659
|
+
"uuid": "a113c9c7-e390-480e-94c0-9f9c29efbf33",
|
|
660
660
|
"title": "listenerCount()",
|
|
661
661
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
662
662
|
"file": "/test/device-events.ts",
|
|
@@ -674,17 +674,17 @@
|
|
|
674
674
|
"fail": false,
|
|
675
675
|
"pending": false,
|
|
676
676
|
"context": null,
|
|
677
|
-
"code": "const device = new
|
|
677
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listenerCount('test'), 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listenerCount('test'), 1);\ndevice.off('test', listener);",
|
|
678
678
|
"err": {},
|
|
679
|
-
"uuid": "
|
|
680
|
-
"parentUUID": "
|
|
679
|
+
"uuid": "2cf5d668-0ad9-41de-8c44-11e1afbac925",
|
|
680
|
+
"parentUUID": "a113c9c7-e390-480e-94c0-9f9c29efbf33",
|
|
681
681
|
"isHook": false,
|
|
682
682
|
"skipped": false
|
|
683
683
|
}
|
|
684
684
|
],
|
|
685
685
|
"suites": [],
|
|
686
686
|
"passes": [
|
|
687
|
-
"
|
|
687
|
+
"2cf5d668-0ad9-41de-8c44-11e1afbac925"
|
|
688
688
|
],
|
|
689
689
|
"failures": [],
|
|
690
690
|
"pending": [],
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
"_timeout": 2000
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
"uuid": "
|
|
698
|
+
"uuid": "b06dfa95-7aa9-49a7-bebb-f97473f87ca4",
|
|
699
699
|
"title": "listeners()",
|
|
700
700
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
701
701
|
"file": "/test/device-events.ts",
|
|
@@ -706,35 +706,35 @@
|
|
|
706
706
|
"title": "should work",
|
|
707
707
|
"fullTitle": "NodePyATVDeviceEvents listeners() should work",
|
|
708
708
|
"timedOut": false,
|
|
709
|
-
"duration":
|
|
709
|
+
"duration": 1,
|
|
710
710
|
"state": "passed",
|
|
711
711
|
"speed": "fast",
|
|
712
712
|
"pass": true,
|
|
713
713
|
"fail": false,
|
|
714
714
|
"pending": false,
|
|
715
715
|
"context": null,
|
|
716
|
-
"code": "const device = new
|
|
716
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.listeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.listeners('test').length, 1);\nassert.deepStrictEqual(device.listeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
717
717
|
"err": {},
|
|
718
|
-
"uuid": "
|
|
719
|
-
"parentUUID": "
|
|
718
|
+
"uuid": "fc7467b7-cd03-4951-8f3d-6f11a950043b",
|
|
719
|
+
"parentUUID": "b06dfa95-7aa9-49a7-bebb-f97473f87ca4",
|
|
720
720
|
"isHook": false,
|
|
721
721
|
"skipped": false
|
|
722
722
|
}
|
|
723
723
|
],
|
|
724
724
|
"suites": [],
|
|
725
725
|
"passes": [
|
|
726
|
-
"
|
|
726
|
+
"fc7467b7-cd03-4951-8f3d-6f11a950043b"
|
|
727
727
|
],
|
|
728
728
|
"failures": [],
|
|
729
729
|
"pending": [],
|
|
730
730
|
"skipped": [],
|
|
731
|
-
"duration":
|
|
731
|
+
"duration": 1,
|
|
732
732
|
"root": false,
|
|
733
733
|
"rootEmpty": false,
|
|
734
734
|
"_timeout": 2000
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
"uuid": "
|
|
737
|
+
"uuid": "6fe595f8-5a1d-4679-9d06-50f73e041f7c",
|
|
738
738
|
"title": "prependListener()",
|
|
739
739
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
740
740
|
"file": "/test/device-events.ts",
|
|
@@ -752,17 +752,17 @@
|
|
|
752
752
|
"fail": false,
|
|
753
753
|
"pending": false,
|
|
754
754
|
"context": null,
|
|
755
|
-
"code": "const device = new
|
|
755
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\nconst listener = () => {\n device.removeAllListeners('update');\n done();\n};\ndevice.prependListener('update', listener);",
|
|
756
756
|
"err": {},
|
|
757
|
-
"uuid": "
|
|
758
|
-
"parentUUID": "
|
|
757
|
+
"uuid": "b566061a-f47a-4ac4-9ebb-fb94f100308f",
|
|
758
|
+
"parentUUID": "6fe595f8-5a1d-4679-9d06-50f73e041f7c",
|
|
759
759
|
"isHook": false,
|
|
760
760
|
"skipped": false
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
763
|
"suites": [],
|
|
764
764
|
"passes": [
|
|
765
|
-
"
|
|
765
|
+
"b566061a-f47a-4ac4-9ebb-fb94f100308f"
|
|
766
766
|
],
|
|
767
767
|
"failures": [],
|
|
768
768
|
"pending": [],
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"_timeout": 2000
|
|
774
774
|
},
|
|
775
775
|
{
|
|
776
|
-
"uuid": "
|
|
776
|
+
"uuid": "6f5fe99d-34f3-4a06-911d-722c22593ba2",
|
|
777
777
|
"title": "prependOnceListener()",
|
|
778
778
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
779
779
|
"file": "/test/device-events.ts",
|
|
@@ -791,17 +791,17 @@
|
|
|
791
791
|
"fail": false,
|
|
792
792
|
"pending": false,
|
|
793
793
|
"context": null,
|
|
794
|
-
"code": "const device = new
|
|
794
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n});\ndevice.prependOnceListener('update', () => done());",
|
|
795
795
|
"err": {},
|
|
796
|
-
"uuid": "
|
|
797
|
-
"parentUUID": "
|
|
796
|
+
"uuid": "a5c3d040-6faa-4c47-a28f-a57a7053ac8b",
|
|
797
|
+
"parentUUID": "6f5fe99d-34f3-4a06-911d-722c22593ba2",
|
|
798
798
|
"isHook": false,
|
|
799
799
|
"skipped": false
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"suites": [],
|
|
803
803
|
"passes": [
|
|
804
|
-
"
|
|
804
|
+
"a5c3d040-6faa-4c47-a28f-a57a7053ac8b"
|
|
805
805
|
],
|
|
806
806
|
"failures": [],
|
|
807
807
|
"pending": [],
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
"_timeout": 2000
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"uuid": "
|
|
815
|
+
"uuid": "15d49256-76fc-43ad-9cd1-50cc83ca4a90",
|
|
816
816
|
"title": "rawListeners()",
|
|
817
817
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
818
818
|
"file": "/test/device-events.ts",
|
|
@@ -830,17 +830,17 @@
|
|
|
830
830
|
"fail": false,
|
|
831
831
|
"pending": false,
|
|
832
832
|
"context": null,
|
|
833
|
-
"code": "const device = new
|
|
833
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n })\n});\nconst listener = () => {\n // ignore\n};\nassert.deepStrictEqual(device.rawListeners('test').length, 0);\ndevice.on('test', listener);\nassert.deepStrictEqual(device.rawListeners('test').length, 1);\nassert.deepStrictEqual(device.rawListeners('test')[0], listener);\ndevice.off('test', listener);",
|
|
834
834
|
"err": {},
|
|
835
|
-
"uuid": "
|
|
836
|
-
"parentUUID": "
|
|
835
|
+
"uuid": "6030ba52-bb0a-485e-b14e-63ced263370d",
|
|
836
|
+
"parentUUID": "15d49256-76fc-43ad-9cd1-50cc83ca4a90",
|
|
837
837
|
"isHook": false,
|
|
838
838
|
"skipped": false
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
841
|
"suites": [],
|
|
842
842
|
"passes": [
|
|
843
|
-
"
|
|
843
|
+
"6030ba52-bb0a-485e-b14e-63ced263370d"
|
|
844
844
|
],
|
|
845
845
|
"failures": [],
|
|
846
846
|
"pending": [],
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
"_timeout": 2000
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
|
-
"uuid": "
|
|
854
|
+
"uuid": "9dfdc43a-0e87-4960-9cc8-46da7b8e92b6",
|
|
855
855
|
"title": "removeListener()",
|
|
856
856
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device-events.ts",
|
|
857
857
|
"file": "/test/device-events.ts",
|
|
@@ -869,17 +869,17 @@
|
|
|
869
869
|
"fail": false,
|
|
870
870
|
"pending": false,
|
|
871
871
|
"context": null,
|
|
872
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
872
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.onStdIn(() => cp.end());\n cp.stdout({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const listener = () => {\n // empty listener\n };\n device.addListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 1);\n device.removeListener('update', listener);\n assert.deepStrictEqual(device.listenerCount('update'), 0);\n});",
|
|
873
873
|
"err": {},
|
|
874
|
-
"uuid": "
|
|
875
|
-
"parentUUID": "
|
|
874
|
+
"uuid": "50fac915-a650-4540-b7ad-49fde0c20c56",
|
|
875
|
+
"parentUUID": "9dfdc43a-0e87-4960-9cc8-46da7b8e92b6",
|
|
876
876
|
"isHook": false,
|
|
877
877
|
"skipped": false
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
880
|
"suites": [],
|
|
881
881
|
"passes": [
|
|
882
|
-
"
|
|
882
|
+
"50fac915-a650-4540-b7ad-49fde0c20c56"
|
|
883
883
|
],
|
|
884
884
|
"failures": [],
|
|
885
885
|
"pending": [],
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"_timeout": 2000
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
"uuid": "
|
|
903
|
+
"uuid": "0ab029bd-981f-4901-a738-f8fc039a36c4",
|
|
904
904
|
"title": "NodePyATVDevice",
|
|
905
905
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
906
906
|
"file": "/test/device.ts",
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
"tests": [],
|
|
910
910
|
"suites": [
|
|
911
911
|
{
|
|
912
|
-
"uuid": "
|
|
912
|
+
"uuid": "1a0c79f1-4b35-4e02-90ca-87e0d0bf12e5",
|
|
913
913
|
"title": "get name()",
|
|
914
914
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
915
915
|
"file": "/test/device.ts",
|
|
@@ -927,17 +927,17 @@
|
|
|
927
927
|
"fail": false,
|
|
928
928
|
"pending": false,
|
|
929
929
|
"context": null,
|
|
930
|
-
"code": "const device = new
|
|
930
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.name, 'My Testdevice');",
|
|
931
931
|
"err": {},
|
|
932
|
-
"uuid": "
|
|
933
|
-
"parentUUID": "
|
|
932
|
+
"uuid": "d10a8f98-ec94-4fbd-a0a7-238af745036a",
|
|
933
|
+
"parentUUID": "1a0c79f1-4b35-4e02-90ca-87e0d0bf12e5",
|
|
934
934
|
"isHook": false,
|
|
935
935
|
"skipped": false
|
|
936
936
|
}
|
|
937
937
|
],
|
|
938
938
|
"suites": [],
|
|
939
939
|
"passes": [
|
|
940
|
-
"
|
|
940
|
+
"d10a8f98-ec94-4fbd-a0a7-238af745036a"
|
|
941
941
|
],
|
|
942
942
|
"failures": [],
|
|
943
943
|
"pending": [],
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"_timeout": 2000
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
"uuid": "
|
|
951
|
+
"uuid": "75b7cf76-e21d-44b6-9d50-a1950b5485c1",
|
|
952
952
|
"title": "get host()",
|
|
953
953
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
954
954
|
"file": "/test/device.ts",
|
|
@@ -966,17 +966,17 @@
|
|
|
966
966
|
"fail": false,
|
|
967
967
|
"pending": false,
|
|
968
968
|
"context": null,
|
|
969
|
-
"code": "const device = new
|
|
969
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.host, '192.168.178.2');",
|
|
970
970
|
"err": {},
|
|
971
|
-
"uuid": "
|
|
972
|
-
"parentUUID": "
|
|
971
|
+
"uuid": "77131af8-c4d4-42f1-b2b0-7154c9506f40",
|
|
972
|
+
"parentUUID": "75b7cf76-e21d-44b6-9d50-a1950b5485c1",
|
|
973
973
|
"isHook": false,
|
|
974
974
|
"skipped": false
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
977
|
"suites": [],
|
|
978
978
|
"passes": [
|
|
979
|
-
"
|
|
979
|
+
"77131af8-c4d4-42f1-b2b0-7154c9506f40"
|
|
980
980
|
],
|
|
981
981
|
"failures": [],
|
|
982
982
|
"pending": [],
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
"_timeout": 2000
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
"uuid": "
|
|
990
|
+
"uuid": "f96d84dc-3757-4c7a-8cb3-da16bdc71f12",
|
|
991
991
|
"title": "get id()",
|
|
992
992
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
993
993
|
"file": "/test/device.ts",
|
|
@@ -1005,17 +1005,17 @@
|
|
|
1005
1005
|
"fail": false,
|
|
1006
1006
|
"pending": false,
|
|
1007
1007
|
"context": null,
|
|
1008
|
-
"code": "const device = new
|
|
1008
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****'\n});\nassert.strictEqual(device.id, '*****');",
|
|
1009
1009
|
"err": {},
|
|
1010
|
-
"uuid": "
|
|
1011
|
-
"parentUUID": "
|
|
1010
|
+
"uuid": "a4ec52b8-58d5-4fec-9569-f340f0e3a2d4",
|
|
1011
|
+
"parentUUID": "f96d84dc-3757-4c7a-8cb3-da16bdc71f12",
|
|
1012
1012
|
"isHook": false,
|
|
1013
1013
|
"skipped": false
|
|
1014
1014
|
}
|
|
1015
1015
|
],
|
|
1016
1016
|
"suites": [],
|
|
1017
1017
|
"passes": [
|
|
1018
|
-
"
|
|
1018
|
+
"a4ec52b8-58d5-4fec-9569-f340f0e3a2d4"
|
|
1019
1019
|
],
|
|
1020
1020
|
"failures": [],
|
|
1021
1021
|
"pending": [],
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"_timeout": 2000
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"uuid": "
|
|
1029
|
+
"uuid": "2ea77460-6a15-4e30-934c-c0b759e56128",
|
|
1030
1030
|
"title": "get protocol()",
|
|
1031
1031
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1032
1032
|
"file": "/test/device.ts",
|
|
@@ -1044,17 +1044,17 @@
|
|
|
1044
1044
|
"fail": false,
|
|
1045
1045
|
"pending": false,
|
|
1046
1046
|
"context": null,
|
|
1047
|
-
"code": "const device = new
|
|
1047
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n protocol: NodePyATVProtocol.airplay\n});\nassert.strictEqual(device.protocol, NodePyATVProtocol.airplay);",
|
|
1048
1048
|
"err": {},
|
|
1049
|
-
"uuid": "
|
|
1050
|
-
"parentUUID": "
|
|
1049
|
+
"uuid": "554a6237-10c5-4319-81df-ea04a2a0a3a9",
|
|
1050
|
+
"parentUUID": "2ea77460-6a15-4e30-934c-c0b759e56128",
|
|
1051
1051
|
"isHook": false,
|
|
1052
1052
|
"skipped": false
|
|
1053
1053
|
}
|
|
1054
1054
|
],
|
|
1055
1055
|
"suites": [],
|
|
1056
1056
|
"passes": [
|
|
1057
|
-
"
|
|
1057
|
+
"554a6237-10c5-4319-81df-ea04a2a0a3a9"
|
|
1058
1058
|
],
|
|
1059
1059
|
"failures": [],
|
|
1060
1060
|
"pending": [],
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
"_timeout": 2000
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
|
-
"uuid": "
|
|
1068
|
+
"uuid": "3aaeb21d-6042-461e-841f-e9eeab117371",
|
|
1069
1069
|
"title": "get debug()",
|
|
1070
1070
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1071
1071
|
"file": "/test/device.ts",
|
|
@@ -1076,17 +1076,17 @@
|
|
|
1076
1076
|
"title": "should return true if set to true",
|
|
1077
1077
|
"fullTitle": "NodePyATVDevice get debug() should return true if set to true",
|
|
1078
1078
|
"timedOut": false,
|
|
1079
|
-
"duration":
|
|
1079
|
+
"duration": 0,
|
|
1080
1080
|
"state": "passed",
|
|
1081
1081
|
"speed": "fast",
|
|
1082
1082
|
"pass": true,
|
|
1083
1083
|
"fail": false,
|
|
1084
1084
|
"pending": false,
|
|
1085
1085
|
"context": null,
|
|
1086
|
-
"code": "const device = new
|
|
1086
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);",
|
|
1087
1087
|
"err": {},
|
|
1088
|
-
"uuid": "
|
|
1089
|
-
"parentUUID": "
|
|
1088
|
+
"uuid": "f8009fa7-1a87-436a-8902-babba7d22955",
|
|
1089
|
+
"parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
|
|
1090
1090
|
"isHook": false,
|
|
1091
1091
|
"skipped": false
|
|
1092
1092
|
},
|
|
@@ -1101,10 +1101,10 @@
|
|
|
1101
1101
|
"fail": false,
|
|
1102
1102
|
"pending": false,
|
|
1103
1103
|
"context": null,
|
|
1104
|
-
"code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new
|
|
1104
|
+
"code": "// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nconst device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: fn\n});\nassert.strictEqual(device.debug, fn);",
|
|
1105
1105
|
"err": {},
|
|
1106
|
-
"uuid": "
|
|
1107
|
-
"parentUUID": "
|
|
1106
|
+
"uuid": "b7654c11-835a-493e-903d-bb19b28acc17",
|
|
1107
|
+
"parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
|
|
1108
1108
|
"isHook": false,
|
|
1109
1109
|
"skipped": false
|
|
1110
1110
|
},
|
|
@@ -1119,30 +1119,30 @@
|
|
|
1119
1119
|
"fail": false,
|
|
1120
1120
|
"pending": false,
|
|
1121
1121
|
"context": null,
|
|
1122
|
-
"code": "const device = new
|
|
1122
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);",
|
|
1123
1123
|
"err": {},
|
|
1124
|
-
"uuid": "
|
|
1125
|
-
"parentUUID": "
|
|
1124
|
+
"uuid": "b7445acd-c79f-4170-b43f-5bf78a0db40f",
|
|
1125
|
+
"parentUUID": "3aaeb21d-6042-461e-841f-e9eeab117371",
|
|
1126
1126
|
"isHook": false,
|
|
1127
1127
|
"skipped": false
|
|
1128
1128
|
}
|
|
1129
1129
|
],
|
|
1130
1130
|
"suites": [],
|
|
1131
1131
|
"passes": [
|
|
1132
|
-
"
|
|
1133
|
-
"
|
|
1134
|
-
"
|
|
1132
|
+
"f8009fa7-1a87-436a-8902-babba7d22955",
|
|
1133
|
+
"b7654c11-835a-493e-903d-bb19b28acc17",
|
|
1134
|
+
"b7445acd-c79f-4170-b43f-5bf78a0db40f"
|
|
1135
1135
|
],
|
|
1136
1136
|
"failures": [],
|
|
1137
1137
|
"pending": [],
|
|
1138
1138
|
"skipped": [],
|
|
1139
|
-
"duration":
|
|
1139
|
+
"duration": 0,
|
|
1140
1140
|
"root": false,
|
|
1141
1141
|
"rootEmpty": false,
|
|
1142
1142
|
"_timeout": 2000
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
|
-
"uuid": "
|
|
1145
|
+
"uuid": "c2435972-8c60-4ebe-8645-4794258eba42",
|
|
1146
1146
|
"title": "set debug()",
|
|
1147
1147
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1148
1148
|
"file": "/test/device.ts",
|
|
@@ -1160,10 +1160,10 @@
|
|
|
1160
1160
|
"fail": false,
|
|
1161
1161
|
"pending": false,
|
|
1162
1162
|
"context": null,
|
|
1163
|
-
"code": "const device = new
|
|
1163
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.debug, undefined);\ndevice.debug = true;\nassert.strictEqual(device.debug, true);",
|
|
1164
1164
|
"err": {},
|
|
1165
|
-
"uuid": "
|
|
1166
|
-
"parentUUID": "
|
|
1165
|
+
"uuid": "baddfe97-3005-4052-9523-474f12e60d49",
|
|
1166
|
+
"parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
|
|
1167
1167
|
"isHook": false,
|
|
1168
1168
|
"skipped": false
|
|
1169
1169
|
},
|
|
@@ -1171,17 +1171,17 @@
|
|
|
1171
1171
|
"title": "should work for debug = undefined",
|
|
1172
1172
|
"fullTitle": "NodePyATVDevice set debug() should work for debug = undefined",
|
|
1173
1173
|
"timedOut": false,
|
|
1174
|
-
"duration":
|
|
1174
|
+
"duration": 1,
|
|
1175
1175
|
"state": "passed",
|
|
1176
1176
|
"speed": "fast",
|
|
1177
1177
|
"pass": true,
|
|
1178
1178
|
"fail": false,
|
|
1179
1179
|
"pending": false,
|
|
1180
1180
|
"context": null,
|
|
1181
|
-
"code": "const device = new
|
|
1181
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
|
|
1182
1182
|
"err": {},
|
|
1183
|
-
"uuid": "
|
|
1184
|
-
"parentUUID": "
|
|
1183
|
+
"uuid": "7adb0753-b994-40d5-a32d-3f617e8bbd46",
|
|
1184
|
+
"parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
|
|
1185
1185
|
"isHook": false,
|
|
1186
1186
|
"skipped": false
|
|
1187
1187
|
},
|
|
@@ -1196,10 +1196,10 @@
|
|
|
1196
1196
|
"fail": false,
|
|
1197
1197
|
"pending": false,
|
|
1198
1198
|
"context": null,
|
|
1199
|
-
"code": "const device = new
|
|
1199
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n debug: true\n});\nassert.strictEqual(device.debug, true);\ndevice.debug = undefined;\nassert.strictEqual(device.debug, undefined);",
|
|
1200
1200
|
"err": {},
|
|
1201
|
-
"uuid": "
|
|
1202
|
-
"parentUUID": "
|
|
1201
|
+
"uuid": "45d3846c-1a24-4321-b669-ea69e440d281",
|
|
1202
|
+
"parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
|
|
1203
1203
|
"isHook": false,
|
|
1204
1204
|
"skipped": false
|
|
1205
1205
|
},
|
|
@@ -1214,31 +1214,31 @@
|
|
|
1214
1214
|
"fail": false,
|
|
1215
1215
|
"pending": false,
|
|
1216
1216
|
"context": null,
|
|
1217
|
-
"code": "const device = new
|
|
1217
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst fn = () => {\n};\nassert.strictEqual(device.debug, undefined);\ndevice.debug = fn;\nassert.strictEqual(device.debug, fn);",
|
|
1218
1218
|
"err": {},
|
|
1219
|
-
"uuid": "
|
|
1220
|
-
"parentUUID": "
|
|
1219
|
+
"uuid": "48b13c67-5428-4bf6-9a32-984d1f4361a0",
|
|
1220
|
+
"parentUUID": "c2435972-8c60-4ebe-8645-4794258eba42",
|
|
1221
1221
|
"isHook": false,
|
|
1222
1222
|
"skipped": false
|
|
1223
1223
|
}
|
|
1224
1224
|
],
|
|
1225
1225
|
"suites": [],
|
|
1226
1226
|
"passes": [
|
|
1227
|
-
"
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1230
|
-
"
|
|
1227
|
+
"baddfe97-3005-4052-9523-474f12e60d49",
|
|
1228
|
+
"7adb0753-b994-40d5-a32d-3f617e8bbd46",
|
|
1229
|
+
"45d3846c-1a24-4321-b669-ea69e440d281",
|
|
1230
|
+
"48b13c67-5428-4bf6-9a32-984d1f4361a0"
|
|
1231
1231
|
],
|
|
1232
1232
|
"failures": [],
|
|
1233
1233
|
"pending": [],
|
|
1234
1234
|
"skipped": [],
|
|
1235
|
-
"duration":
|
|
1235
|
+
"duration": 1,
|
|
1236
1236
|
"root": false,
|
|
1237
1237
|
"rootEmpty": false,
|
|
1238
1238
|
"_timeout": 2000
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
|
-
"uuid": "
|
|
1241
|
+
"uuid": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
|
|
1242
1242
|
"title": "toJSON()",
|
|
1243
1243
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1244
1244
|
"file": "/test/device.ts",
|
|
@@ -1256,10 +1256,10 @@
|
|
|
1256
1256
|
"fail": false,
|
|
1257
1257
|
"pending": false,
|
|
1258
1258
|
"context": null,
|
|
1259
|
-
"code": "const device = new
|
|
1259
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});\nassert.deepEqual(device.toJSON(), {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n});",
|
|
1260
1260
|
"err": {},
|
|
1261
|
-
"uuid": "
|
|
1262
|
-
"parentUUID": "
|
|
1261
|
+
"uuid": "7fcd7610-2149-439e-9ca8-9e9dfa4fdc11",
|
|
1262
|
+
"parentUUID": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
|
|
1263
1263
|
"isHook": false,
|
|
1264
1264
|
"skipped": false
|
|
1265
1265
|
},
|
|
@@ -1274,18 +1274,18 @@
|
|
|
1274
1274
|
"fail": false,
|
|
1275
1275
|
"pending": false,
|
|
1276
1276
|
"context": null,
|
|
1277
|
-
"code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol:
|
|
1277
|
+
"code": "const config = {\n name: 'My Testdevice',\n host: '192.168.178.2',\n id: '*****',\n protocol: NodePyATVProtocol.airplay\n};\nconst deviceA = new NodePyATVDevice(config);\nconst deviceB = new NodePyATVDevice(deviceA.toJSON());\nassert.deepEqual(deviceB.toJSON(), config);",
|
|
1278
1278
|
"err": {},
|
|
1279
|
-
"uuid": "
|
|
1280
|
-
"parentUUID": "
|
|
1279
|
+
"uuid": "aa5b8203-75cc-417b-8690-aae43179d336",
|
|
1280
|
+
"parentUUID": "657d6f07-470f-4b73-a3e8-5e6b46f71e1c",
|
|
1281
1281
|
"isHook": false,
|
|
1282
1282
|
"skipped": false
|
|
1283
1283
|
}
|
|
1284
1284
|
],
|
|
1285
1285
|
"suites": [],
|
|
1286
1286
|
"passes": [
|
|
1287
|
-
"
|
|
1288
|
-
"
|
|
1287
|
+
"7fcd7610-2149-439e-9ca8-9e9dfa4fdc11",
|
|
1288
|
+
"aa5b8203-75cc-417b-8690-aae43179d336"
|
|
1289
1289
|
],
|
|
1290
1290
|
"failures": [],
|
|
1291
1291
|
"pending": [],
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
"_timeout": 2000
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
"uuid": "
|
|
1299
|
+
"uuid": "4600f62d-5aa3-4694-952f-9d100565b5b7",
|
|
1300
1300
|
"title": "toString()",
|
|
1301
1301
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1302
1302
|
"file": "/test/device.ts",
|
|
@@ -1314,17 +1314,17 @@
|
|
|
1314
1314
|
"fail": false,
|
|
1315
1315
|
"pending": false,
|
|
1316
1316
|
"context": null,
|
|
1317
|
-
"code": "const device = new
|
|
1317
|
+
"code": "const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n});\nassert.strictEqual(device.toString(), 'NodePyATVDevice(My Testdevice, 192.168.178.2)');",
|
|
1318
1318
|
"err": {},
|
|
1319
|
-
"uuid": "
|
|
1320
|
-
"parentUUID": "
|
|
1319
|
+
"uuid": "f0025cdc-4be8-4f20-9263-e53410d11459",
|
|
1320
|
+
"parentUUID": "4600f62d-5aa3-4694-952f-9d100565b5b7",
|
|
1321
1321
|
"isHook": false,
|
|
1322
1322
|
"skipped": false
|
|
1323
1323
|
}
|
|
1324
1324
|
],
|
|
1325
1325
|
"suites": [],
|
|
1326
1326
|
"passes": [
|
|
1327
|
-
"
|
|
1327
|
+
"f0025cdc-4be8-4f20-9263-e53410d11459"
|
|
1328
1328
|
],
|
|
1329
1329
|
"failures": [],
|
|
1330
1330
|
"pending": [],
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
"_timeout": 2000
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
1338
|
-
"uuid": "
|
|
1338
|
+
"uuid": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1339
1339
|
"title": "getState()",
|
|
1340
1340
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1341
1341
|
"file": "/test/device.ts",
|
|
@@ -1355,8 +1355,8 @@
|
|
|
1355
1355
|
"context": null,
|
|
1356
1356
|
"code": "",
|
|
1357
1357
|
"err": {},
|
|
1358
|
-
"uuid": "
|
|
1359
|
-
"parentUUID": "
|
|
1358
|
+
"uuid": "60b939d5-8106-4413-b40d-7610cb67cb67",
|
|
1359
|
+
"parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1360
1360
|
"isHook": false,
|
|
1361
1361
|
"skipped": false
|
|
1362
1362
|
},
|
|
@@ -1364,17 +1364,17 @@
|
|
|
1364
1364
|
"title": "should work",
|
|
1365
1365
|
"fullTitle": "NodePyATVDevice getState() should work",
|
|
1366
1366
|
"timedOut": false,
|
|
1367
|
-
"duration":
|
|
1367
|
+
"duration": 1,
|
|
1368
1368
|
"state": "passed",
|
|
1369
1369
|
"speed": "fast",
|
|
1370
1370
|
"pass": true,
|
|
1371
1371
|
"fail": false,
|
|
1372
1372
|
"pending": false,
|
|
1373
1373
|
"context": null,
|
|
1374
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1374
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const result = yield device.getState();\n assert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n });\n});",
|
|
1375
1375
|
"err": {},
|
|
1376
|
-
"uuid": "
|
|
1377
|
-
"parentUUID": "
|
|
1376
|
+
"uuid": "f78c1cb5-553b-4f53-97ed-3ba5b74cc484",
|
|
1377
|
+
"parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1378
1378
|
"isHook": false,
|
|
1379
1379
|
"skipped": false
|
|
1380
1380
|
},
|
|
@@ -1389,10 +1389,10 @@
|
|
|
1389
1389
|
"fail": false,
|
|
1390
1390
|
"pending": false,
|
|
1391
1391
|
"context": null,
|
|
1392
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1392
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n });\n })\n });\n assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.getState();\n }), /Got pyatv Error: invalid credentials: 321/);\n});",
|
|
1393
1393
|
"err": {},
|
|
1394
|
-
"uuid": "
|
|
1395
|
-
"parentUUID": "
|
|
1394
|
+
"uuid": "0eb8a2fa-553a-47de-81ad-cb5798ff3d9a",
|
|
1395
|
+
"parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1396
1396
|
"isHook": false,
|
|
1397
1397
|
"skipped": false
|
|
1398
1398
|
},
|
|
@@ -1407,10 +1407,10 @@
|
|
|
1407
1407
|
"fail": false,
|
|
1408
1408
|
"pending": false,
|
|
1409
1409
|
"context": null,
|
|
1410
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new
|
|
1410
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: new Date().toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n const secondResult = yield device.getState();\n assert.strictEqual(firstResult.dateTime, secondResult.dateTime);\n assert.strictEqual(executions, 1);\n});",
|
|
1411
1411
|
"err": {},
|
|
1412
|
-
"uuid": "
|
|
1413
|
-
"parentUUID": "
|
|
1412
|
+
"uuid": "71fb219b-fa4e-4bb5-819e-a4af142ad417",
|
|
1413
|
+
"parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1414
1414
|
"isHook": false,
|
|
1415
1415
|
"skipped": false
|
|
1416
1416
|
},
|
|
@@ -1418,40 +1418,40 @@
|
|
|
1418
1418
|
"title": "should update the position if cache was used",
|
|
1419
1419
|
"fullTitle": "NodePyATVDevice getState() should update the position if cache was used",
|
|
1420
1420
|
"timedOut": false,
|
|
1421
|
-
"duration":
|
|
1421
|
+
"duration": 1,
|
|
1422
1422
|
"state": "passed",
|
|
1423
1423
|
"speed": "fast",
|
|
1424
1424
|
"pass": true,
|
|
1425
1425
|
"fail": false,
|
|
1426
1426
|
"pending": false,
|
|
1427
1427
|
"context": null,
|
|
1428
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1428
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date(new Date().getTime() - 1000).toJSON(),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus'\n });\n })\n });\n const firstResult = yield device.getState();\n assert.strictEqual(firstResult.position, 27);\n const secondResult = yield device.getState();\n assert.ok(secondResult.position);\n assert.ok(secondResult.position > 27, `Position should be > 27, was ${secondResult.position}`);\n assert.ok(secondResult.position < 30, `Position should be > 27, was ${secondResult.position}`);\n});",
|
|
1429
1429
|
"err": {},
|
|
1430
|
-
"uuid": "
|
|
1431
|
-
"parentUUID": "
|
|
1430
|
+
"uuid": "8f202c95-17ba-4189-ad02-6ea6bf6a6caa",
|
|
1431
|
+
"parentUUID": "88525ae7-48b2-45cf-9bab-f1a57d7c4bc7",
|
|
1432
1432
|
"isHook": false,
|
|
1433
1433
|
"skipped": false
|
|
1434
1434
|
}
|
|
1435
1435
|
],
|
|
1436
1436
|
"suites": [],
|
|
1437
1437
|
"passes": [
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
"
|
|
1441
|
-
"
|
|
1438
|
+
"f78c1cb5-553b-4f53-97ed-3ba5b74cc484",
|
|
1439
|
+
"0eb8a2fa-553a-47de-81ad-cb5798ff3d9a",
|
|
1440
|
+
"71fb219b-fa4e-4bb5-819e-a4af142ad417",
|
|
1441
|
+
"8f202c95-17ba-4189-ad02-6ea6bf6a6caa"
|
|
1442
1442
|
],
|
|
1443
1443
|
"failures": [],
|
|
1444
1444
|
"pending": [
|
|
1445
|
-
"
|
|
1445
|
+
"60b939d5-8106-4413-b40d-7610cb67cb67"
|
|
1446
1446
|
],
|
|
1447
1447
|
"skipped": [],
|
|
1448
|
-
"duration":
|
|
1448
|
+
"duration": 4,
|
|
1449
1449
|
"root": false,
|
|
1450
1450
|
"rootEmpty": false,
|
|
1451
1451
|
"_timeout": 2000
|
|
1452
1452
|
},
|
|
1453
1453
|
{
|
|
1454
|
-
"uuid": "
|
|
1454
|
+
"uuid": "42e6bdf9-f745-43d7-b938-9c081cefc0d4",
|
|
1455
1455
|
"title": "clearState()",
|
|
1456
1456
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1457
1457
|
"file": "/test/device.ts",
|
|
@@ -1462,35 +1462,35 @@
|
|
|
1462
1462
|
"title": "should work",
|
|
1463
1463
|
"fullTitle": "NodePyATVDevice clearState() should work",
|
|
1464
1464
|
"timedOut": false,
|
|
1465
|
-
"duration":
|
|
1465
|
+
"duration": 2,
|
|
1466
1466
|
"state": "passed",
|
|
1467
1467
|
"speed": "fast",
|
|
1468
1468
|
"pass": true,
|
|
1469
1469
|
"fail": false,
|
|
1470
1470
|
"pending": false,
|
|
1471
1471
|
"context": null,
|
|
1472
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new
|
|
1472
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n let executions = 0;\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n executions++;\n cp.end({\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n title: 'Solo: A Star Wars Story'\n });\n })\n });\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n device.clearState();\n assert.deepStrictEqual(yield device.getTitle(), 'Solo: A Star Wars Story');\n assert.strictEqual(executions, 2);\n});",
|
|
1473
1473
|
"err": {},
|
|
1474
|
-
"uuid": "
|
|
1475
|
-
"parentUUID": "
|
|
1474
|
+
"uuid": "223937a5-c5fa-4b4a-a860-fb693bb00581",
|
|
1475
|
+
"parentUUID": "42e6bdf9-f745-43d7-b938-9c081cefc0d4",
|
|
1476
1476
|
"isHook": false,
|
|
1477
1477
|
"skipped": false
|
|
1478
1478
|
}
|
|
1479
1479
|
],
|
|
1480
1480
|
"suites": [],
|
|
1481
1481
|
"passes": [
|
|
1482
|
-
"
|
|
1482
|
+
"223937a5-c5fa-4b4a-a860-fb693bb00581"
|
|
1483
1483
|
],
|
|
1484
1484
|
"failures": [],
|
|
1485
1485
|
"pending": [],
|
|
1486
1486
|
"skipped": [],
|
|
1487
|
-
"duration":
|
|
1487
|
+
"duration": 2,
|
|
1488
1488
|
"root": false,
|
|
1489
1489
|
"rootEmpty": false,
|
|
1490
1490
|
"_timeout": 2000
|
|
1491
1491
|
},
|
|
1492
1492
|
{
|
|
1493
|
-
"uuid": "
|
|
1493
|
+
"uuid": "3f1efe18-c8e4-4910-b891-be243d5aeb0d",
|
|
1494
1494
|
"title": "getDateTime()",
|
|
1495
1495
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1496
1496
|
"file": "/test/device.ts",
|
|
@@ -1508,17 +1508,17 @@
|
|
|
1508
1508
|
"fail": false,
|
|
1509
1509
|
"pending": false,
|
|
1510
1510
|
"context": null,
|
|
1511
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1511
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n datetime: new Date().toJSON()\n });\n })\n });\n const result = yield device.getDateTime();\n assert.ok(result instanceof Date);\n});",
|
|
1512
1512
|
"err": {},
|
|
1513
|
-
"uuid": "
|
|
1514
|
-
"parentUUID": "
|
|
1513
|
+
"uuid": "be6b5fbd-f7de-4389-a9d9-5a34f6e9d916",
|
|
1514
|
+
"parentUUID": "3f1efe18-c8e4-4910-b891-be243d5aeb0d",
|
|
1515
1515
|
"isHook": false,
|
|
1516
1516
|
"skipped": false
|
|
1517
1517
|
}
|
|
1518
1518
|
],
|
|
1519
1519
|
"suites": [],
|
|
1520
1520
|
"passes": [
|
|
1521
|
-
"
|
|
1521
|
+
"be6b5fbd-f7de-4389-a9d9-5a34f6e9d916"
|
|
1522
1522
|
],
|
|
1523
1523
|
"failures": [],
|
|
1524
1524
|
"pending": [],
|
|
@@ -1529,7 +1529,7 @@
|
|
|
1529
1529
|
"_timeout": 2000
|
|
1530
1530
|
},
|
|
1531
1531
|
{
|
|
1532
|
-
"uuid": "
|
|
1532
|
+
"uuid": "95d2432b-c72c-4c66-9a5d-681e3bdf8c77",
|
|
1533
1533
|
"title": "getHash()",
|
|
1534
1534
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1535
1535
|
"file": "/test/device.ts",
|
|
@@ -1540,35 +1540,35 @@
|
|
|
1540
1540
|
"title": "should work",
|
|
1541
1541
|
"fullTitle": "NodePyATVDevice getHash() should work",
|
|
1542
1542
|
"timedOut": false,
|
|
1543
|
-
"duration":
|
|
1543
|
+
"duration": 1,
|
|
1544
1544
|
"state": "passed",
|
|
1545
1545
|
"speed": "fast",
|
|
1546
1546
|
"pass": true,
|
|
1547
1547
|
"fail": false,
|
|
1548
1548
|
"pending": false,
|
|
1549
1549
|
"context": null,
|
|
1550
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1550
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n hash: '12345'\n });\n })\n });\n const result = yield device.getHash();\n assert.strictEqual(result, '12345');\n});",
|
|
1551
1551
|
"err": {},
|
|
1552
|
-
"uuid": "
|
|
1553
|
-
"parentUUID": "
|
|
1552
|
+
"uuid": "48a9042e-ed9c-45b6-8b75-f5c9260845a7",
|
|
1553
|
+
"parentUUID": "95d2432b-c72c-4c66-9a5d-681e3bdf8c77",
|
|
1554
1554
|
"isHook": false,
|
|
1555
1555
|
"skipped": false
|
|
1556
1556
|
}
|
|
1557
1557
|
],
|
|
1558
1558
|
"suites": [],
|
|
1559
1559
|
"passes": [
|
|
1560
|
-
"
|
|
1560
|
+
"48a9042e-ed9c-45b6-8b75-f5c9260845a7"
|
|
1561
1561
|
],
|
|
1562
1562
|
"failures": [],
|
|
1563
1563
|
"pending": [],
|
|
1564
1564
|
"skipped": [],
|
|
1565
|
-
"duration":
|
|
1565
|
+
"duration": 1,
|
|
1566
1566
|
"root": false,
|
|
1567
1567
|
"rootEmpty": false,
|
|
1568
1568
|
"_timeout": 2000
|
|
1569
1569
|
},
|
|
1570
1570
|
{
|
|
1571
|
-
"uuid": "
|
|
1571
|
+
"uuid": "0f3b1773-8a95-41f8-8715-02c285443f67",
|
|
1572
1572
|
"title": "getMediaType()",
|
|
1573
1573
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1574
1574
|
"file": "/test/device.ts",
|
|
@@ -1579,35 +1579,35 @@
|
|
|
1579
1579
|
"title": "should work",
|
|
1580
1580
|
"fullTitle": "NodePyATVDevice getMediaType() should work",
|
|
1581
1581
|
"timedOut": false,
|
|
1582
|
-
"duration":
|
|
1582
|
+
"duration": 1,
|
|
1583
1583
|
"state": "passed",
|
|
1584
1584
|
"speed": "fast",
|
|
1585
1585
|
"pass": true,
|
|
1586
1586
|
"fail": false,
|
|
1587
1587
|
"pending": false,
|
|
1588
1588
|
"context": null,
|
|
1589
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1589
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n media_type: 'video'\n });\n })\n });\n const result = yield device.getMediaType();\n assert.deepStrictEqual(result, NodePyATVMediaType.video);\n assert.deepStrictEqual(result, 'video');\n});",
|
|
1590
1590
|
"err": {},
|
|
1591
|
-
"uuid": "
|
|
1592
|
-
"parentUUID": "
|
|
1591
|
+
"uuid": "ed683468-f2f3-46c6-9f83-7d53ed065417",
|
|
1592
|
+
"parentUUID": "0f3b1773-8a95-41f8-8715-02c285443f67",
|
|
1593
1593
|
"isHook": false,
|
|
1594
1594
|
"skipped": false
|
|
1595
1595
|
}
|
|
1596
1596
|
],
|
|
1597
1597
|
"suites": [],
|
|
1598
1598
|
"passes": [
|
|
1599
|
-
"
|
|
1599
|
+
"ed683468-f2f3-46c6-9f83-7d53ed065417"
|
|
1600
1600
|
],
|
|
1601
1601
|
"failures": [],
|
|
1602
1602
|
"pending": [],
|
|
1603
1603
|
"skipped": [],
|
|
1604
|
-
"duration":
|
|
1604
|
+
"duration": 1,
|
|
1605
1605
|
"root": false,
|
|
1606
1606
|
"rootEmpty": false,
|
|
1607
1607
|
"_timeout": 2000
|
|
1608
1608
|
},
|
|
1609
1609
|
{
|
|
1610
|
-
"uuid": "
|
|
1610
|
+
"uuid": "54b20fcc-b876-4997-8df2-29f1fa9e4c71",
|
|
1611
1611
|
"title": "getDeviceState()",
|
|
1612
1612
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1613
1613
|
"file": "/test/device.ts",
|
|
@@ -1618,35 +1618,35 @@
|
|
|
1618
1618
|
"title": "should work",
|
|
1619
1619
|
"fullTitle": "NodePyATVDevice getDeviceState() should work",
|
|
1620
1620
|
"timedOut": false,
|
|
1621
|
-
"duration":
|
|
1621
|
+
"duration": 1,
|
|
1622
1622
|
"state": "passed",
|
|
1623
1623
|
"speed": "fast",
|
|
1624
1624
|
"pass": true,
|
|
1625
1625
|
"fail": false,
|
|
1626
1626
|
"pending": false,
|
|
1627
1627
|
"context": null,
|
|
1628
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1628
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n device_state: 'seeking'\n });\n })\n });\n const result = yield device.getDeviceState();\n assert.deepStrictEqual(result, NodePyATVDeviceState.seeking);\n assert.deepStrictEqual(result, 'seeking');\n});",
|
|
1629
1629
|
"err": {},
|
|
1630
|
-
"uuid": "
|
|
1631
|
-
"parentUUID": "
|
|
1630
|
+
"uuid": "106a8a35-b3ea-4a7e-990c-6990b1597980",
|
|
1631
|
+
"parentUUID": "54b20fcc-b876-4997-8df2-29f1fa9e4c71",
|
|
1632
1632
|
"isHook": false,
|
|
1633
1633
|
"skipped": false
|
|
1634
1634
|
}
|
|
1635
1635
|
],
|
|
1636
1636
|
"suites": [],
|
|
1637
1637
|
"passes": [
|
|
1638
|
-
"
|
|
1638
|
+
"106a8a35-b3ea-4a7e-990c-6990b1597980"
|
|
1639
1639
|
],
|
|
1640
1640
|
"failures": [],
|
|
1641
1641
|
"pending": [],
|
|
1642
1642
|
"skipped": [],
|
|
1643
|
-
"duration":
|
|
1643
|
+
"duration": 1,
|
|
1644
1644
|
"root": false,
|
|
1645
1645
|
"rootEmpty": false,
|
|
1646
1646
|
"_timeout": 2000
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"uuid": "
|
|
1649
|
+
"uuid": "4fab204c-4833-400b-9b07-452926ce0a6e",
|
|
1650
1650
|
"title": "getTitle()",
|
|
1651
1651
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1652
1652
|
"file": "/test/device.ts",
|
|
@@ -1657,35 +1657,35 @@
|
|
|
1657
1657
|
"title": "should work",
|
|
1658
1658
|
"fullTitle": "NodePyATVDevice getTitle() should work",
|
|
1659
1659
|
"timedOut": false,
|
|
1660
|
-
"duration":
|
|
1660
|
+
"duration": 1,
|
|
1661
1661
|
"state": "passed",
|
|
1662
1662
|
"speed": "fast",
|
|
1663
1663
|
"pass": true,
|
|
1664
1664
|
"fail": false,
|
|
1665
1665
|
"pending": false,
|
|
1666
1666
|
"context": null,
|
|
1667
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1667
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n title: 'My Movie'\n });\n })\n });\n const result = yield device.getTitle();\n assert.strictEqual(result, 'My Movie');\n});",
|
|
1668
1668
|
"err": {},
|
|
1669
|
-
"uuid": "
|
|
1670
|
-
"parentUUID": "
|
|
1669
|
+
"uuid": "7be7ca70-de7e-4e75-93e4-0b1eb17ac854",
|
|
1670
|
+
"parentUUID": "4fab204c-4833-400b-9b07-452926ce0a6e",
|
|
1671
1671
|
"isHook": false,
|
|
1672
1672
|
"skipped": false
|
|
1673
1673
|
}
|
|
1674
1674
|
],
|
|
1675
1675
|
"suites": [],
|
|
1676
1676
|
"passes": [
|
|
1677
|
-
"
|
|
1677
|
+
"7be7ca70-de7e-4e75-93e4-0b1eb17ac854"
|
|
1678
1678
|
],
|
|
1679
1679
|
"failures": [],
|
|
1680
1680
|
"pending": [],
|
|
1681
1681
|
"skipped": [],
|
|
1682
|
-
"duration":
|
|
1682
|
+
"duration": 1,
|
|
1683
1683
|
"root": false,
|
|
1684
1684
|
"rootEmpty": false,
|
|
1685
1685
|
"_timeout": 2000
|
|
1686
1686
|
},
|
|
1687
1687
|
{
|
|
1688
|
-
"uuid": "
|
|
1688
|
+
"uuid": "ba28018e-d4c2-40d3-8d63-8e2626a20d17",
|
|
1689
1689
|
"title": "getArtist()",
|
|
1690
1690
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1691
1691
|
"file": "/test/device.ts",
|
|
@@ -1696,35 +1696,35 @@
|
|
|
1696
1696
|
"title": "should work",
|
|
1697
1697
|
"fullTitle": "NodePyATVDevice getArtist() should work",
|
|
1698
1698
|
"timedOut": false,
|
|
1699
|
-
"duration":
|
|
1699
|
+
"duration": 1,
|
|
1700
1700
|
"state": "passed",
|
|
1701
1701
|
"speed": "fast",
|
|
1702
1702
|
"pass": true,
|
|
1703
1703
|
"fail": false,
|
|
1704
1704
|
"pending": false,
|
|
1705
1705
|
"context": null,
|
|
1706
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1706
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n artist: 'My Artist'\n });\n })\n });\n const result = yield device.getArtist();\n assert.strictEqual(result, 'My Artist');\n});",
|
|
1707
1707
|
"err": {},
|
|
1708
|
-
"uuid": "
|
|
1709
|
-
"parentUUID": "
|
|
1708
|
+
"uuid": "4dfdce5a-cae1-4bce-bdf9-4af50300ebea",
|
|
1709
|
+
"parentUUID": "ba28018e-d4c2-40d3-8d63-8e2626a20d17",
|
|
1710
1710
|
"isHook": false,
|
|
1711
1711
|
"skipped": false
|
|
1712
1712
|
}
|
|
1713
1713
|
],
|
|
1714
1714
|
"suites": [],
|
|
1715
1715
|
"passes": [
|
|
1716
|
-
"
|
|
1716
|
+
"4dfdce5a-cae1-4bce-bdf9-4af50300ebea"
|
|
1717
1717
|
],
|
|
1718
1718
|
"failures": [],
|
|
1719
1719
|
"pending": [],
|
|
1720
1720
|
"skipped": [],
|
|
1721
|
-
"duration":
|
|
1721
|
+
"duration": 1,
|
|
1722
1722
|
"root": false,
|
|
1723
1723
|
"rootEmpty": false,
|
|
1724
1724
|
"_timeout": 2000
|
|
1725
1725
|
},
|
|
1726
1726
|
{
|
|
1727
|
-
"uuid": "
|
|
1727
|
+
"uuid": "9a0093e0-abc2-4623-b6dd-507023f5012c",
|
|
1728
1728
|
"title": "getAlbum()",
|
|
1729
1729
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1730
1730
|
"file": "/test/device.ts",
|
|
@@ -1735,35 +1735,35 @@
|
|
|
1735
1735
|
"title": "should work",
|
|
1736
1736
|
"fullTitle": "NodePyATVDevice getAlbum() should work",
|
|
1737
1737
|
"timedOut": false,
|
|
1738
|
-
"duration":
|
|
1738
|
+
"duration": 1,
|
|
1739
1739
|
"state": "passed",
|
|
1740
1740
|
"speed": "fast",
|
|
1741
1741
|
"pass": true,
|
|
1742
1742
|
"fail": false,
|
|
1743
1743
|
"pending": false,
|
|
1744
1744
|
"context": null,
|
|
1745
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1745
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n album: 'My ALbum'\n });\n })\n });\n const result = yield device.getAlbum();\n assert.strictEqual(result, 'My ALbum');\n});",
|
|
1746
1746
|
"err": {},
|
|
1747
|
-
"uuid": "
|
|
1748
|
-
"parentUUID": "
|
|
1747
|
+
"uuid": "80b8a0ec-daca-4d23-ae5f-f2c9dd4478b8",
|
|
1748
|
+
"parentUUID": "9a0093e0-abc2-4623-b6dd-507023f5012c",
|
|
1749
1749
|
"isHook": false,
|
|
1750
1750
|
"skipped": false
|
|
1751
1751
|
}
|
|
1752
1752
|
],
|
|
1753
1753
|
"suites": [],
|
|
1754
1754
|
"passes": [
|
|
1755
|
-
"
|
|
1755
|
+
"80b8a0ec-daca-4d23-ae5f-f2c9dd4478b8"
|
|
1756
1756
|
],
|
|
1757
1757
|
"failures": [],
|
|
1758
1758
|
"pending": [],
|
|
1759
1759
|
"skipped": [],
|
|
1760
|
-
"duration":
|
|
1760
|
+
"duration": 1,
|
|
1761
1761
|
"root": false,
|
|
1762
1762
|
"rootEmpty": false,
|
|
1763
1763
|
"_timeout": 2000
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
|
-
"uuid": "
|
|
1766
|
+
"uuid": "7dcba244-a581-4475-887f-a302e16460d2",
|
|
1767
1767
|
"title": "getGenre()",
|
|
1768
1768
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1769
1769
|
"file": "/test/device.ts",
|
|
@@ -1774,35 +1774,35 @@
|
|
|
1774
1774
|
"title": "should work",
|
|
1775
1775
|
"fullTitle": "NodePyATVDevice getGenre() should work",
|
|
1776
1776
|
"timedOut": false,
|
|
1777
|
-
"duration":
|
|
1777
|
+
"duration": 1,
|
|
1778
1778
|
"state": "passed",
|
|
1779
1779
|
"speed": "fast",
|
|
1780
1780
|
"pass": true,
|
|
1781
1781
|
"fail": false,
|
|
1782
1782
|
"pending": false,
|
|
1783
1783
|
"context": null,
|
|
1784
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1784
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n genre: 'My Genre'\n });\n })\n });\n const result = yield device.getGenre();\n assert.strictEqual(result, 'My Genre');\n});",
|
|
1785
1785
|
"err": {},
|
|
1786
|
-
"uuid": "
|
|
1787
|
-
"parentUUID": "
|
|
1786
|
+
"uuid": "9826950c-447b-4631-83bd-c1075af75361",
|
|
1787
|
+
"parentUUID": "7dcba244-a581-4475-887f-a302e16460d2",
|
|
1788
1788
|
"isHook": false,
|
|
1789
1789
|
"skipped": false
|
|
1790
1790
|
}
|
|
1791
1791
|
],
|
|
1792
1792
|
"suites": [],
|
|
1793
1793
|
"passes": [
|
|
1794
|
-
"
|
|
1794
|
+
"9826950c-447b-4631-83bd-c1075af75361"
|
|
1795
1795
|
],
|
|
1796
1796
|
"failures": [],
|
|
1797
1797
|
"pending": [],
|
|
1798
1798
|
"skipped": [],
|
|
1799
|
-
"duration":
|
|
1799
|
+
"duration": 1,
|
|
1800
1800
|
"root": false,
|
|
1801
1801
|
"rootEmpty": false,
|
|
1802
1802
|
"_timeout": 2000
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
|
-
"uuid": "
|
|
1805
|
+
"uuid": "b4516254-7eb7-4b76-b15d-6d37045bd6b9",
|
|
1806
1806
|
"title": "getTotalTime()",
|
|
1807
1807
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1808
1808
|
"file": "/test/device.ts",
|
|
@@ -1820,17 +1820,17 @@
|
|
|
1820
1820
|
"fail": false,
|
|
1821
1821
|
"pending": false,
|
|
1822
1822
|
"context": null,
|
|
1823
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1823
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n total_time: 45\n });\n })\n });\n const result = yield device.getTotalTime();\n assert.strictEqual(result, 45);\n});",
|
|
1824
1824
|
"err": {},
|
|
1825
|
-
"uuid": "
|
|
1826
|
-
"parentUUID": "
|
|
1825
|
+
"uuid": "a20c9ead-5d1c-4e3c-9882-7d0d97f7f2f1",
|
|
1826
|
+
"parentUUID": "b4516254-7eb7-4b76-b15d-6d37045bd6b9",
|
|
1827
1827
|
"isHook": false,
|
|
1828
1828
|
"skipped": false
|
|
1829
1829
|
}
|
|
1830
1830
|
],
|
|
1831
1831
|
"suites": [],
|
|
1832
1832
|
"passes": [
|
|
1833
|
-
"
|
|
1833
|
+
"a20c9ead-5d1c-4e3c-9882-7d0d97f7f2f1"
|
|
1834
1834
|
],
|
|
1835
1835
|
"failures": [],
|
|
1836
1836
|
"pending": [],
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
"_timeout": 2000
|
|
1842
1842
|
},
|
|
1843
1843
|
{
|
|
1844
|
-
"uuid": "
|
|
1844
|
+
"uuid": "700cf326-b213-45c8-aa46-806975fe4cf9",
|
|
1845
1845
|
"title": "getPosition()",
|
|
1846
1846
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1847
1847
|
"file": "/test/device.ts",
|
|
@@ -1852,35 +1852,35 @@
|
|
|
1852
1852
|
"title": "should work",
|
|
1853
1853
|
"fullTitle": "NodePyATVDevice getPosition() should work",
|
|
1854
1854
|
"timedOut": false,
|
|
1855
|
-
"duration":
|
|
1855
|
+
"duration": 1,
|
|
1856
1856
|
"state": "passed",
|
|
1857
1857
|
"speed": "fast",
|
|
1858
1858
|
"pass": true,
|
|
1859
1859
|
"fail": false,
|
|
1860
1860
|
"pending": false,
|
|
1861
1861
|
"context": null,
|
|
1862
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1862
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n position: 30\n });\n })\n });\n const result = yield device.getPosition();\n assert.strictEqual(result, 30);\n});",
|
|
1863
1863
|
"err": {},
|
|
1864
|
-
"uuid": "
|
|
1865
|
-
"parentUUID": "
|
|
1864
|
+
"uuid": "8476d428-0c6d-49e2-8f42-962ae4bb5b4d",
|
|
1865
|
+
"parentUUID": "700cf326-b213-45c8-aa46-806975fe4cf9",
|
|
1866
1866
|
"isHook": false,
|
|
1867
1867
|
"skipped": false
|
|
1868
1868
|
}
|
|
1869
1869
|
],
|
|
1870
1870
|
"suites": [],
|
|
1871
1871
|
"passes": [
|
|
1872
|
-
"
|
|
1872
|
+
"8476d428-0c6d-49e2-8f42-962ae4bb5b4d"
|
|
1873
1873
|
],
|
|
1874
1874
|
"failures": [],
|
|
1875
1875
|
"pending": [],
|
|
1876
1876
|
"skipped": [],
|
|
1877
|
-
"duration":
|
|
1877
|
+
"duration": 1,
|
|
1878
1878
|
"root": false,
|
|
1879
1879
|
"rootEmpty": false,
|
|
1880
1880
|
"_timeout": 2000
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"uuid": "
|
|
1883
|
+
"uuid": "45a5e6a4-5369-43d9-84d6-bdbcc076311f",
|
|
1884
1884
|
"title": "getShuffle()",
|
|
1885
1885
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1886
1886
|
"file": "/test/device.ts",
|
|
@@ -1891,35 +1891,35 @@
|
|
|
1891
1891
|
"title": "should work",
|
|
1892
1892
|
"fullTitle": "NodePyATVDevice getShuffle() should work",
|
|
1893
1893
|
"timedOut": false,
|
|
1894
|
-
"duration":
|
|
1894
|
+
"duration": 1,
|
|
1895
1895
|
"state": "passed",
|
|
1896
1896
|
"speed": "fast",
|
|
1897
1897
|
"pass": true,
|
|
1898
1898
|
"fail": false,
|
|
1899
1899
|
"pending": false,
|
|
1900
1900
|
"context": null,
|
|
1901
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1901
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n shuffle: 'songs'\n });\n })\n });\n const result = yield device.getShuffle();\n assert.deepStrictEqual(result, NodePyATVShuffleState.songs);\n assert.deepStrictEqual(result, 'songs');\n});",
|
|
1902
1902
|
"err": {},
|
|
1903
|
-
"uuid": "
|
|
1904
|
-
"parentUUID": "
|
|
1903
|
+
"uuid": "93576dbd-bf84-4631-b61b-f4b6e5d87646",
|
|
1904
|
+
"parentUUID": "45a5e6a4-5369-43d9-84d6-bdbcc076311f",
|
|
1905
1905
|
"isHook": false,
|
|
1906
1906
|
"skipped": false
|
|
1907
1907
|
}
|
|
1908
1908
|
],
|
|
1909
1909
|
"suites": [],
|
|
1910
1910
|
"passes": [
|
|
1911
|
-
"
|
|
1911
|
+
"93576dbd-bf84-4631-b61b-f4b6e5d87646"
|
|
1912
1912
|
],
|
|
1913
1913
|
"failures": [],
|
|
1914
1914
|
"pending": [],
|
|
1915
1915
|
"skipped": [],
|
|
1916
|
-
"duration":
|
|
1916
|
+
"duration": 1,
|
|
1917
1917
|
"root": false,
|
|
1918
1918
|
"rootEmpty": false,
|
|
1919
1919
|
"_timeout": 2000
|
|
1920
1920
|
},
|
|
1921
1921
|
{
|
|
1922
|
-
"uuid": "
|
|
1922
|
+
"uuid": "0a8dafc4-005a-4b17-83e0-28d361583509",
|
|
1923
1923
|
"title": "getRepeat()",
|
|
1924
1924
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1925
1925
|
"file": "/test/device.ts",
|
|
@@ -1937,17 +1937,17 @@
|
|
|
1937
1937
|
"fail": false,
|
|
1938
1938
|
"pending": false,
|
|
1939
1939
|
"context": null,
|
|
1940
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1940
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n repeat: 'all'\n });\n })\n });\n const result = yield device.getRepeat();\n assert.deepStrictEqual(result, NodePyATVRepeatState.all);\n assert.deepStrictEqual(result, 'all');\n});",
|
|
1941
1941
|
"err": {},
|
|
1942
|
-
"uuid": "
|
|
1943
|
-
"parentUUID": "
|
|
1942
|
+
"uuid": "8d2dfaa9-e662-4745-9228-67524a2b96a2",
|
|
1943
|
+
"parentUUID": "0a8dafc4-005a-4b17-83e0-28d361583509",
|
|
1944
1944
|
"isHook": false,
|
|
1945
1945
|
"skipped": false
|
|
1946
1946
|
}
|
|
1947
1947
|
],
|
|
1948
1948
|
"suites": [],
|
|
1949
1949
|
"passes": [
|
|
1950
|
-
"
|
|
1950
|
+
"8d2dfaa9-e662-4745-9228-67524a2b96a2"
|
|
1951
1951
|
],
|
|
1952
1952
|
"failures": [],
|
|
1953
1953
|
"pending": [],
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
"_timeout": 2000
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
|
-
"uuid": "
|
|
1961
|
+
"uuid": "914ed1c5-d185-4401-b207-0a14da239594",
|
|
1962
1962
|
"title": "getApp()",
|
|
1963
1963
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
1964
1964
|
"file": "/test/device.ts",
|
|
@@ -1969,35 +1969,35 @@
|
|
|
1969
1969
|
"title": "should work",
|
|
1970
1970
|
"fullTitle": "NodePyATVDevice getApp() should work",
|
|
1971
1971
|
"timedOut": false,
|
|
1972
|
-
"duration":
|
|
1972
|
+
"duration": 2,
|
|
1973
1973
|
"state": "passed",
|
|
1974
1974
|
"speed": "fast",
|
|
1975
1975
|
"pass": true,
|
|
1976
1976
|
"fail": false,
|
|
1977
1977
|
"pending": false,
|
|
1978
1978
|
"context": null,
|
|
1979
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
1979
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app: 'My App'\n });\n })\n });\n const result = yield device.getApp();\n assert.strictEqual(result, 'My App');\n});",
|
|
1980
1980
|
"err": {},
|
|
1981
|
-
"uuid": "
|
|
1982
|
-
"parentUUID": "
|
|
1981
|
+
"uuid": "7cb12aff-9b79-4cbb-8edb-961280faf788",
|
|
1982
|
+
"parentUUID": "914ed1c5-d185-4401-b207-0a14da239594",
|
|
1983
1983
|
"isHook": false,
|
|
1984
1984
|
"skipped": false
|
|
1985
1985
|
}
|
|
1986
1986
|
],
|
|
1987
1987
|
"suites": [],
|
|
1988
1988
|
"passes": [
|
|
1989
|
-
"
|
|
1989
|
+
"7cb12aff-9b79-4cbb-8edb-961280faf788"
|
|
1990
1990
|
],
|
|
1991
1991
|
"failures": [],
|
|
1992
1992
|
"pending": [],
|
|
1993
1993
|
"skipped": [],
|
|
1994
|
-
"duration":
|
|
1994
|
+
"duration": 2,
|
|
1995
1995
|
"root": false,
|
|
1996
1996
|
"rootEmpty": false,
|
|
1997
1997
|
"_timeout": 2000
|
|
1998
1998
|
},
|
|
1999
1999
|
{
|
|
2000
|
-
"uuid": "
|
|
2000
|
+
"uuid": "8dca9012-9820-4349-9190-d7116fbf6c4d",
|
|
2001
2001
|
"title": "getAppId()",
|
|
2002
2002
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2003
2003
|
"file": "/test/device.ts",
|
|
@@ -2015,17 +2015,17 @@
|
|
|
2015
2015
|
"fail": false,
|
|
2016
2016
|
"pending": false,
|
|
2017
2017
|
"context": null,
|
|
2018
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2018
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end({\n result: 'success',\n app_id: 'app.example.com'\n });\n })\n });\n const result = yield device.getAppId();\n assert.strictEqual(result, 'app.example.com');\n});",
|
|
2019
2019
|
"err": {},
|
|
2020
|
-
"uuid": "
|
|
2021
|
-
"parentUUID": "
|
|
2020
|
+
"uuid": "a772983f-e383-451e-b79e-f341dbc1f03a",
|
|
2021
|
+
"parentUUID": "8dca9012-9820-4349-9190-d7116fbf6c4d",
|
|
2022
2022
|
"isHook": false,
|
|
2023
2023
|
"skipped": false
|
|
2024
2024
|
}
|
|
2025
2025
|
],
|
|
2026
2026
|
"suites": [],
|
|
2027
2027
|
"passes": [
|
|
2028
|
-
"
|
|
2028
|
+
"a772983f-e383-451e-b79e-f341dbc1f03a"
|
|
2029
2029
|
],
|
|
2030
2030
|
"failures": [],
|
|
2031
2031
|
"pending": [],
|
|
@@ -2036,7 +2036,7 @@
|
|
|
2036
2036
|
"_timeout": 2000
|
|
2037
2037
|
},
|
|
2038
2038
|
{
|
|
2039
|
-
"uuid": "
|
|
2039
|
+
"uuid": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
|
|
2040
2040
|
"title": "pressKey()",
|
|
2041
2041
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2042
2042
|
"file": "/test/device.ts",
|
|
@@ -2054,10 +2054,10 @@
|
|
|
2054
2054
|
"fail": false,
|
|
2055
2055
|
"pending": false,
|
|
2056
2056
|
"context": null,
|
|
2057
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2057
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n yield device.pressKey(NodePyATVKeys.home);\n});",
|
|
2058
2058
|
"err": {},
|
|
2059
|
-
"uuid": "
|
|
2060
|
-
"parentUUID": "
|
|
2059
|
+
"uuid": "c660620d-5f77-40de-b891-0c64b66b828f",
|
|
2060
|
+
"parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
|
|
2061
2061
|
"isHook": false,
|
|
2062
2062
|
"skipped": false
|
|
2063
2063
|
},
|
|
@@ -2072,10 +2072,10 @@
|
|
|
2072
2072
|
"fail": false,
|
|
2073
2073
|
"pending": false,
|
|
2074
2074
|
"context": null,
|
|
2075
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2075
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2'\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n // @ts-ignore\n yield device.pressKey('foo');\n }), /Unsupported key value foo/);\n});",
|
|
2076
2076
|
"err": {},
|
|
2077
|
-
"uuid": "
|
|
2078
|
-
"parentUUID": "
|
|
2077
|
+
"uuid": "dd4c9f67-5f64-40c1-9c5b-2e30d2d93b71",
|
|
2078
|
+
"parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
|
|
2079
2079
|
"isHook": false,
|
|
2080
2080
|
"skipped": false
|
|
2081
2081
|
},
|
|
@@ -2083,37 +2083,37 @@
|
|
|
2083
2083
|
"title": "should throw error if pyatv result is not success",
|
|
2084
2084
|
"fullTitle": "NodePyATVDevice pressKey() should throw error if pyatv result is not success",
|
|
2085
2085
|
"timedOut": false,
|
|
2086
|
-
"duration":
|
|
2086
|
+
"duration": 1,
|
|
2087
2087
|
"state": "passed",
|
|
2088
2088
|
"speed": "fast",
|
|
2089
2089
|
"pass": true,
|
|
2090
2090
|
"fail": false,
|
|
2091
2091
|
"pending": false,
|
|
2092
2092
|
"context": null,
|
|
2093
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2093
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"failure\"}');\n })\n });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield device.pressKey(NodePyATVKeys.home);\n }), /Unable to parse pyatv response/);\n});",
|
|
2094
2094
|
"err": {},
|
|
2095
|
-
"uuid": "
|
|
2096
|
-
"parentUUID": "
|
|
2095
|
+
"uuid": "3444d94a-f435-45e8-9669-f93c5b16ccec",
|
|
2096
|
+
"parentUUID": "957b25de-2b61-4e54-b3c7-04c1e848ef93",
|
|
2097
2097
|
"isHook": false,
|
|
2098
2098
|
"skipped": false
|
|
2099
2099
|
}
|
|
2100
2100
|
],
|
|
2101
2101
|
"suites": [],
|
|
2102
2102
|
"passes": [
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2103
|
+
"c660620d-5f77-40de-b891-0c64b66b828f",
|
|
2104
|
+
"dd4c9f67-5f64-40c1-9c5b-2e30d2d93b71",
|
|
2105
|
+
"3444d94a-f435-45e8-9669-f93c5b16ccec"
|
|
2106
2106
|
],
|
|
2107
2107
|
"failures": [],
|
|
2108
2108
|
"pending": [],
|
|
2109
2109
|
"skipped": [],
|
|
2110
|
-
"duration":
|
|
2110
|
+
"duration": 4,
|
|
2111
2111
|
"root": false,
|
|
2112
2112
|
"rootEmpty": false,
|
|
2113
2113
|
"_timeout": 2000
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
2116
|
-
"uuid": "
|
|
2116
|
+
"uuid": "a31dbffc-9811-4772-8c07-6cb3acfcb1e0",
|
|
2117
2117
|
"title": "down()",
|
|
2118
2118
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2119
2119
|
"file": "/test/device.ts",
|
|
@@ -2124,35 +2124,35 @@
|
|
|
2124
2124
|
"title": "should work",
|
|
2125
2125
|
"fullTitle": "NodePyATVDevice down() should work",
|
|
2126
2126
|
"timedOut": false,
|
|
2127
|
-
"duration":
|
|
2127
|
+
"duration": 1,
|
|
2128
2128
|
"state": "passed",
|
|
2129
2129
|
"speed": "fast",
|
|
2130
2130
|
"pass": true,
|
|
2131
2131
|
"fail": false,
|
|
2132
2132
|
"pending": false,
|
|
2133
2133
|
"context": null,
|
|
2134
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2134
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2135
2135
|
"err": {},
|
|
2136
|
-
"uuid": "
|
|
2137
|
-
"parentUUID": "
|
|
2136
|
+
"uuid": "92ad1ca8-ecdc-41f4-b6da-d262f8bdf706",
|
|
2137
|
+
"parentUUID": "a31dbffc-9811-4772-8c07-6cb3acfcb1e0",
|
|
2138
2138
|
"isHook": false,
|
|
2139
2139
|
"skipped": false
|
|
2140
2140
|
}
|
|
2141
2141
|
],
|
|
2142
2142
|
"suites": [],
|
|
2143
2143
|
"passes": [
|
|
2144
|
-
"
|
|
2144
|
+
"92ad1ca8-ecdc-41f4-b6da-d262f8bdf706"
|
|
2145
2145
|
],
|
|
2146
2146
|
"failures": [],
|
|
2147
2147
|
"pending": [],
|
|
2148
2148
|
"skipped": [],
|
|
2149
|
-
"duration":
|
|
2149
|
+
"duration": 1,
|
|
2150
2150
|
"root": false,
|
|
2151
2151
|
"rootEmpty": false,
|
|
2152
2152
|
"_timeout": 2000
|
|
2153
2153
|
},
|
|
2154
2154
|
{
|
|
2155
|
-
"uuid": "
|
|
2155
|
+
"uuid": "36d14f5d-a02e-42a2-9d4c-de86e1c33f3c",
|
|
2156
2156
|
"title": "home()",
|
|
2157
2157
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2158
2158
|
"file": "/test/device.ts",
|
|
@@ -2170,17 +2170,17 @@
|
|
|
2170
2170
|
"fail": false,
|
|
2171
2171
|
"pending": false,
|
|
2172
2172
|
"context": null,
|
|
2173
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2173
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2174
2174
|
"err": {},
|
|
2175
|
-
"uuid": "
|
|
2176
|
-
"parentUUID": "
|
|
2175
|
+
"uuid": "811efeb8-4ef9-435d-8749-2b7c40928dc1",
|
|
2176
|
+
"parentUUID": "36d14f5d-a02e-42a2-9d4c-de86e1c33f3c",
|
|
2177
2177
|
"isHook": false,
|
|
2178
2178
|
"skipped": false
|
|
2179
2179
|
}
|
|
2180
2180
|
],
|
|
2181
2181
|
"suites": [],
|
|
2182
2182
|
"passes": [
|
|
2183
|
-
"
|
|
2183
|
+
"811efeb8-4ef9-435d-8749-2b7c40928dc1"
|
|
2184
2184
|
],
|
|
2185
2185
|
"failures": [],
|
|
2186
2186
|
"pending": [],
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
"_timeout": 2000
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
|
-
"uuid": "
|
|
2194
|
+
"uuid": "c1ca1553-479d-4829-aaa0-b6e796c6ef6c",
|
|
2195
2195
|
"title": "homeHold()",
|
|
2196
2196
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2197
2197
|
"file": "/test/device.ts",
|
|
@@ -2209,17 +2209,17 @@
|
|
|
2209
2209
|
"fail": false,
|
|
2210
2210
|
"pending": false,
|
|
2211
2211
|
"context": null,
|
|
2212
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2212
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2213
2213
|
"err": {},
|
|
2214
|
-
"uuid": "
|
|
2215
|
-
"parentUUID": "
|
|
2214
|
+
"uuid": "8c2c6698-6fc6-4424-b3b9-d5cc429bf466",
|
|
2215
|
+
"parentUUID": "c1ca1553-479d-4829-aaa0-b6e796c6ef6c",
|
|
2216
2216
|
"isHook": false,
|
|
2217
2217
|
"skipped": false
|
|
2218
2218
|
}
|
|
2219
2219
|
],
|
|
2220
2220
|
"suites": [],
|
|
2221
2221
|
"passes": [
|
|
2222
|
-
"
|
|
2222
|
+
"8c2c6698-6fc6-4424-b3b9-d5cc429bf466"
|
|
2223
2223
|
],
|
|
2224
2224
|
"failures": [],
|
|
2225
2225
|
"pending": [],
|
|
@@ -2230,7 +2230,7 @@
|
|
|
2230
2230
|
"_timeout": 2000
|
|
2231
2231
|
},
|
|
2232
2232
|
{
|
|
2233
|
-
"uuid": "
|
|
2233
|
+
"uuid": "73085272-53e9-4aaa-8688-5574d39ee57b",
|
|
2234
2234
|
"title": "left()",
|
|
2235
2235
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2236
2236
|
"file": "/test/device.ts",
|
|
@@ -2241,35 +2241,35 @@
|
|
|
2241
2241
|
"title": "should work",
|
|
2242
2242
|
"fullTitle": "NodePyATVDevice left() should work",
|
|
2243
2243
|
"timedOut": false,
|
|
2244
|
-
"duration":
|
|
2244
|
+
"duration": 2,
|
|
2245
2245
|
"state": "passed",
|
|
2246
2246
|
"speed": "fast",
|
|
2247
2247
|
"pass": true,
|
|
2248
2248
|
"fail": false,
|
|
2249
2249
|
"pending": false,
|
|
2250
2250
|
"context": null,
|
|
2251
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2251
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2252
2252
|
"err": {},
|
|
2253
|
-
"uuid": "
|
|
2254
|
-
"parentUUID": "
|
|
2253
|
+
"uuid": "8be752c9-0b1e-4988-ad29-a64e3902e724",
|
|
2254
|
+
"parentUUID": "73085272-53e9-4aaa-8688-5574d39ee57b",
|
|
2255
2255
|
"isHook": false,
|
|
2256
2256
|
"skipped": false
|
|
2257
2257
|
}
|
|
2258
2258
|
],
|
|
2259
2259
|
"suites": [],
|
|
2260
2260
|
"passes": [
|
|
2261
|
-
"
|
|
2261
|
+
"8be752c9-0b1e-4988-ad29-a64e3902e724"
|
|
2262
2262
|
],
|
|
2263
2263
|
"failures": [],
|
|
2264
2264
|
"pending": [],
|
|
2265
2265
|
"skipped": [],
|
|
2266
|
-
"duration":
|
|
2266
|
+
"duration": 2,
|
|
2267
2267
|
"root": false,
|
|
2268
2268
|
"rootEmpty": false,
|
|
2269
2269
|
"_timeout": 2000
|
|
2270
2270
|
},
|
|
2271
2271
|
{
|
|
2272
|
-
"uuid": "
|
|
2272
|
+
"uuid": "508af029-4bbd-4b7d-b30c-d5c2dd27d981",
|
|
2273
2273
|
"title": "menu()",
|
|
2274
2274
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2275
2275
|
"file": "/test/device.ts",
|
|
@@ -2287,17 +2287,17 @@
|
|
|
2287
2287
|
"fail": false,
|
|
2288
2288
|
"pending": false,
|
|
2289
2289
|
"context": null,
|
|
2290
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2290
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2291
2291
|
"err": {},
|
|
2292
|
-
"uuid": "
|
|
2293
|
-
"parentUUID": "
|
|
2292
|
+
"uuid": "2cfae7e6-0f6b-4978-a344-569e41f433a9",
|
|
2293
|
+
"parentUUID": "508af029-4bbd-4b7d-b30c-d5c2dd27d981",
|
|
2294
2294
|
"isHook": false,
|
|
2295
2295
|
"skipped": false
|
|
2296
2296
|
}
|
|
2297
2297
|
],
|
|
2298
2298
|
"suites": [],
|
|
2299
2299
|
"passes": [
|
|
2300
|
-
"
|
|
2300
|
+
"2cfae7e6-0f6b-4978-a344-569e41f433a9"
|
|
2301
2301
|
],
|
|
2302
2302
|
"failures": [],
|
|
2303
2303
|
"pending": [],
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
"_timeout": 2000
|
|
2309
2309
|
},
|
|
2310
2310
|
{
|
|
2311
|
-
"uuid": "
|
|
2311
|
+
"uuid": "3794b582-c8b6-4501-90ad-ae365e5714e8",
|
|
2312
2312
|
"title": "next()",
|
|
2313
2313
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2314
2314
|
"file": "/test/device.ts",
|
|
@@ -2326,17 +2326,17 @@
|
|
|
2326
2326
|
"fail": false,
|
|
2327
2327
|
"pending": false,
|
|
2328
2328
|
"context": null,
|
|
2329
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2329
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2330
2330
|
"err": {},
|
|
2331
|
-
"uuid": "
|
|
2332
|
-
"parentUUID": "
|
|
2331
|
+
"uuid": "c112c036-90d8-47ed-bbf1-136516c4ed4c",
|
|
2332
|
+
"parentUUID": "3794b582-c8b6-4501-90ad-ae365e5714e8",
|
|
2333
2333
|
"isHook": false,
|
|
2334
2334
|
"skipped": false
|
|
2335
2335
|
}
|
|
2336
2336
|
],
|
|
2337
2337
|
"suites": [],
|
|
2338
2338
|
"passes": [
|
|
2339
|
-
"
|
|
2339
|
+
"c112c036-90d8-47ed-bbf1-136516c4ed4c"
|
|
2340
2340
|
],
|
|
2341
2341
|
"failures": [],
|
|
2342
2342
|
"pending": [],
|
|
@@ -2347,7 +2347,7 @@
|
|
|
2347
2347
|
"_timeout": 2000
|
|
2348
2348
|
},
|
|
2349
2349
|
{
|
|
2350
|
-
"uuid": "
|
|
2350
|
+
"uuid": "42cef966-2026-45e0-82dc-b112930369bd",
|
|
2351
2351
|
"title": "pause()",
|
|
2352
2352
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2353
2353
|
"file": "/test/device.ts",
|
|
@@ -2365,17 +2365,17 @@
|
|
|
2365
2365
|
"fail": false,
|
|
2366
2366
|
"pending": false,
|
|
2367
2367
|
"context": null,
|
|
2368
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2368
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2369
2369
|
"err": {},
|
|
2370
|
-
"uuid": "
|
|
2371
|
-
"parentUUID": "
|
|
2370
|
+
"uuid": "ecb71cb7-29bf-458e-8d44-f84f3f84e05e",
|
|
2371
|
+
"parentUUID": "42cef966-2026-45e0-82dc-b112930369bd",
|
|
2372
2372
|
"isHook": false,
|
|
2373
2373
|
"skipped": false
|
|
2374
2374
|
}
|
|
2375
2375
|
],
|
|
2376
2376
|
"suites": [],
|
|
2377
2377
|
"passes": [
|
|
2378
|
-
"
|
|
2378
|
+
"ecb71cb7-29bf-458e-8d44-f84f3f84e05e"
|
|
2379
2379
|
],
|
|
2380
2380
|
"failures": [],
|
|
2381
2381
|
"pending": [],
|
|
@@ -2386,7 +2386,7 @@
|
|
|
2386
2386
|
"_timeout": 2000
|
|
2387
2387
|
},
|
|
2388
2388
|
{
|
|
2389
|
-
"uuid": "
|
|
2389
|
+
"uuid": "07090721-dd44-4f67-9c63-a13e20333088",
|
|
2390
2390
|
"title": "play()",
|
|
2391
2391
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2392
2392
|
"file": "/test/device.ts",
|
|
@@ -2397,35 +2397,35 @@
|
|
|
2397
2397
|
"title": "should work",
|
|
2398
2398
|
"fullTitle": "NodePyATVDevice play() should work",
|
|
2399
2399
|
"timedOut": false,
|
|
2400
|
-
"duration":
|
|
2400
|
+
"duration": 2,
|
|
2401
2401
|
"state": "passed",
|
|
2402
2402
|
"speed": "fast",
|
|
2403
2403
|
"pass": true,
|
|
2404
2404
|
"fail": false,
|
|
2405
2405
|
"pending": false,
|
|
2406
2406
|
"context": null,
|
|
2407
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2407
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2408
2408
|
"err": {},
|
|
2409
|
-
"uuid": "
|
|
2410
|
-
"parentUUID": "
|
|
2409
|
+
"uuid": "abfdd5d8-5223-4c16-a62d-8d1a5b81ee06",
|
|
2410
|
+
"parentUUID": "07090721-dd44-4f67-9c63-a13e20333088",
|
|
2411
2411
|
"isHook": false,
|
|
2412
2412
|
"skipped": false
|
|
2413
2413
|
}
|
|
2414
2414
|
],
|
|
2415
2415
|
"suites": [],
|
|
2416
2416
|
"passes": [
|
|
2417
|
-
"
|
|
2417
|
+
"abfdd5d8-5223-4c16-a62d-8d1a5b81ee06"
|
|
2418
2418
|
],
|
|
2419
2419
|
"failures": [],
|
|
2420
2420
|
"pending": [],
|
|
2421
2421
|
"skipped": [],
|
|
2422
|
-
"duration":
|
|
2422
|
+
"duration": 2,
|
|
2423
2423
|
"root": false,
|
|
2424
2424
|
"rootEmpty": false,
|
|
2425
2425
|
"_timeout": 2000
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
2428
|
-
"uuid": "
|
|
2428
|
+
"uuid": "310cfed7-d80c-40a4-a026-a18b98b4eb08",
|
|
2429
2429
|
"title": "playPause()",
|
|
2430
2430
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2431
2431
|
"file": "/test/device.ts",
|
|
@@ -2443,17 +2443,17 @@
|
|
|
2443
2443
|
"fail": false,
|
|
2444
2444
|
"pending": false,
|
|
2445
2445
|
"context": null,
|
|
2446
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2446
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2447
2447
|
"err": {},
|
|
2448
|
-
"uuid": "
|
|
2449
|
-
"parentUUID": "
|
|
2448
|
+
"uuid": "e1b40e6f-a2af-44e9-89fd-adc91d208781",
|
|
2449
|
+
"parentUUID": "310cfed7-d80c-40a4-a026-a18b98b4eb08",
|
|
2450
2450
|
"isHook": false,
|
|
2451
2451
|
"skipped": false
|
|
2452
2452
|
}
|
|
2453
2453
|
],
|
|
2454
2454
|
"suites": [],
|
|
2455
2455
|
"passes": [
|
|
2456
|
-
"
|
|
2456
|
+
"e1b40e6f-a2af-44e9-89fd-adc91d208781"
|
|
2457
2457
|
],
|
|
2458
2458
|
"failures": [],
|
|
2459
2459
|
"pending": [],
|
|
@@ -2464,7 +2464,7 @@
|
|
|
2464
2464
|
"_timeout": 2000
|
|
2465
2465
|
},
|
|
2466
2466
|
{
|
|
2467
|
-
"uuid": "
|
|
2467
|
+
"uuid": "b40ed1e1-89a9-4c55-8861-1e813ad87716",
|
|
2468
2468
|
"title": "previous()",
|
|
2469
2469
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2470
2470
|
"file": "/test/device.ts",
|
|
@@ -2482,17 +2482,17 @@
|
|
|
2482
2482
|
"fail": false,
|
|
2483
2483
|
"pending": false,
|
|
2484
2484
|
"context": null,
|
|
2485
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2485
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2486
2486
|
"err": {},
|
|
2487
|
-
"uuid": "
|
|
2488
|
-
"parentUUID": "
|
|
2487
|
+
"uuid": "0c08d6e2-52a6-4180-8029-82bc46034198",
|
|
2488
|
+
"parentUUID": "b40ed1e1-89a9-4c55-8861-1e813ad87716",
|
|
2489
2489
|
"isHook": false,
|
|
2490
2490
|
"skipped": false
|
|
2491
2491
|
}
|
|
2492
2492
|
],
|
|
2493
2493
|
"suites": [],
|
|
2494
2494
|
"passes": [
|
|
2495
|
-
"
|
|
2495
|
+
"0c08d6e2-52a6-4180-8029-82bc46034198"
|
|
2496
2496
|
],
|
|
2497
2497
|
"failures": [],
|
|
2498
2498
|
"pending": [],
|
|
@@ -2503,7 +2503,7 @@
|
|
|
2503
2503
|
"_timeout": 2000
|
|
2504
2504
|
},
|
|
2505
2505
|
{
|
|
2506
|
-
"uuid": "
|
|
2506
|
+
"uuid": "edf20a07-a327-419a-a22c-3b8b792c574b",
|
|
2507
2507
|
"title": "right()",
|
|
2508
2508
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2509
2509
|
"file": "/test/device.ts",
|
|
@@ -2521,17 +2521,17 @@
|
|
|
2521
2521
|
"fail": false,
|
|
2522
2522
|
"pending": false,
|
|
2523
2523
|
"context": null,
|
|
2524
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2524
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2525
2525
|
"err": {},
|
|
2526
|
-
"uuid": "
|
|
2527
|
-
"parentUUID": "
|
|
2526
|
+
"uuid": "06f55604-47e1-440b-aef3-d174f8ebf7e9",
|
|
2527
|
+
"parentUUID": "edf20a07-a327-419a-a22c-3b8b792c574b",
|
|
2528
2528
|
"isHook": false,
|
|
2529
2529
|
"skipped": false
|
|
2530
2530
|
}
|
|
2531
2531
|
],
|
|
2532
2532
|
"suites": [],
|
|
2533
2533
|
"passes": [
|
|
2534
|
-
"
|
|
2534
|
+
"06f55604-47e1-440b-aef3-d174f8ebf7e9"
|
|
2535
2535
|
],
|
|
2536
2536
|
"failures": [],
|
|
2537
2537
|
"pending": [],
|
|
@@ -2542,7 +2542,7 @@
|
|
|
2542
2542
|
"_timeout": 2000
|
|
2543
2543
|
},
|
|
2544
2544
|
{
|
|
2545
|
-
"uuid": "
|
|
2545
|
+
"uuid": "fb6271a2-dadf-43c1-90e0-8c37d0f98627",
|
|
2546
2546
|
"title": "select()",
|
|
2547
2547
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2548
2548
|
"file": "/test/device.ts",
|
|
@@ -2560,17 +2560,17 @@
|
|
|
2560
2560
|
"fail": false,
|
|
2561
2561
|
"pending": false,
|
|
2562
2562
|
"context": null,
|
|
2563
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2563
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2564
2564
|
"err": {},
|
|
2565
|
-
"uuid": "
|
|
2566
|
-
"parentUUID": "
|
|
2565
|
+
"uuid": "0d2fbadd-22ec-4568-99ba-9c84f08052cc",
|
|
2566
|
+
"parentUUID": "fb6271a2-dadf-43c1-90e0-8c37d0f98627",
|
|
2567
2567
|
"isHook": false,
|
|
2568
2568
|
"skipped": false
|
|
2569
2569
|
}
|
|
2570
2570
|
],
|
|
2571
2571
|
"suites": [],
|
|
2572
2572
|
"passes": [
|
|
2573
|
-
"
|
|
2573
|
+
"0d2fbadd-22ec-4568-99ba-9c84f08052cc"
|
|
2574
2574
|
],
|
|
2575
2575
|
"failures": [],
|
|
2576
2576
|
"pending": [],
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
"_timeout": 2000
|
|
2582
2582
|
},
|
|
2583
2583
|
{
|
|
2584
|
-
"uuid": "
|
|
2584
|
+
"uuid": "e2d85f1d-bf27-4b5d-bd7d-3a75ea54892a",
|
|
2585
2585
|
"title": "skipBackward()",
|
|
2586
2586
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2587
2587
|
"file": "/test/device.ts",
|
|
@@ -2599,17 +2599,17 @@
|
|
|
2599
2599
|
"fail": false,
|
|
2600
2600
|
"pending": false,
|
|
2601
2601
|
"context": null,
|
|
2602
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2602
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2603
2603
|
"err": {},
|
|
2604
|
-
"uuid": "
|
|
2605
|
-
"parentUUID": "
|
|
2604
|
+
"uuid": "e9385cba-b313-49e4-8be6-87867eaf9254",
|
|
2605
|
+
"parentUUID": "e2d85f1d-bf27-4b5d-bd7d-3a75ea54892a",
|
|
2606
2606
|
"isHook": false,
|
|
2607
2607
|
"skipped": false
|
|
2608
2608
|
}
|
|
2609
2609
|
],
|
|
2610
2610
|
"suites": [],
|
|
2611
2611
|
"passes": [
|
|
2612
|
-
"
|
|
2612
|
+
"e9385cba-b313-49e4-8be6-87867eaf9254"
|
|
2613
2613
|
],
|
|
2614
2614
|
"failures": [],
|
|
2615
2615
|
"pending": [],
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
"_timeout": 2000
|
|
2621
2621
|
},
|
|
2622
2622
|
{
|
|
2623
|
-
"uuid": "
|
|
2623
|
+
"uuid": "5367773e-3568-4bba-860c-370850d4b458",
|
|
2624
2624
|
"title": "skipForward()",
|
|
2625
2625
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2626
2626
|
"file": "/test/device.ts",
|
|
@@ -2638,17 +2638,17 @@
|
|
|
2638
2638
|
"fail": false,
|
|
2639
2639
|
"pending": false,
|
|
2640
2640
|
"context": null,
|
|
2641
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2641
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2642
2642
|
"err": {},
|
|
2643
|
-
"uuid": "
|
|
2644
|
-
"parentUUID": "
|
|
2643
|
+
"uuid": "9d7499b2-6771-4312-bf41-b93ef9e794c8",
|
|
2644
|
+
"parentUUID": "5367773e-3568-4bba-860c-370850d4b458",
|
|
2645
2645
|
"isHook": false,
|
|
2646
2646
|
"skipped": false
|
|
2647
2647
|
}
|
|
2648
2648
|
],
|
|
2649
2649
|
"suites": [],
|
|
2650
2650
|
"passes": [
|
|
2651
|
-
"
|
|
2651
|
+
"9d7499b2-6771-4312-bf41-b93ef9e794c8"
|
|
2652
2652
|
],
|
|
2653
2653
|
"failures": [],
|
|
2654
2654
|
"pending": [],
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
"_timeout": 2000
|
|
2660
2660
|
},
|
|
2661
2661
|
{
|
|
2662
|
-
"uuid": "
|
|
2662
|
+
"uuid": "7028f9d6-d4b7-4b78-9973-f4bc424db650",
|
|
2663
2663
|
"title": "stop()",
|
|
2664
2664
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2665
2665
|
"file": "/test/device.ts",
|
|
@@ -2677,17 +2677,17 @@
|
|
|
2677
2677
|
"fail": false,
|
|
2678
2678
|
"pending": false,
|
|
2679
2679
|
"context": null,
|
|
2680
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2680
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2681
2681
|
"err": {},
|
|
2682
|
-
"uuid": "
|
|
2683
|
-
"parentUUID": "
|
|
2682
|
+
"uuid": "0c39ce43-f98a-4f2a-9e9a-2c65151cc8f8",
|
|
2683
|
+
"parentUUID": "7028f9d6-d4b7-4b78-9973-f4bc424db650",
|
|
2684
2684
|
"isHook": false,
|
|
2685
2685
|
"skipped": false
|
|
2686
2686
|
}
|
|
2687
2687
|
],
|
|
2688
2688
|
"suites": [],
|
|
2689
2689
|
"passes": [
|
|
2690
|
-
"
|
|
2690
|
+
"0c39ce43-f98a-4f2a-9e9a-2c65151cc8f8"
|
|
2691
2691
|
],
|
|
2692
2692
|
"failures": [],
|
|
2693
2693
|
"pending": [],
|
|
@@ -2698,7 +2698,7 @@
|
|
|
2698
2698
|
"_timeout": 2000
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
2701
|
-
"uuid": "
|
|
2701
|
+
"uuid": "3bf9c790-4112-42ca-bb94-d954e5336b2d",
|
|
2702
2702
|
"title": "suspend()",
|
|
2703
2703
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2704
2704
|
"file": "/test/device.ts",
|
|
@@ -2716,17 +2716,17 @@
|
|
|
2716
2716
|
"fail": false,
|
|
2717
2717
|
"pending": false,
|
|
2718
2718
|
"context": null,
|
|
2719
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2719
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2720
2720
|
"err": {},
|
|
2721
|
-
"uuid": "
|
|
2722
|
-
"parentUUID": "
|
|
2721
|
+
"uuid": "a339b8cd-a681-402b-8577-0cf36052e898",
|
|
2722
|
+
"parentUUID": "3bf9c790-4112-42ca-bb94-d954e5336b2d",
|
|
2723
2723
|
"isHook": false,
|
|
2724
2724
|
"skipped": false
|
|
2725
2725
|
}
|
|
2726
2726
|
],
|
|
2727
2727
|
"suites": [],
|
|
2728
2728
|
"passes": [
|
|
2729
|
-
"
|
|
2729
|
+
"a339b8cd-a681-402b-8577-0cf36052e898"
|
|
2730
2730
|
],
|
|
2731
2731
|
"failures": [],
|
|
2732
2732
|
"pending": [],
|
|
@@ -2737,7 +2737,7 @@
|
|
|
2737
2737
|
"_timeout": 2000
|
|
2738
2738
|
},
|
|
2739
2739
|
{
|
|
2740
|
-
"uuid": "
|
|
2740
|
+
"uuid": "f40df66d-d8bf-4831-909f-bf6cca8104b8",
|
|
2741
2741
|
"title": "topMenu()",
|
|
2742
2742
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2743
2743
|
"file": "/test/device.ts",
|
|
@@ -2748,35 +2748,35 @@
|
|
|
2748
2748
|
"title": "should work",
|
|
2749
2749
|
"fullTitle": "NodePyATVDevice topMenu() should work",
|
|
2750
2750
|
"timedOut": false,
|
|
2751
|
-
"duration":
|
|
2751
|
+
"duration": 2,
|
|
2752
2752
|
"state": "passed",
|
|
2753
2753
|
"speed": "fast",
|
|
2754
2754
|
"pass": true,
|
|
2755
2755
|
"fail": false,
|
|
2756
2756
|
"pending": false,
|
|
2757
2757
|
"context": null,
|
|
2758
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2758
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2759
2759
|
"err": {},
|
|
2760
|
-
"uuid": "
|
|
2761
|
-
"parentUUID": "
|
|
2760
|
+
"uuid": "9d39feaa-5ca8-48ae-b727-dc4c5810ff9a",
|
|
2761
|
+
"parentUUID": "f40df66d-d8bf-4831-909f-bf6cca8104b8",
|
|
2762
2762
|
"isHook": false,
|
|
2763
2763
|
"skipped": false
|
|
2764
2764
|
}
|
|
2765
2765
|
],
|
|
2766
2766
|
"suites": [],
|
|
2767
2767
|
"passes": [
|
|
2768
|
-
"
|
|
2768
|
+
"9d39feaa-5ca8-48ae-b727-dc4c5810ff9a"
|
|
2769
2769
|
],
|
|
2770
2770
|
"failures": [],
|
|
2771
2771
|
"pending": [],
|
|
2772
2772
|
"skipped": [],
|
|
2773
|
-
"duration":
|
|
2773
|
+
"duration": 2,
|
|
2774
2774
|
"root": false,
|
|
2775
2775
|
"rootEmpty": false,
|
|
2776
2776
|
"_timeout": 2000
|
|
2777
2777
|
},
|
|
2778
2778
|
{
|
|
2779
|
-
"uuid": "
|
|
2779
|
+
"uuid": "472d5ef2-9848-48d7-9879-c92e10062e0c",
|
|
2780
2780
|
"title": "up()",
|
|
2781
2781
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2782
2782
|
"file": "/test/device.ts",
|
|
@@ -2787,35 +2787,35 @@
|
|
|
2787
2787
|
"title": "should work",
|
|
2788
2788
|
"fullTitle": "NodePyATVDevice up() should work",
|
|
2789
2789
|
"timedOut": false,
|
|
2790
|
-
"duration":
|
|
2790
|
+
"duration": 1,
|
|
2791
2791
|
"state": "passed",
|
|
2792
2792
|
"speed": "fast",
|
|
2793
2793
|
"pass": true,
|
|
2794
2794
|
"fail": false,
|
|
2795
2795
|
"pending": false,
|
|
2796
2796
|
"context": null,
|
|
2797
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2797
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2798
2798
|
"err": {},
|
|
2799
|
-
"uuid": "
|
|
2800
|
-
"parentUUID": "
|
|
2799
|
+
"uuid": "6b6af312-106e-49a5-b4e1-c0661e81a867",
|
|
2800
|
+
"parentUUID": "472d5ef2-9848-48d7-9879-c92e10062e0c",
|
|
2801
2801
|
"isHook": false,
|
|
2802
2802
|
"skipped": false
|
|
2803
2803
|
}
|
|
2804
2804
|
],
|
|
2805
2805
|
"suites": [],
|
|
2806
2806
|
"passes": [
|
|
2807
|
-
"
|
|
2807
|
+
"6b6af312-106e-49a5-b4e1-c0661e81a867"
|
|
2808
2808
|
],
|
|
2809
2809
|
"failures": [],
|
|
2810
2810
|
"pending": [],
|
|
2811
2811
|
"skipped": [],
|
|
2812
|
-
"duration":
|
|
2812
|
+
"duration": 1,
|
|
2813
2813
|
"root": false,
|
|
2814
2814
|
"rootEmpty": false,
|
|
2815
2815
|
"_timeout": 2000
|
|
2816
2816
|
},
|
|
2817
2817
|
{
|
|
2818
|
-
"uuid": "
|
|
2818
|
+
"uuid": "179bdcbe-778c-4705-a47c-736799ba981c",
|
|
2819
2819
|
"title": "volumeDown()",
|
|
2820
2820
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2821
2821
|
"file": "/test/device.ts",
|
|
@@ -2826,35 +2826,35 @@
|
|
|
2826
2826
|
"title": "should work",
|
|
2827
2827
|
"fullTitle": "NodePyATVDevice volumeDown() should work",
|
|
2828
2828
|
"timedOut": false,
|
|
2829
|
-
"duration":
|
|
2829
|
+
"duration": 1,
|
|
2830
2830
|
"state": "passed",
|
|
2831
2831
|
"speed": "fast",
|
|
2832
2832
|
"pass": true,
|
|
2833
2833
|
"fail": false,
|
|
2834
2834
|
"pending": false,
|
|
2835
2835
|
"context": null,
|
|
2836
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2836
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2837
2837
|
"err": {},
|
|
2838
|
-
"uuid": "
|
|
2839
|
-
"parentUUID": "
|
|
2838
|
+
"uuid": "76e0554e-968e-4543-a6f4-5ca93e9109ce",
|
|
2839
|
+
"parentUUID": "179bdcbe-778c-4705-a47c-736799ba981c",
|
|
2840
2840
|
"isHook": false,
|
|
2841
2841
|
"skipped": false
|
|
2842
2842
|
}
|
|
2843
2843
|
],
|
|
2844
2844
|
"suites": [],
|
|
2845
2845
|
"passes": [
|
|
2846
|
-
"
|
|
2846
|
+
"76e0554e-968e-4543-a6f4-5ca93e9109ce"
|
|
2847
2847
|
],
|
|
2848
2848
|
"failures": [],
|
|
2849
2849
|
"pending": [],
|
|
2850
2850
|
"skipped": [],
|
|
2851
|
-
"duration":
|
|
2851
|
+
"duration": 1,
|
|
2852
2852
|
"root": false,
|
|
2853
2853
|
"rootEmpty": false,
|
|
2854
2854
|
"_timeout": 2000
|
|
2855
2855
|
},
|
|
2856
2856
|
{
|
|
2857
|
-
"uuid": "
|
|
2857
|
+
"uuid": "6be18a09-51a1-4356-8489-6c9a5409d30b",
|
|
2858
2858
|
"title": "volumeUp()",
|
|
2859
2859
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2860
2860
|
"file": "/test/device.ts",
|
|
@@ -2872,17 +2872,17 @@
|
|
|
2872
2872
|
"fail": false,
|
|
2873
2873
|
"pending": false,
|
|
2874
2874
|
"context": null,
|
|
2875
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2875
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2876
2876
|
"err": {},
|
|
2877
|
-
"uuid": "
|
|
2878
|
-
"parentUUID": "
|
|
2877
|
+
"uuid": "2461345a-f8ec-46a8-8995-30a9f848ad26",
|
|
2878
|
+
"parentUUID": "6be18a09-51a1-4356-8489-6c9a5409d30b",
|
|
2879
2879
|
"isHook": false,
|
|
2880
2880
|
"skipped": false
|
|
2881
2881
|
}
|
|
2882
2882
|
],
|
|
2883
2883
|
"suites": [],
|
|
2884
2884
|
"passes": [
|
|
2885
|
-
"
|
|
2885
|
+
"2461345a-f8ec-46a8-8995-30a9f848ad26"
|
|
2886
2886
|
],
|
|
2887
2887
|
"failures": [],
|
|
2888
2888
|
"pending": [],
|
|
@@ -2893,7 +2893,7 @@
|
|
|
2893
2893
|
"_timeout": 2000
|
|
2894
2894
|
},
|
|
2895
2895
|
{
|
|
2896
|
-
"uuid": "
|
|
2896
|
+
"uuid": "fe6e5c5e-322e-4c9e-9924-e46459d142f4",
|
|
2897
2897
|
"title": "wakeup()",
|
|
2898
2898
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2899
2899
|
"file": "/test/device.ts",
|
|
@@ -2911,17 +2911,17 @@
|
|
|
2911
2911
|
"fail": false,
|
|
2912
2912
|
"pending": false,
|
|
2913
2913
|
"context": null,
|
|
2914
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2914
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2915
2915
|
"err": {},
|
|
2916
|
-
"uuid": "
|
|
2917
|
-
"parentUUID": "
|
|
2916
|
+
"uuid": "2c4635b3-06d9-416a-a344-02227a796ad8",
|
|
2917
|
+
"parentUUID": "fe6e5c5e-322e-4c9e-9924-e46459d142f4",
|
|
2918
2918
|
"isHook": false,
|
|
2919
2919
|
"skipped": false
|
|
2920
2920
|
}
|
|
2921
2921
|
],
|
|
2922
2922
|
"suites": [],
|
|
2923
2923
|
"passes": [
|
|
2924
|
-
"
|
|
2924
|
+
"2c4635b3-06d9-416a-a344-02227a796ad8"
|
|
2925
2925
|
],
|
|
2926
2926
|
"failures": [],
|
|
2927
2927
|
"pending": [],
|
|
@@ -2932,7 +2932,7 @@
|
|
|
2932
2932
|
"_timeout": 2000
|
|
2933
2933
|
},
|
|
2934
2934
|
{
|
|
2935
|
-
"uuid": "
|
|
2935
|
+
"uuid": "14b3feb3-bc1f-468c-8165-42e5a5240f87",
|
|
2936
2936
|
"title": "turnOff()",
|
|
2937
2937
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2938
2938
|
"file": "/test/device.ts",
|
|
@@ -2950,17 +2950,17 @@
|
|
|
2950
2950
|
"fail": false,
|
|
2951
2951
|
"pending": false,
|
|
2952
2952
|
"context": null,
|
|
2953
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2953
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2954
2954
|
"err": {},
|
|
2955
|
-
"uuid": "
|
|
2956
|
-
"parentUUID": "
|
|
2955
|
+
"uuid": "02d0f312-2dbb-4a10-9711-61ffb9c1bf76",
|
|
2956
|
+
"parentUUID": "14b3feb3-bc1f-468c-8165-42e5a5240f87",
|
|
2957
2957
|
"isHook": false,
|
|
2958
2958
|
"skipped": false
|
|
2959
2959
|
}
|
|
2960
2960
|
],
|
|
2961
2961
|
"suites": [],
|
|
2962
2962
|
"passes": [
|
|
2963
|
-
"
|
|
2963
|
+
"02d0f312-2dbb-4a10-9711-61ffb9c1bf76"
|
|
2964
2964
|
],
|
|
2965
2965
|
"failures": [],
|
|
2966
2966
|
"pending": [],
|
|
@@ -2971,7 +2971,7 @@
|
|
|
2971
2971
|
"_timeout": 2000
|
|
2972
2972
|
},
|
|
2973
2973
|
{
|
|
2974
|
-
"uuid": "
|
|
2974
|
+
"uuid": "c73711bf-abd1-457e-9b18-6a2483d0b87b",
|
|
2975
2975
|
"title": "turnOn()",
|
|
2976
2976
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/device.ts",
|
|
2977
2977
|
"file": "/test/device.ts",
|
|
@@ -2989,17 +2989,17 @@
|
|
|
2989
2989
|
"fail": false,
|
|
2990
2990
|
"pending": false,
|
|
2991
2991
|
"context": null,
|
|
2992
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new
|
|
2992
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const device = new NodePyATVDevice({\n name: 'My Testdevice',\n host: '192.168.178.2',\n spawn: createFakeSpawn(cp => {\n cp.end('{\"result\":\"success\"}');\n })\n });\n // @ts-ignore\n yield device[key]();\n});",
|
|
2993
2993
|
"err": {},
|
|
2994
|
-
"uuid": "
|
|
2995
|
-
"parentUUID": "
|
|
2994
|
+
"uuid": "d7f261b8-8425-4b3f-9417-2f8bcdbe323e",
|
|
2995
|
+
"parentUUID": "c73711bf-abd1-457e-9b18-6a2483d0b87b",
|
|
2996
2996
|
"isHook": false,
|
|
2997
2997
|
"skipped": false
|
|
2998
2998
|
}
|
|
2999
2999
|
],
|
|
3000
3000
|
"suites": [],
|
|
3001
3001
|
"passes": [
|
|
3002
|
-
"
|
|
3002
|
+
"d7f261b8-8425-4b3f-9417-2f8bcdbe323e"
|
|
3003
3003
|
],
|
|
3004
3004
|
"failures": [],
|
|
3005
3005
|
"pending": [],
|
|
@@ -3020,7 +3020,7 @@
|
|
|
3020
3020
|
"_timeout": 2000
|
|
3021
3021
|
},
|
|
3022
3022
|
{
|
|
3023
|
-
"uuid": "
|
|
3023
|
+
"uuid": "e445d5ad-f495-4f53-919b-e7ad6ab78597",
|
|
3024
3024
|
"title": "NodePyATVInstance",
|
|
3025
3025
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3026
3026
|
"file": "/test/instance.ts",
|
|
@@ -3029,7 +3029,7 @@
|
|
|
3029
3029
|
"tests": [],
|
|
3030
3030
|
"suites": [
|
|
3031
3031
|
{
|
|
3032
|
-
"uuid": "
|
|
3032
|
+
"uuid": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3033
3033
|
"title": "static version()",
|
|
3034
3034
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3035
3035
|
"file": "/test/instance.ts",
|
|
@@ -3040,17 +3040,17 @@
|
|
|
3040
3040
|
"title": "should work with pyatv [L]",
|
|
3041
3041
|
"fullTitle": "NodePyATVInstance static version() should work with pyatv [L]",
|
|
3042
3042
|
"timedOut": false,
|
|
3043
|
-
"duration":
|
|
3043
|
+
"duration": 525,
|
|
3044
3044
|
"state": "passed",
|
|
3045
3045
|
"speed": "slow",
|
|
3046
3046
|
"pass": true,
|
|
3047
3047
|
"fail": false,
|
|
3048
3048
|
"pending": false,
|
|
3049
3049
|
"context": null,
|
|
3050
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield
|
|
3050
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(4000);\n const result = yield NodePyATVInstance.version();\n if (result.pyatv === null) {\n throw new Error('No version found for pyatv. Is it installed in test environment?');\n }\n assert.equal(typeof result.pyatv, 'string', 'result.pyatv is a string');\n assert.ok(result.pyatv.length >= 5, 'result.pyatv has content');\n assert.strictEqual(result.module, version);\n});",
|
|
3051
3051
|
"err": {},
|
|
3052
|
-
"uuid": "
|
|
3053
|
-
"parentUUID": "
|
|
3052
|
+
"uuid": "fe4dad7b-6843-4c10-8135-61cce7f3968c",
|
|
3053
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3054
3054
|
"isHook": false,
|
|
3055
3055
|
"skipped": false
|
|
3056
3056
|
},
|
|
@@ -3058,17 +3058,17 @@
|
|
|
3058
3058
|
"title": "should return the pyatv version",
|
|
3059
3059
|
"fullTitle": "NodePyATVInstance static version() should return the pyatv version",
|
|
3060
3060
|
"timedOut": false,
|
|
3061
|
-
"duration":
|
|
3061
|
+
"duration": 2,
|
|
3062
3062
|
"state": "passed",
|
|
3063
3063
|
"speed": "fast",
|
|
3064
3064
|
"pass": true,
|
|
3065
3065
|
"fail": false,
|
|
3066
3066
|
"pending": false,
|
|
3067
3067
|
"context": null,
|
|
3068
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
3068
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.code(1);\n cp.end('atvremote 0.7.4');\n })\n });\n assert.ok(result.pyatv);\n assert.strictEqual(result.pyatv, '0.7.4');\n});",
|
|
3069
3069
|
"err": {},
|
|
3070
|
-
"uuid": "
|
|
3071
|
-
"parentUUID": "
|
|
3070
|
+
"uuid": "533a8e82-403a-4948-9018-a968b9869f08",
|
|
3071
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3072
3072
|
"isHook": false,
|
|
3073
3073
|
"skipped": false
|
|
3074
3074
|
},
|
|
@@ -3076,17 +3076,17 @@
|
|
|
3076
3076
|
"title": "should return the module version",
|
|
3077
3077
|
"fullTitle": "NodePyATVInstance static version() should return the module version",
|
|
3078
3078
|
"timedOut": false,
|
|
3079
|
-
"duration":
|
|
3079
|
+
"duration": 2,
|
|
3080
3080
|
"state": "passed",
|
|
3081
3081
|
"speed": "fast",
|
|
3082
3082
|
"pass": true,
|
|
3083
3083
|
"fail": false,
|
|
3084
3084
|
"pending": false,
|
|
3085
3085
|
"context": null,
|
|
3086
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
3086
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n assert.strictEqual(result.module, version);\n});",
|
|
3087
3087
|
"err": {},
|
|
3088
|
-
"uuid": "
|
|
3089
|
-
"parentUUID": "
|
|
3088
|
+
"uuid": "1df0cc1d-3976-4923-9c3a-072bf3d2d09d",
|
|
3089
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3090
3090
|
"isHook": false,
|
|
3091
3091
|
"skipped": false
|
|
3092
3092
|
},
|
|
@@ -3101,10 +3101,10 @@
|
|
|
3101
3101
|
"fail": false,
|
|
3102
3102
|
"pending": false,
|
|
3103
3103
|
"context": null,
|
|
3104
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3104
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n atvremotePath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.code(1).end();\n })\n });\n});",
|
|
3105
3105
|
"err": {},
|
|
3106
|
-
"uuid": "
|
|
3107
|
-
"parentUUID": "
|
|
3106
|
+
"uuid": "fb0f8626-b706-4df9-a2f3-20544d47a240",
|
|
3107
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3108
3108
|
"isHook": false,
|
|
3109
3109
|
"skipped": false
|
|
3110
3110
|
},
|
|
@@ -3112,17 +3112,17 @@
|
|
|
3112
3112
|
"title": "should work with option.debug = true",
|
|
3113
3113
|
"fullTitle": "NodePyATVInstance static version() should work with option.debug = true",
|
|
3114
3114
|
"timedOut": false,
|
|
3115
|
-
"duration":
|
|
3115
|
+
"duration": 3,
|
|
3116
3116
|
"state": "passed",
|
|
3117
3117
|
"speed": "fast",
|
|
3118
3118
|
"pass": true,
|
|
3119
3119
|
"fail": false,
|
|
3120
3120
|
"pending": false,
|
|
3121
3121
|
"context": null,
|
|
3122
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3122
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
|
|
3123
3123
|
"err": {},
|
|
3124
|
-
"uuid": "
|
|
3125
|
-
"parentUUID": "
|
|
3124
|
+
"uuid": "8efaa8e2-562e-40bd-83cc-54d8b6b4c1c7",
|
|
3125
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3126
3126
|
"isHook": false,
|
|
3127
3127
|
"skipped": false
|
|
3128
3128
|
},
|
|
@@ -3137,10 +3137,10 @@
|
|
|
3137
3137
|
"fail": false,
|
|
3138
3138
|
"pending": false,
|
|
3139
3139
|
"context": null,
|
|
3140
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3140
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.version({\n debug: () => {\n // no debug log\n },\n noColors: true,\n spawn: createFakeSpawn(cp => cp.code(1).end())\n });\n});",
|
|
3141
3141
|
"err": {},
|
|
3142
|
-
"uuid": "
|
|
3143
|
-
"parentUUID": "
|
|
3142
|
+
"uuid": "b2cedddd-77b0-48d9-8446-58c6abb9ea98",
|
|
3143
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3144
3144
|
"isHook": false,
|
|
3145
3145
|
"skipped": false
|
|
3146
3146
|
},
|
|
@@ -3148,17 +3148,17 @@
|
|
|
3148
3148
|
"title": "should return null on pyatv stderr output",
|
|
3149
3149
|
"fullTitle": "NodePyATVInstance static version() should return null on pyatv stderr output",
|
|
3150
3150
|
"timedOut": false,
|
|
3151
|
-
"duration":
|
|
3151
|
+
"duration": 2,
|
|
3152
3152
|
"state": "passed",
|
|
3153
3153
|
"speed": "fast",
|
|
3154
3154
|
"pass": true,
|
|
3155
3155
|
"fail": false,
|
|
3156
3156
|
"pending": false,
|
|
3157
3157
|
"context": null,
|
|
3158
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
3158
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => cp.stderr('Hello World!').code(123).end())\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3159
3159
|
"err": {},
|
|
3160
|
-
"uuid": "
|
|
3161
|
-
"parentUUID": "
|
|
3160
|
+
"uuid": "a449cf3b-109f-40d2-9db6-e873fc8c8aa2",
|
|
3161
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3162
3162
|
"isHook": false,
|
|
3163
3163
|
"skipped": false
|
|
3164
3164
|
},
|
|
@@ -3173,10 +3173,10 @@
|
|
|
3173
3173
|
"fail": false,
|
|
3174
3174
|
"pending": false,
|
|
3175
3175
|
"context": null,
|
|
3176
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
3176
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3177
3177
|
"err": {},
|
|
3178
|
-
"uuid": "
|
|
3179
|
-
"parentUUID": "
|
|
3178
|
+
"uuid": "c999012c-e9f6-4093-9d90-2968f91cbb13",
|
|
3179
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3180
3180
|
"isHook": false,
|
|
3181
3181
|
"skipped": false
|
|
3182
3182
|
},
|
|
@@ -3191,74 +3191,36 @@
|
|
|
3191
3191
|
"fail": false,
|
|
3192
3192
|
"pending": false,
|
|
3193
3193
|
"context": null,
|
|
3194
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
3195
|
-
"err": {},
|
|
3196
|
-
"uuid": "5f9d9356-aab9-4af4-8148-226b30e10457",
|
|
3197
|
-
"parentUUID": "3171ba08-9bb8-4d00-b64f-dd945b6594f3",
|
|
3198
|
-
"isHook": false,
|
|
3199
|
-
"skipped": false
|
|
3200
|
-
},
|
|
3201
|
-
{
|
|
3202
|
-
"title": "should return null on empty module version",
|
|
3203
|
-
"fullTitle": "NodePyATVInstance static version() should return null on empty module version",
|
|
3204
|
-
"timedOut": false,
|
|
3205
|
-
"duration": 1,
|
|
3206
|
-
"state": "passed",
|
|
3207
|
-
"speed": "fast",
|
|
3208
|
-
"pass": true,
|
|
3209
|
-
"fail": false,
|
|
3210
|
-
"pending": false,
|
|
3211
|
-
"context": null,
|
|
3212
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = {};\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3194
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield NodePyATVInstance.version({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 42').code(1).end();\n })\n });\n assert.strictEqual(result.pyatv, null);\n});",
|
|
3213
3195
|
"err": {},
|
|
3214
|
-
"uuid": "
|
|
3215
|
-
"parentUUID": "
|
|
3216
|
-
"isHook": false,
|
|
3217
|
-
"skipped": false
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
"title": "should return null on invalid module version",
|
|
3221
|
-
"fullTitle": "NodePyATVInstance static version() should return null on invalid module version",
|
|
3222
|
-
"timedOut": false,
|
|
3223
|
-
"duration": 1,
|
|
3224
|
-
"state": "passed",
|
|
3225
|
-
"speed": "fast",
|
|
3226
|
-
"pass": true,
|
|
3227
|
-
"fail": false,
|
|
3228
|
-
"pending": false,
|
|
3229
|
-
"context": null,
|
|
3230
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const path = require.resolve(__dirname + '/../package.json');\n require(path);\n const cache = require.cache[path];\n assert_1.default.ok(cache, 'package.json is in require cache');\n cache.exports = { version: 42 };\n const result = yield index_1.default.version({\n spawn: (0, fake_spawn_1.createFakeSpawn)(cp => {\n cp.stdout('atvremote 0.7.4').code(1).end();\n })\n });\n assert_1.default.strictEqual(result.module, null);\n});",
|
|
3231
|
-
"err": {},
|
|
3232
|
-
"uuid": "f1d4e641-f621-4f89-a302-1d057292c4f9",
|
|
3233
|
-
"parentUUID": "3171ba08-9bb8-4d00-b64f-dd945b6594f3",
|
|
3196
|
+
"uuid": "f74ec60e-0c58-4503-83fa-0618f7b4531f",
|
|
3197
|
+
"parentUUID": "28a0367d-591e-4162-be98-ee501c7f5e33",
|
|
3234
3198
|
"isHook": false,
|
|
3235
3199
|
"skipped": false
|
|
3236
3200
|
}
|
|
3237
3201
|
],
|
|
3238
3202
|
"suites": [],
|
|
3239
3203
|
"passes": [
|
|
3240
|
-
"
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3243
|
-
"
|
|
3244
|
-
"
|
|
3245
|
-
"
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3248
|
-
"
|
|
3249
|
-
"e8337bcf-bc4d-4073-a508-3b9b1e04df9b",
|
|
3250
|
-
"f1d4e641-f621-4f89-a302-1d057292c4f9"
|
|
3204
|
+
"fe4dad7b-6843-4c10-8135-61cce7f3968c",
|
|
3205
|
+
"533a8e82-403a-4948-9018-a968b9869f08",
|
|
3206
|
+
"1df0cc1d-3976-4923-9c3a-072bf3d2d09d",
|
|
3207
|
+
"fb0f8626-b706-4df9-a2f3-20544d47a240",
|
|
3208
|
+
"8efaa8e2-562e-40bd-83cc-54d8b6b4c1c7",
|
|
3209
|
+
"b2cedddd-77b0-48d9-8446-58c6abb9ea98",
|
|
3210
|
+
"a449cf3b-109f-40d2-9db6-e873fc8c8aa2",
|
|
3211
|
+
"c999012c-e9f6-4093-9d90-2968f91cbb13",
|
|
3212
|
+
"f74ec60e-0c58-4503-83fa-0618f7b4531f"
|
|
3251
3213
|
],
|
|
3252
3214
|
"failures": [],
|
|
3253
3215
|
"pending": [],
|
|
3254
3216
|
"skipped": [],
|
|
3255
|
-
"duration":
|
|
3217
|
+
"duration": 541,
|
|
3256
3218
|
"root": false,
|
|
3257
3219
|
"rootEmpty": false,
|
|
3258
3220
|
"_timeout": 2000
|
|
3259
3221
|
},
|
|
3260
3222
|
{
|
|
3261
|
-
"uuid": "
|
|
3223
|
+
"uuid": "52935579-d604-4798-9f59-5eb7888c99c1",
|
|
3262
3224
|
"title": "static check()",
|
|
3263
3225
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3264
3226
|
"file": "/test/instance.ts",
|
|
@@ -3269,17 +3231,17 @@
|
|
|
3269
3231
|
"title": "should resolve in test environment [L]",
|
|
3270
3232
|
"fullTitle": "NodePyATVInstance static check() should resolve in test environment [L]",
|
|
3271
3233
|
"timedOut": false,
|
|
3272
|
-
"duration":
|
|
3234
|
+
"duration": 5854,
|
|
3273
3235
|
"state": "passed",
|
|
3274
3236
|
"speed": "slow",
|
|
3275
3237
|
"pass": true,
|
|
3276
3238
|
"fail": false,
|
|
3277
3239
|
"pending": false,
|
|
3278
3240
|
"context": null,
|
|
3279
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield
|
|
3241
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(12000);\n yield NodePyATVInstance.check();\n});",
|
|
3280
3242
|
"err": {},
|
|
3281
|
-
"uuid": "
|
|
3282
|
-
"parentUUID": "
|
|
3243
|
+
"uuid": "92633b01-fecc-4ead-baf9-af884bf7e477",
|
|
3244
|
+
"parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
|
|
3283
3245
|
"isHook": false,
|
|
3284
3246
|
"skipped": false
|
|
3285
3247
|
},
|
|
@@ -3294,10 +3256,10 @@
|
|
|
3294
3256
|
"fail": false,
|
|
3295
3257
|
"pending": false,
|
|
3296
3258
|
"context": null,
|
|
3297
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3259
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3298
3260
|
"err": {},
|
|
3299
|
-
"uuid": "
|
|
3300
|
-
"parentUUID": "
|
|
3261
|
+
"uuid": "2c56409d-78b5-46f9-92ea-dd7de1116f91",
|
|
3262
|
+
"parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
|
|
3301
3263
|
"isHook": false,
|
|
3302
3264
|
"skipped": false
|
|
3303
3265
|
},
|
|
@@ -3312,10 +3274,10 @@
|
|
|
3312
3274
|
"fail": false,
|
|
3313
3275
|
"pending": false,
|
|
3314
3276
|
"context": null,
|
|
3315
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3277
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n cp.stdout('atvremote 0.5.1').code(1).end();\n })\n });\n }), /Found pyatv, but unforunately it's too old. Please update pyatv./);\n});",
|
|
3316
3278
|
"err": {},
|
|
3317
|
-
"uuid": "
|
|
3318
|
-
"parentUUID": "
|
|
3279
|
+
"uuid": "f616e273-fc50-4819-85dd-0f38e80bd6d6",
|
|
3280
|
+
"parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
|
|
3319
3281
|
"isHook": false,
|
|
3320
3282
|
"skipped": false
|
|
3321
3283
|
},
|
|
@@ -3330,31 +3292,31 @@
|
|
|
3330
3292
|
"fail": false,
|
|
3331
3293
|
"pending": false,
|
|
3332
3294
|
"context": null,
|
|
3333
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield
|
|
3295
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n let i = 0;\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.check({\n spawn: createFakeSpawn(cp => {\n if (i === 0) {\n cp.stdout('atvremote 0.7.0').code(1).end();\n i++;\n }\n else {\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n }\n })\n });\n }), /Unable to scan for devices/);\n});",
|
|
3334
3296
|
"err": {},
|
|
3335
|
-
"uuid": "
|
|
3336
|
-
"parentUUID": "
|
|
3297
|
+
"uuid": "1d15c0f3-1e44-46ea-822e-77771bf50487",
|
|
3298
|
+
"parentUUID": "52935579-d604-4798-9f59-5eb7888c99c1",
|
|
3337
3299
|
"isHook": false,
|
|
3338
3300
|
"skipped": false
|
|
3339
3301
|
}
|
|
3340
3302
|
],
|
|
3341
3303
|
"suites": [],
|
|
3342
3304
|
"passes": [
|
|
3343
|
-
"
|
|
3344
|
-
"
|
|
3345
|
-
"
|
|
3346
|
-
"
|
|
3305
|
+
"92633b01-fecc-4ead-baf9-af884bf7e477",
|
|
3306
|
+
"2c56409d-78b5-46f9-92ea-dd7de1116f91",
|
|
3307
|
+
"f616e273-fc50-4819-85dd-0f38e80bd6d6",
|
|
3308
|
+
"1d15c0f3-1e44-46ea-822e-77771bf50487"
|
|
3347
3309
|
],
|
|
3348
3310
|
"failures": [],
|
|
3349
3311
|
"pending": [],
|
|
3350
3312
|
"skipped": [],
|
|
3351
|
-
"duration":
|
|
3313
|
+
"duration": 5861,
|
|
3352
3314
|
"root": false,
|
|
3353
3315
|
"rootEmpty": false,
|
|
3354
3316
|
"_timeout": 2000
|
|
3355
3317
|
},
|
|
3356
3318
|
{
|
|
3357
|
-
"uuid": "
|
|
3319
|
+
"uuid": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3358
3320
|
"title": "static find()",
|
|
3359
3321
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3360
3322
|
"file": "/test/instance.ts",
|
|
@@ -3365,17 +3327,17 @@
|
|
|
3365
3327
|
"title": "should work [L]",
|
|
3366
3328
|
"fullTitle": "NodePyATVInstance static find() should work [L]",
|
|
3367
3329
|
"timedOut": false,
|
|
3368
|
-
"duration":
|
|
3330
|
+
"duration": 5424,
|
|
3369
3331
|
"state": "passed",
|
|
3370
3332
|
"speed": "slow",
|
|
3371
3333
|
"pass": true,
|
|
3372
3334
|
"fail": false,
|
|
3373
3335
|
"pending": false,
|
|
3374
3336
|
"context": null,
|
|
3375
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield
|
|
3337
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n this.timeout(8000);\n const result = yield NodePyATVInstance.find();\n assert.ok(Array.isArray(result));\n});",
|
|
3376
3338
|
"err": {},
|
|
3377
|
-
"uuid": "
|
|
3378
|
-
"parentUUID": "
|
|
3339
|
+
"uuid": "44f0a3a2-a552-4911-b01a-5c7f60869027",
|
|
3340
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3379
3341
|
"isHook": false,
|
|
3380
3342
|
"skipped": false
|
|
3381
3343
|
},
|
|
@@ -3390,10 +3352,10 @@
|
|
|
3390
3352
|
"fail": false,
|
|
3391
3353
|
"pending": false,
|
|
3392
3354
|
"context": null,
|
|
3393
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3355
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n atvscriptPath: '/foo/bar',\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), '/foo/bar');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3394
3356
|
"err": {},
|
|
3395
|
-
"uuid": "
|
|
3396
|
-
"parentUUID": "
|
|
3357
|
+
"uuid": "eab6256e-3f20-4f56-a190-61c1c0a90665",
|
|
3358
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3397
3359
|
"isHook": false,
|
|
3398
3360
|
"skipped": false
|
|
3399
3361
|
},
|
|
@@ -3408,10 +3370,10 @@
|
|
|
3408
3370
|
"fail": false,
|
|
3409
3371
|
"pending": false,
|
|
3410
3372
|
"context": null,
|
|
3411
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3373
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stderr('Hello World!').code(1).end();\n })\n });\n }), /Unable to execute request/);\n});",
|
|
3412
3374
|
"err": {},
|
|
3413
|
-
"uuid": "
|
|
3414
|
-
"parentUUID": "
|
|
3375
|
+
"uuid": "df21b8df-db76-41c2-8890-118f0c5af57b",
|
|
3376
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3415
3377
|
"isHook": false,
|
|
3416
3378
|
"skipped": false
|
|
3417
3379
|
},
|
|
@@ -3426,10 +3388,10 @@
|
|
|
3426
3388
|
"fail": false,
|
|
3427
3389
|
"pending": false,
|
|
3428
3390
|
"context": null,
|
|
3429
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3391
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.error(new Error('Hello world!')).code(1).end();\n })\n });\n }), /Hello world!/);\n});",
|
|
3430
3392
|
"err": {},
|
|
3431
|
-
"uuid": "
|
|
3432
|
-
"parentUUID": "
|
|
3393
|
+
"uuid": "50864df2-0c5a-4c41-84b4-34b3dd6e62ad",
|
|
3394
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3433
3395
|
"isHook": false,
|
|
3434
3396
|
"skipped": false
|
|
3435
3397
|
},
|
|
@@ -3437,17 +3399,17 @@
|
|
|
3437
3399
|
"title": "should throw error if atvscript result is not valid json",
|
|
3438
3400
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not valid json",
|
|
3439
3401
|
"timedOut": false,
|
|
3440
|
-
"duration":
|
|
3402
|
+
"duration": 2,
|
|
3441
3403
|
"state": "passed",
|
|
3442
3404
|
"speed": "fast",
|
|
3443
3405
|
"pass": true,
|
|
3444
3406
|
"fail": false,
|
|
3445
3407
|
"pending": false,
|
|
3446
3408
|
"context": null,
|
|
3447
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3409
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout(JSON.stringify({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).substr(1)).end();\n })\n });\n }), /Unable to parse result/);\n});",
|
|
3448
3410
|
"err": {},
|
|
3449
|
-
"uuid": "
|
|
3450
|
-
"parentUUID": "
|
|
3411
|
+
"uuid": "280b65a3-04c1-4759-95a5-19cf6bc4d6b2",
|
|
3412
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3451
3413
|
"isHook": false,
|
|
3452
3414
|
"skipped": false
|
|
3453
3415
|
},
|
|
@@ -3455,17 +3417,17 @@
|
|
|
3455
3417
|
"title": "should throw error if atvscript result is not successfull",
|
|
3456
3418
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is not successfull",
|
|
3457
3419
|
"timedOut": false,
|
|
3458
|
-
"duration":
|
|
3420
|
+
"duration": 1,
|
|
3459
3421
|
"state": "passed",
|
|
3460
3422
|
"speed": "fast",
|
|
3461
3423
|
"pass": true,
|
|
3462
3424
|
"fail": false,
|
|
3463
3425
|
"pending": false,
|
|
3464
3426
|
"context": null,
|
|
3465
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3427
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'error'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3466
3428
|
"err": {},
|
|
3467
|
-
"uuid": "
|
|
3468
|
-
"parentUUID": "
|
|
3429
|
+
"uuid": "5d527843-65a1-4592-a9f5-f381f67a3b41",
|
|
3430
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3469
3431
|
"isHook": false,
|
|
3470
3432
|
"skipped": false
|
|
3471
3433
|
},
|
|
@@ -3473,41 +3435,41 @@
|
|
|
3473
3435
|
"title": "should throw error if atvscript result is without device array",
|
|
3474
3436
|
"fullTitle": "NodePyATVInstance static find() should throw error if atvscript result is without device array",
|
|
3475
3437
|
"timedOut": false,
|
|
3476
|
-
"duration":
|
|
3438
|
+
"duration": 2,
|
|
3477
3439
|
"state": "passed",
|
|
3478
3440
|
"speed": "fast",
|
|
3479
3441
|
"pass": true,
|
|
3480
3442
|
"fail": false,
|
|
3481
3443
|
"pending": false,
|
|
3482
3444
|
"context": null,
|
|
3483
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield
|
|
3445
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield NodePyATVInstance.find({\n spawn: createFakeSpawn(cp => {\n cp.stdout({\n result: 'success'\n }).code(1).end();\n })\n });\n }), /Unable to parse pyatv response: /);\n});",
|
|
3484
3446
|
"err": {},
|
|
3485
|
-
"uuid": "
|
|
3486
|
-
"parentUUID": "
|
|
3447
|
+
"uuid": "0bdfba43-1fce-4574-ad2b-2a6a19159d9b",
|
|
3448
|
+
"parentUUID": "798dca0f-9844-4736-b844-11d171e5866f",
|
|
3487
3449
|
"isHook": false,
|
|
3488
3450
|
"skipped": false
|
|
3489
3451
|
}
|
|
3490
3452
|
],
|
|
3491
3453
|
"suites": [],
|
|
3492
3454
|
"passes": [
|
|
3493
|
-
"
|
|
3494
|
-
"
|
|
3495
|
-
"
|
|
3496
|
-
"
|
|
3497
|
-
"
|
|
3498
|
-
"
|
|
3499
|
-
"
|
|
3455
|
+
"44f0a3a2-a552-4911-b01a-5c7f60869027",
|
|
3456
|
+
"eab6256e-3f20-4f56-a190-61c1c0a90665",
|
|
3457
|
+
"df21b8df-db76-41c2-8890-118f0c5af57b",
|
|
3458
|
+
"50864df2-0c5a-4c41-84b4-34b3dd6e62ad",
|
|
3459
|
+
"280b65a3-04c1-4759-95a5-19cf6bc4d6b2",
|
|
3460
|
+
"5d527843-65a1-4592-a9f5-f381f67a3b41",
|
|
3461
|
+
"0bdfba43-1fce-4574-ad2b-2a6a19159d9b"
|
|
3500
3462
|
],
|
|
3501
3463
|
"failures": [],
|
|
3502
3464
|
"pending": [],
|
|
3503
3465
|
"skipped": [],
|
|
3504
|
-
"duration":
|
|
3466
|
+
"duration": 5433,
|
|
3505
3467
|
"root": false,
|
|
3506
3468
|
"rootEmpty": false,
|
|
3507
3469
|
"_timeout": 2000
|
|
3508
3470
|
},
|
|
3509
3471
|
{
|
|
3510
|
-
"uuid": "
|
|
3472
|
+
"uuid": "6bc0b399-68d7-4a58-a4fb-15e474d912f0",
|
|
3511
3473
|
"title": "static device()",
|
|
3512
3474
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3513
3475
|
"file": "/test/instance.ts",
|
|
@@ -3525,17 +3487,17 @@
|
|
|
3525
3487
|
"fail": false,
|
|
3526
3488
|
"pending": false,
|
|
3527
3489
|
"context": null,
|
|
3528
|
-
"code": "const device =
|
|
3490
|
+
"code": "const device = NodePyATVInstance.device({ host: '192.168.178.6', name: 'My Testdevice' });\nassert.strictEqual(device.host, '192.168.178.6');\nassert.strictEqual(device.name, 'My Testdevice');",
|
|
3529
3491
|
"err": {},
|
|
3530
|
-
"uuid": "
|
|
3531
|
-
"parentUUID": "
|
|
3492
|
+
"uuid": "a071502d-5ed0-41aa-8980-6fb7caad2b71",
|
|
3493
|
+
"parentUUID": "6bc0b399-68d7-4a58-a4fb-15e474d912f0",
|
|
3532
3494
|
"isHook": false,
|
|
3533
3495
|
"skipped": false
|
|
3534
3496
|
}
|
|
3535
3497
|
],
|
|
3536
3498
|
"suites": [],
|
|
3537
3499
|
"passes": [
|
|
3538
|
-
"
|
|
3500
|
+
"a071502d-5ed0-41aa-8980-6fb7caad2b71"
|
|
3539
3501
|
],
|
|
3540
3502
|
"failures": [],
|
|
3541
3503
|
"pending": [],
|
|
@@ -3546,7 +3508,7 @@
|
|
|
3546
3508
|
"_timeout": 2000
|
|
3547
3509
|
},
|
|
3548
3510
|
{
|
|
3549
|
-
"uuid": "
|
|
3511
|
+
"uuid": "57ae574a-1f72-44d4-90a1-4c68c3f0859b",
|
|
3550
3512
|
"title": "version()",
|
|
3551
3513
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3552
3514
|
"file": "/test/instance.ts",
|
|
@@ -3557,35 +3519,35 @@
|
|
|
3557
3519
|
"title": "should merge options from constructor",
|
|
3558
3520
|
"fullTitle": "NodePyATVInstance version() should merge options from constructor",
|
|
3559
3521
|
"timedOut": false,
|
|
3560
|
-
"duration":
|
|
3522
|
+
"duration": 2,
|
|
3561
3523
|
"state": "passed",
|
|
3562
3524
|
"speed": "fast",
|
|
3563
3525
|
"pass": true,
|
|
3564
3526
|
"fail": false,
|
|
3565
3527
|
"pending": false,
|
|
3566
3528
|
"context": null,
|
|
3567
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new
|
|
3529
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield i.version({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.code(1).end();\n })\n });\n});",
|
|
3568
3530
|
"err": {},
|
|
3569
|
-
"uuid": "
|
|
3570
|
-
"parentUUID": "
|
|
3531
|
+
"uuid": "571087c9-a3d2-4916-b6eb-ad0f2ce7c949",
|
|
3532
|
+
"parentUUID": "57ae574a-1f72-44d4-90a1-4c68c3f0859b",
|
|
3571
3533
|
"isHook": false,
|
|
3572
3534
|
"skipped": false
|
|
3573
3535
|
}
|
|
3574
3536
|
],
|
|
3575
3537
|
"suites": [],
|
|
3576
3538
|
"passes": [
|
|
3577
|
-
"
|
|
3539
|
+
"571087c9-a3d2-4916-b6eb-ad0f2ce7c949"
|
|
3578
3540
|
],
|
|
3579
3541
|
"failures": [],
|
|
3580
3542
|
"pending": [],
|
|
3581
3543
|
"skipped": [],
|
|
3582
|
-
"duration":
|
|
3544
|
+
"duration": 2,
|
|
3583
3545
|
"root": false,
|
|
3584
3546
|
"rootEmpty": false,
|
|
3585
3547
|
"_timeout": 2000
|
|
3586
3548
|
},
|
|
3587
3549
|
{
|
|
3588
|
-
"uuid": "
|
|
3550
|
+
"uuid": "800d28dd-174d-4cd3-8479-4ab4d85cfb84",
|
|
3589
3551
|
"title": "check()",
|
|
3590
3552
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3591
3553
|
"file": "/test/instance.ts",
|
|
@@ -3603,17 +3565,17 @@
|
|
|
3603
3565
|
"fail": false,
|
|
3604
3566
|
"pending": false,
|
|
3605
3567
|
"context": null,
|
|
3606
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new
|
|
3568
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvremotePath: 'test' });\n yield assert.rejects(() => __awaiter(this, void 0, void 0, function* () {\n yield i.check({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.error(new Error('spawn atvremote ENOENT')).code(1).end();\n })\n });\n }), /Unable to find pyatv. Is it installed?/);\n});",
|
|
3607
3569
|
"err": {},
|
|
3608
|
-
"uuid": "
|
|
3609
|
-
"parentUUID": "
|
|
3570
|
+
"uuid": "6850c38c-9ad2-4b91-916a-3b1c37391146",
|
|
3571
|
+
"parentUUID": "800d28dd-174d-4cd3-8479-4ab4d85cfb84",
|
|
3610
3572
|
"isHook": false,
|
|
3611
3573
|
"skipped": false
|
|
3612
3574
|
}
|
|
3613
3575
|
],
|
|
3614
3576
|
"suites": [],
|
|
3615
3577
|
"passes": [
|
|
3616
|
-
"
|
|
3578
|
+
"6850c38c-9ad2-4b91-916a-3b1c37391146"
|
|
3617
3579
|
],
|
|
3618
3580
|
"failures": [],
|
|
3619
3581
|
"pending": [],
|
|
@@ -3624,7 +3586,7 @@
|
|
|
3624
3586
|
"_timeout": 2000
|
|
3625
3587
|
},
|
|
3626
3588
|
{
|
|
3627
|
-
"uuid": "
|
|
3589
|
+
"uuid": "baf3cbd9-3a6c-470e-be87-bcc0be530436",
|
|
3628
3590
|
"title": "find()",
|
|
3629
3591
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3630
3592
|
"file": "/test/instance.ts",
|
|
@@ -3642,17 +3604,17 @@
|
|
|
3642
3604
|
"fail": false,
|
|
3643
3605
|
"pending": false,
|
|
3644
3606
|
"context": null,
|
|
3645
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new
|
|
3607
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ atvscriptPath: 'test' });\n yield i.find({\n spawn: createFakeSpawn(cp => {\n assert.strictEqual(cp.cmd(), 'test');\n cp.stdout({\n 'result': 'success',\n 'datetime': '2020-11-06T20:47:30.840022+01:00',\n 'devices': []\n }).end();\n })\n });\n});",
|
|
3646
3608
|
"err": {},
|
|
3647
|
-
"uuid": "
|
|
3648
|
-
"parentUUID": "
|
|
3609
|
+
"uuid": "64777cdb-fb53-4793-994d-3a5b7ef94941",
|
|
3610
|
+
"parentUUID": "baf3cbd9-3a6c-470e-be87-bcc0be530436",
|
|
3649
3611
|
"isHook": false,
|
|
3650
3612
|
"skipped": false
|
|
3651
3613
|
}
|
|
3652
3614
|
],
|
|
3653
3615
|
"suites": [],
|
|
3654
3616
|
"passes": [
|
|
3655
|
-
"
|
|
3617
|
+
"64777cdb-fb53-4793-994d-3a5b7ef94941"
|
|
3656
3618
|
],
|
|
3657
3619
|
"failures": [],
|
|
3658
3620
|
"pending": [],
|
|
@@ -3663,7 +3625,7 @@
|
|
|
3663
3625
|
"_timeout": 2000
|
|
3664
3626
|
},
|
|
3665
3627
|
{
|
|
3666
|
-
"uuid": "
|
|
3628
|
+
"uuid": "f4f3c18d-0ca9-4bb5-996f-8926b44e68f8",
|
|
3667
3629
|
"title": "device()",
|
|
3668
3630
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3669
3631
|
"file": "/test/instance.ts",
|
|
@@ -3681,17 +3643,17 @@
|
|
|
3681
3643
|
"fail": false,
|
|
3682
3644
|
"pending": false,
|
|
3683
3645
|
"context": null,
|
|
3684
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new
|
|
3646
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const i = new NodePyATVInstance({ debug: true });\n const d = i.device({ name: 'My Testdevice', host: '192.168.178.2' });\n assert.deepStrictEqual(d.debug, true);\n});",
|
|
3685
3647
|
"err": {},
|
|
3686
|
-
"uuid": "
|
|
3687
|
-
"parentUUID": "
|
|
3648
|
+
"uuid": "de31ffa5-8058-43cf-93e0-d1606c4d9855",
|
|
3649
|
+
"parentUUID": "f4f3c18d-0ca9-4bb5-996f-8926b44e68f8",
|
|
3688
3650
|
"isHook": false,
|
|
3689
3651
|
"skipped": false
|
|
3690
3652
|
}
|
|
3691
3653
|
],
|
|
3692
3654
|
"suites": [],
|
|
3693
3655
|
"passes": [
|
|
3694
|
-
"
|
|
3656
|
+
"de31ffa5-8058-43cf-93e0-d1606c4d9855"
|
|
3695
3657
|
],
|
|
3696
3658
|
"failures": [],
|
|
3697
3659
|
"pending": [],
|
|
@@ -3702,7 +3664,7 @@
|
|
|
3702
3664
|
"_timeout": 2000
|
|
3703
3665
|
},
|
|
3704
3666
|
{
|
|
3705
|
-
"uuid": "
|
|
3667
|
+
"uuid": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3706
3668
|
"title": "Type Exports",
|
|
3707
3669
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/instance.ts",
|
|
3708
3670
|
"file": "/test/instance.ts",
|
|
@@ -3720,10 +3682,10 @@
|
|
|
3720
3682
|
"fail": false,
|
|
3721
3683
|
"pending": false,
|
|
3722
3684
|
"context": null,
|
|
3723
|
-
"code": "
|
|
3685
|
+
"code": "assert.ok(NodePyATVProtocol);",
|
|
3724
3686
|
"err": {},
|
|
3725
|
-
"uuid": "
|
|
3726
|
-
"parentUUID": "
|
|
3687
|
+
"uuid": "09973a79-7155-434f-b9bb-04669d0f8094",
|
|
3688
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3727
3689
|
"isHook": false,
|
|
3728
3690
|
"skipped": false
|
|
3729
3691
|
},
|
|
@@ -3738,10 +3700,10 @@
|
|
|
3738
3700
|
"fail": false,
|
|
3739
3701
|
"pending": false,
|
|
3740
3702
|
"context": null,
|
|
3741
|
-
"code": "
|
|
3703
|
+
"code": "assert.ok(NodePyATVMediaType);",
|
|
3742
3704
|
"err": {},
|
|
3743
|
-
"uuid": "
|
|
3744
|
-
"parentUUID": "
|
|
3705
|
+
"uuid": "f6f0f8de-e625-4d59-82ee-6b88f39108d5",
|
|
3706
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3745
3707
|
"isHook": false,
|
|
3746
3708
|
"skipped": false
|
|
3747
3709
|
},
|
|
@@ -3756,10 +3718,10 @@
|
|
|
3756
3718
|
"fail": false,
|
|
3757
3719
|
"pending": false,
|
|
3758
3720
|
"context": null,
|
|
3759
|
-
"code": "
|
|
3721
|
+
"code": "assert.ok(NodePyATVDeviceEvent);",
|
|
3760
3722
|
"err": {},
|
|
3761
|
-
"uuid": "
|
|
3762
|
-
"parentUUID": "
|
|
3723
|
+
"uuid": "976885f7-1c8b-437d-9bbf-9fc6f229e096",
|
|
3724
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3763
3725
|
"isHook": false,
|
|
3764
3726
|
"skipped": false
|
|
3765
3727
|
},
|
|
@@ -3774,10 +3736,10 @@
|
|
|
3774
3736
|
"fail": false,
|
|
3775
3737
|
"pending": false,
|
|
3776
3738
|
"context": null,
|
|
3777
|
-
"code": "
|
|
3739
|
+
"code": "assert.ok(NodePyATVDeviceState);",
|
|
3778
3740
|
"err": {},
|
|
3779
|
-
"uuid": "
|
|
3780
|
-
"parentUUID": "
|
|
3741
|
+
"uuid": "88905b6e-d56a-49e7-b96d-5639344674fa",
|
|
3742
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3781
3743
|
"isHook": false,
|
|
3782
3744
|
"skipped": false
|
|
3783
3745
|
},
|
|
@@ -3792,10 +3754,10 @@
|
|
|
3792
3754
|
"fail": false,
|
|
3793
3755
|
"pending": false,
|
|
3794
3756
|
"context": null,
|
|
3795
|
-
"code": "
|
|
3757
|
+
"code": "assert.ok(NodePyATVRepeatState);",
|
|
3796
3758
|
"err": {},
|
|
3797
|
-
"uuid": "
|
|
3798
|
-
"parentUUID": "
|
|
3759
|
+
"uuid": "3cec1943-e19c-4db7-9a08-a503b1308a53",
|
|
3760
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3799
3761
|
"isHook": false,
|
|
3800
3762
|
"skipped": false
|
|
3801
3763
|
},
|
|
@@ -3810,10 +3772,10 @@
|
|
|
3810
3772
|
"fail": false,
|
|
3811
3773
|
"pending": false,
|
|
3812
3774
|
"context": null,
|
|
3813
|
-
"code": "
|
|
3775
|
+
"code": "assert.ok(NodePyATVShuffleState);",
|
|
3814
3776
|
"err": {},
|
|
3815
|
-
"uuid": "
|
|
3816
|
-
"parentUUID": "
|
|
3777
|
+
"uuid": "0655d3ed-3d5b-42d2-8d5f-57799441b5cf",
|
|
3778
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3817
3779
|
"isHook": false,
|
|
3818
3780
|
"skipped": false
|
|
3819
3781
|
},
|
|
@@ -3828,10 +3790,10 @@
|
|
|
3828
3790
|
"fail": false,
|
|
3829
3791
|
"pending": false,
|
|
3830
3792
|
"context": null,
|
|
3831
|
-
"code": "
|
|
3793
|
+
"code": "assert.ok(NodePyATVKeys);",
|
|
3832
3794
|
"err": {},
|
|
3833
|
-
"uuid": "
|
|
3834
|
-
"parentUUID": "
|
|
3795
|
+
"uuid": "3239d6c7-1f71-4218-9fd7-a4795356e63e",
|
|
3796
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3835
3797
|
"isHook": false,
|
|
3836
3798
|
"skipped": false
|
|
3837
3799
|
},
|
|
@@ -3846,10 +3808,10 @@
|
|
|
3846
3808
|
"fail": false,
|
|
3847
3809
|
"pending": false,
|
|
3848
3810
|
"context": null,
|
|
3849
|
-
"code": "
|
|
3811
|
+
"code": "assert.ok(NodePyATVListenerState);",
|
|
3850
3812
|
"err": {},
|
|
3851
|
-
"uuid": "
|
|
3852
|
-
"parentUUID": "
|
|
3813
|
+
"uuid": "f1a23b8a-283f-4f8f-b64a-005da6eb6763",
|
|
3814
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3853
3815
|
"isHook": false,
|
|
3854
3816
|
"skipped": false
|
|
3855
3817
|
},
|
|
@@ -3864,25 +3826,25 @@
|
|
|
3864
3826
|
"fail": false,
|
|
3865
3827
|
"pending": false,
|
|
3866
3828
|
"context": null,
|
|
3867
|
-
"code": "
|
|
3829
|
+
"code": "assert.ok(NodePyATVPowerState);",
|
|
3868
3830
|
"err": {},
|
|
3869
|
-
"uuid": "
|
|
3870
|
-
"parentUUID": "
|
|
3831
|
+
"uuid": "443a9cf7-46a3-41fd-9106-4ce1e707e6aa",
|
|
3832
|
+
"parentUUID": "a0b54c3d-c46c-4d49-8eff-ad3833442407",
|
|
3871
3833
|
"isHook": false,
|
|
3872
3834
|
"skipped": false
|
|
3873
3835
|
}
|
|
3874
3836
|
],
|
|
3875
3837
|
"suites": [],
|
|
3876
3838
|
"passes": [
|
|
3877
|
-
"
|
|
3878
|
-
"
|
|
3879
|
-
"
|
|
3880
|
-
"
|
|
3881
|
-
"
|
|
3882
|
-
"
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3885
|
-
"
|
|
3839
|
+
"09973a79-7155-434f-b9bb-04669d0f8094",
|
|
3840
|
+
"f6f0f8de-e625-4d59-82ee-6b88f39108d5",
|
|
3841
|
+
"976885f7-1c8b-437d-9bbf-9fc6f229e096",
|
|
3842
|
+
"88905b6e-d56a-49e7-b96d-5639344674fa",
|
|
3843
|
+
"3cec1943-e19c-4db7-9a08-a503b1308a53",
|
|
3844
|
+
"0655d3ed-3d5b-42d2-8d5f-57799441b5cf",
|
|
3845
|
+
"3239d6c7-1f71-4218-9fd7-a4795356e63e",
|
|
3846
|
+
"f1a23b8a-283f-4f8f-b64a-005da6eb6763",
|
|
3847
|
+
"443a9cf7-46a3-41fd-9106-4ce1e707e6aa"
|
|
3886
3848
|
],
|
|
3887
3849
|
"failures": [],
|
|
3888
3850
|
"pending": [],
|
|
@@ -3903,7 +3865,7 @@
|
|
|
3903
3865
|
"_timeout": 2000
|
|
3904
3866
|
},
|
|
3905
3867
|
{
|
|
3906
|
-
"uuid": "
|
|
3868
|
+
"uuid": "9e12233c-a7a6-4ef1-8434-d9f9c4d150a0",
|
|
3907
3869
|
"title": "Tools",
|
|
3908
3870
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3909
3871
|
"file": "/test/tools.ts",
|
|
@@ -3912,7 +3874,7 @@
|
|
|
3912
3874
|
"tests": [],
|
|
3913
3875
|
"suites": [
|
|
3914
3876
|
{
|
|
3915
|
-
"uuid": "
|
|
3877
|
+
"uuid": "a535b40f-243e-450b-9377-65f7331601bc",
|
|
3916
3878
|
"title": "addRequestId() / removeRequestId()",
|
|
3917
3879
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3918
3880
|
"file": "/test/tools.ts",
|
|
@@ -3930,10 +3892,10 @@
|
|
|
3930
3892
|
"fail": false,
|
|
3931
3893
|
"pending": false,
|
|
3932
3894
|
"context": null,
|
|
3933
|
-
"code": "const id =
|
|
3895
|
+
"code": "const id = addRequestId();\nassert.strictEqual(typeof id, 'string');\nremoveRequestId(id);",
|
|
3934
3896
|
"err": {},
|
|
3935
|
-
"uuid": "
|
|
3936
|
-
"parentUUID": "
|
|
3897
|
+
"uuid": "d3cdb6ab-1440-4877-9227-bbfba0918318",
|
|
3898
|
+
"parentUUID": "a535b40f-243e-450b-9377-65f7331601bc",
|
|
3937
3899
|
"isHook": false,
|
|
3938
3900
|
"skipped": false
|
|
3939
3901
|
},
|
|
@@ -3948,18 +3910,18 @@
|
|
|
3948
3910
|
"fail": false,
|
|
3949
3911
|
"pending": false,
|
|
3950
3912
|
"context": null,
|
|
3951
|
-
"code": "
|
|
3913
|
+
"code": "removeRequestId('FOO');",
|
|
3952
3914
|
"err": {},
|
|
3953
|
-
"uuid": "
|
|
3954
|
-
"parentUUID": "
|
|
3915
|
+
"uuid": "fbea40a3-b408-45b4-a323-02dbe5738db8",
|
|
3916
|
+
"parentUUID": "a535b40f-243e-450b-9377-65f7331601bc",
|
|
3955
3917
|
"isHook": false,
|
|
3956
3918
|
"skipped": false
|
|
3957
3919
|
}
|
|
3958
3920
|
],
|
|
3959
3921
|
"suites": [],
|
|
3960
3922
|
"passes": [
|
|
3961
|
-
"
|
|
3962
|
-
"
|
|
3923
|
+
"d3cdb6ab-1440-4877-9227-bbfba0918318",
|
|
3924
|
+
"fbea40a3-b408-45b4-a323-02dbe5738db8"
|
|
3963
3925
|
],
|
|
3964
3926
|
"failures": [],
|
|
3965
3927
|
"pending": [],
|
|
@@ -3970,7 +3932,7 @@
|
|
|
3970
3932
|
"_timeout": 2000
|
|
3971
3933
|
},
|
|
3972
3934
|
{
|
|
3973
|
-
"uuid": "
|
|
3935
|
+
"uuid": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
3974
3936
|
"title": "debug()",
|
|
3975
3937
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
3976
3938
|
"file": "/test/tools.ts",
|
|
@@ -3988,10 +3950,10 @@
|
|
|
3988
3950
|
"fail": false,
|
|
3989
3951
|
"pending": false,
|
|
3990
3952
|
"context": null,
|
|
3991
|
-
"code": "
|
|
3953
|
+
"code": "debug('TEST', 'Hello World.', {});",
|
|
3992
3954
|
"err": {},
|
|
3993
|
-
"uuid": "
|
|
3994
|
-
"parentUUID": "
|
|
3955
|
+
"uuid": "66547de3-a9bb-4c1e-be6b-356b20b9e75b",
|
|
3956
|
+
"parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
3995
3957
|
"isHook": false,
|
|
3996
3958
|
"skipped": false
|
|
3997
3959
|
},
|
|
@@ -4006,10 +3968,10 @@
|
|
|
4006
3968
|
"fail": false,
|
|
4007
3969
|
"pending": false,
|
|
4008
3970
|
"context": null,
|
|
4009
|
-
"code": "
|
|
3971
|
+
"code": "debug('TEST', 'Hello World.', { debug: true });",
|
|
4010
3972
|
"err": {},
|
|
4011
|
-
"uuid": "
|
|
4012
|
-
"parentUUID": "
|
|
3973
|
+
"uuid": "79a04044-004b-414d-b426-38ef17da58d1",
|
|
3974
|
+
"parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
4013
3975
|
"isHook": false,
|
|
4014
3976
|
"skipped": false
|
|
4015
3977
|
},
|
|
@@ -4024,10 +3986,10 @@
|
|
|
4024
3986
|
"fail": false,
|
|
4025
3987
|
"pending": false,
|
|
4026
3988
|
"context": null,
|
|
4027
|
-
"code": "
|
|
3989
|
+
"code": "debug('TEST', 'Hello World.', {\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.ok(msg.includes('Hello World'));\n }\n});",
|
|
4028
3990
|
"err": {},
|
|
4029
|
-
"uuid": "
|
|
4030
|
-
"parentUUID": "
|
|
3991
|
+
"uuid": "a93a67d9-bff0-4f2d-ab38-c41ad08ee40a",
|
|
3992
|
+
"parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
4031
3993
|
"isHook": false,
|
|
4032
3994
|
"skipped": false
|
|
4033
3995
|
},
|
|
@@ -4042,10 +4004,10 @@
|
|
|
4042
4004
|
"fail": false,
|
|
4043
4005
|
"pending": false,
|
|
4044
4006
|
"context": null,
|
|
4045
|
-
"code": "
|
|
4007
|
+
"code": "debug('TEST', 'Hello World.', { noColors: true });",
|
|
4046
4008
|
"err": {},
|
|
4047
|
-
"uuid": "
|
|
4048
|
-
"parentUUID": "
|
|
4009
|
+
"uuid": "d4a2c5aa-7fea-4497-806e-2a41925ec750",
|
|
4010
|
+
"parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
4049
4011
|
"isHook": false,
|
|
4050
4012
|
"skipped": false
|
|
4051
4013
|
},
|
|
@@ -4053,39 +4015,39 @@
|
|
|
4053
4015
|
"title": "should work with custom logger and colors disabled",
|
|
4054
4016
|
"fullTitle": "Tools debug() should work with custom logger and colors disabled",
|
|
4055
4017
|
"timedOut": false,
|
|
4056
|
-
"duration":
|
|
4018
|
+
"duration": 0,
|
|
4057
4019
|
"state": "passed",
|
|
4058
4020
|
"speed": "fast",
|
|
4059
4021
|
"pass": true,
|
|
4060
4022
|
"fail": false,
|
|
4061
4023
|
"pending": false,
|
|
4062
4024
|
"context": null,
|
|
4063
|
-
"code": "
|
|
4025
|
+
"code": "debug('TEST', 'Hello World.', {\n noColors: true,\n debug: function (msg) {\n assert.strictEqual(this, null);\n assert.strictEqual(msg, '[node-pyatv][TEST] Hello World.');\n }\n});",
|
|
4064
4026
|
"err": {},
|
|
4065
|
-
"uuid": "
|
|
4066
|
-
"parentUUID": "
|
|
4027
|
+
"uuid": "4d20a3fa-62af-4f5e-9236-a52f612cebf0",
|
|
4028
|
+
"parentUUID": "4bc8c8ba-3abc-4152-9832-70fd997e13ac",
|
|
4067
4029
|
"isHook": false,
|
|
4068
4030
|
"skipped": false
|
|
4069
4031
|
}
|
|
4070
4032
|
],
|
|
4071
4033
|
"suites": [],
|
|
4072
4034
|
"passes": [
|
|
4073
|
-
"
|
|
4074
|
-
"
|
|
4075
|
-
"
|
|
4076
|
-
"
|
|
4077
|
-
"
|
|
4035
|
+
"66547de3-a9bb-4c1e-be6b-356b20b9e75b",
|
|
4036
|
+
"79a04044-004b-414d-b426-38ef17da58d1",
|
|
4037
|
+
"a93a67d9-bff0-4f2d-ab38-c41ad08ee40a",
|
|
4038
|
+
"d4a2c5aa-7fea-4497-806e-2a41925ec750",
|
|
4039
|
+
"4d20a3fa-62af-4f5e-9236-a52f612cebf0"
|
|
4078
4040
|
],
|
|
4079
4041
|
"failures": [],
|
|
4080
4042
|
"pending": [],
|
|
4081
4043
|
"skipped": [],
|
|
4082
|
-
"duration":
|
|
4044
|
+
"duration": 0,
|
|
4083
4045
|
"root": false,
|
|
4084
4046
|
"rootEmpty": false,
|
|
4085
4047
|
"_timeout": 2000
|
|
4086
4048
|
},
|
|
4087
4049
|
{
|
|
4088
|
-
"uuid": "
|
|
4050
|
+
"uuid": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
|
|
4089
4051
|
"title": "getExecutable()",
|
|
4090
4052
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4091
4053
|
"file": "/test/tools.ts",
|
|
@@ -4103,10 +4065,10 @@
|
|
|
4103
4065
|
"fail": false,
|
|
4104
4066
|
"pending": false,
|
|
4105
4067
|
"context": null,
|
|
4106
|
-
"code": "const result =
|
|
4068
|
+
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/1');",
|
|
4107
4069
|
"err": {},
|
|
4108
|
-
"uuid": "
|
|
4109
|
-
"parentUUID": "
|
|
4070
|
+
"uuid": "62ad12a9-8219-4b48-9a63-0f1a1ccccb65",
|
|
4071
|
+
"parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
|
|
4110
4072
|
"isHook": false,
|
|
4111
4073
|
"skipped": false
|
|
4112
4074
|
},
|
|
@@ -4121,10 +4083,10 @@
|
|
|
4121
4083
|
"fail": false,
|
|
4122
4084
|
"pending": false,
|
|
4123
4085
|
"context": null,
|
|
4124
|
-
"code": "const result =
|
|
4086
|
+
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp/1',\n atvscriptPath: '/tmp/2'\n});\nassert.strictEqual(result, '/tmp/2');",
|
|
4125
4087
|
"err": {},
|
|
4126
|
-
"uuid": "
|
|
4127
|
-
"parentUUID": "
|
|
4088
|
+
"uuid": "38a1eb90-93db-47b4-b365-adc2e414f3fd",
|
|
4089
|
+
"parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
|
|
4128
4090
|
"isHook": false,
|
|
4129
4091
|
"skipped": false
|
|
4130
4092
|
},
|
|
@@ -4139,10 +4101,10 @@
|
|
|
4139
4101
|
"fail": false,
|
|
4140
4102
|
"pending": false,
|
|
4141
4103
|
"context": null,
|
|
4142
|
-
"code": "const result =
|
|
4104
|
+
"code": "const result = getExecutable(NodePyATVExecutableType.atvremote, {\n atvscriptPath: '/tmp'\n});\nassert.strictEqual(result, 'atvremote');",
|
|
4143
4105
|
"err": {},
|
|
4144
|
-
"uuid": "
|
|
4145
|
-
"parentUUID": "
|
|
4106
|
+
"uuid": "dd76b2b0-587b-4b67-81b0-bfd00e0d26df",
|
|
4107
|
+
"parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
|
|
4146
4108
|
"isHook": false,
|
|
4147
4109
|
"skipped": false
|
|
4148
4110
|
},
|
|
@@ -4157,20 +4119,20 @@
|
|
|
4157
4119
|
"fail": false,
|
|
4158
4120
|
"pending": false,
|
|
4159
4121
|
"context": null,
|
|
4160
|
-
"code": "const result =
|
|
4122
|
+
"code": "const result = getExecutable(NodePyATVExecutableType.atvscript, {\n atvremotePath: '/tmp'\n});\nassert.strictEqual(result, 'atvscript');",
|
|
4161
4123
|
"err": {},
|
|
4162
|
-
"uuid": "
|
|
4163
|
-
"parentUUID": "
|
|
4124
|
+
"uuid": "a5706891-5829-41be-841f-44d1876595f7",
|
|
4125
|
+
"parentUUID": "4503bd8d-a0cb-4970-b190-4bf72c12ddac",
|
|
4164
4126
|
"isHook": false,
|
|
4165
4127
|
"skipped": false
|
|
4166
4128
|
}
|
|
4167
4129
|
],
|
|
4168
4130
|
"suites": [],
|
|
4169
4131
|
"passes": [
|
|
4170
|
-
"
|
|
4171
|
-
"
|
|
4172
|
-
"
|
|
4173
|
-
"
|
|
4132
|
+
"62ad12a9-8219-4b48-9a63-0f1a1ccccb65",
|
|
4133
|
+
"38a1eb90-93db-47b4-b365-adc2e414f3fd",
|
|
4134
|
+
"dd76b2b0-587b-4b67-81b0-bfd00e0d26df",
|
|
4135
|
+
"a5706891-5829-41be-841f-44d1876595f7"
|
|
4174
4136
|
],
|
|
4175
4137
|
"failures": [],
|
|
4176
4138
|
"pending": [],
|
|
@@ -4181,7 +4143,7 @@
|
|
|
4181
4143
|
"_timeout": 2000
|
|
4182
4144
|
},
|
|
4183
4145
|
{
|
|
4184
|
-
"uuid": "
|
|
4146
|
+
"uuid": "d6420e47-26a2-4a62-86a4-6630017b520b",
|
|
4185
4147
|
"title": "getParameters()",
|
|
4186
4148
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4187
4149
|
"file": "/test/tools.ts",
|
|
@@ -4192,17 +4154,17 @@
|
|
|
4192
4154
|
"title": "empty case",
|
|
4193
4155
|
"fullTitle": "Tools getParameters() empty case",
|
|
4194
4156
|
"timedOut": false,
|
|
4195
|
-
"duration":
|
|
4157
|
+
"duration": 0,
|
|
4196
4158
|
"state": "passed",
|
|
4197
4159
|
"speed": "fast",
|
|
4198
4160
|
"pass": true,
|
|
4199
4161
|
"fail": false,
|
|
4200
4162
|
"pending": false,
|
|
4201
4163
|
"context": null,
|
|
4202
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
4164
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters();\n assert.deepEqual(result, []);\n});",
|
|
4203
4165
|
"err": {},
|
|
4204
|
-
"uuid": "
|
|
4205
|
-
"parentUUID": "
|
|
4166
|
+
"uuid": "3f98fac0-89fa-4c56-aec7-88eb6b9a698d",
|
|
4167
|
+
"parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
|
|
4206
4168
|
"isHook": false,
|
|
4207
4169
|
"skipped": false
|
|
4208
4170
|
},
|
|
@@ -4217,10 +4179,10 @@
|
|
|
4217
4179
|
"fail": false,
|
|
4218
4180
|
"pending": false,
|
|
4219
4181
|
"context": null,
|
|
4220
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
4182
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n host: '192.168.178.2'\n });\n assert.deepEqual(result, ['-s', '192.168.178.2']);\n});",
|
|
4221
4183
|
"err": {},
|
|
4222
|
-
"uuid": "
|
|
4223
|
-
"parentUUID": "
|
|
4184
|
+
"uuid": "1c6f02cd-4e13-4820-9325-febcef3c53ca",
|
|
4185
|
+
"parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
|
|
4224
4186
|
"isHook": false,
|
|
4225
4187
|
"skipped": false
|
|
4226
4188
|
},
|
|
@@ -4228,37 +4190,37 @@
|
|
|
4228
4190
|
"title": "full case",
|
|
4229
4191
|
"fullTitle": "Tools getParameters() full case",
|
|
4230
4192
|
"timedOut": false,
|
|
4231
|
-
"duration":
|
|
4193
|
+
"duration": 0,
|
|
4232
4194
|
"state": "passed",
|
|
4233
4195
|
"speed": "fast",
|
|
4234
4196
|
"pass": true,
|
|
4235
4197
|
"fail": false,
|
|
4236
4198
|
"pending": false,
|
|
4237
4199
|
"context": null,
|
|
4238
|
-
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield
|
|
4200
|
+
"code": "return __awaiter(this, void 0, void 0, function* () {\n const result = yield getParamters({\n hosts: ['192.168.178.2', '192.168.178.3'],\n id: '****',\n protocol: NodePyATVProtocol.mrp,\n dmapCredentials: '****',\n mrpCredentials: '****',\n airplayCredentials: '****',\n companionCredentials: '1234',\n raopCredentials: '::foo:'\n });\n assert.deepEqual(result, [\n '-s', '192.168.178.2,192.168.178.3',\n '-i', '****',\n '--protocol', 'mrp',\n '--dmap-credentials', '****',\n '--mrp-credentials', '****',\n '--airplay-credentials', '****',\n '--companion-credentials', '1234',\n '--raop-credentials', '::foo:'\n ]);\n});",
|
|
4239
4201
|
"err": {},
|
|
4240
|
-
"uuid": "
|
|
4241
|
-
"parentUUID": "
|
|
4202
|
+
"uuid": "fe4690ce-7c02-4470-b3d0-470631361af9",
|
|
4203
|
+
"parentUUID": "d6420e47-26a2-4a62-86a4-6630017b520b",
|
|
4242
4204
|
"isHook": false,
|
|
4243
4205
|
"skipped": false
|
|
4244
4206
|
}
|
|
4245
4207
|
],
|
|
4246
4208
|
"suites": [],
|
|
4247
4209
|
"passes": [
|
|
4248
|
-
"
|
|
4249
|
-
"
|
|
4250
|
-
"
|
|
4210
|
+
"3f98fac0-89fa-4c56-aec7-88eb6b9a698d",
|
|
4211
|
+
"1c6f02cd-4e13-4820-9325-febcef3c53ca",
|
|
4212
|
+
"fe4690ce-7c02-4470-b3d0-470631361af9"
|
|
4251
4213
|
],
|
|
4252
4214
|
"failures": [],
|
|
4253
4215
|
"pending": [],
|
|
4254
4216
|
"skipped": [],
|
|
4255
|
-
"duration":
|
|
4217
|
+
"duration": 0,
|
|
4256
4218
|
"root": false,
|
|
4257
4219
|
"rootEmpty": false,
|
|
4258
4220
|
"_timeout": 2000
|
|
4259
4221
|
},
|
|
4260
4222
|
{
|
|
4261
|
-
"uuid": "
|
|
4223
|
+
"uuid": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4262
4224
|
"title": "parseState()",
|
|
4263
4225
|
"fullFile": "/home/runner/work/node-pyatv/node-pyatv/test/tools.ts",
|
|
4264
4226
|
"file": "/test/tools.ts",
|
|
@@ -4269,17 +4231,17 @@
|
|
|
4269
4231
|
"title": "should work with empty data",
|
|
4270
4232
|
"fullTitle": "Tools parseState() should work with empty data",
|
|
4271
4233
|
"timedOut": false,
|
|
4272
|
-
"duration":
|
|
4234
|
+
"duration": 1,
|
|
4273
4235
|
"state": "passed",
|
|
4274
4236
|
"speed": "fast",
|
|
4275
4237
|
"pass": true,
|
|
4276
4238
|
"fail": false,
|
|
4277
4239
|
"pending": false,
|
|
4278
4240
|
"context": null,
|
|
4279
|
-
"code": "const input = {};\nconst result =
|
|
4241
|
+
"code": "const input = {};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4280
4242
|
"err": {},
|
|
4281
|
-
"uuid": "
|
|
4282
|
-
"parentUUID": "
|
|
4243
|
+
"uuid": "345b3ece-0553-43fa-99cc-e87141b90f67",
|
|
4244
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4283
4245
|
"isHook": false,
|
|
4284
4246
|
"skipped": false
|
|
4285
4247
|
},
|
|
@@ -4294,10 +4256,10 @@
|
|
|
4294
4256
|
"fail": false,
|
|
4295
4257
|
"pending": false,
|
|
4296
4258
|
"context": null,
|
|
4297
|
-
"code": "// @ts-ignore\nconst result =
|
|
4259
|
+
"code": "// @ts-ignore\nconst result = parseState(null, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4298
4260
|
"err": {},
|
|
4299
|
-
"uuid": "
|
|
4300
|
-
"parentUUID": "
|
|
4261
|
+
"uuid": "a6484bbc-1a71-4a6a-b4a8-cefdddaa1e59",
|
|
4262
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4301
4263
|
"isHook": false,
|
|
4302
4264
|
"skipped": false
|
|
4303
4265
|
},
|
|
@@ -4312,10 +4274,10 @@
|
|
|
4312
4274
|
"fail": false,
|
|
4313
4275
|
"pending": false,
|
|
4314
4276
|
"context": null,
|
|
4315
|
-
"code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result =
|
|
4277
|
+
"code": "const input = {\n result: 'success',\n datetime: '2020-11-07T22:38:43.608030+01:00',\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n media_type: 'video',\n device_state: 'playing',\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n total_time: 8097,\n position: 27,\n shuffle: 'off',\n repeat: 'off',\n app: 'Disney+',\n app_id: 'com.disney.disneyplus',\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: new Date('2020-11-07T22:38:43.608030+01:00'),\n hash: '100e0ab6-6ff5-4199-9c04-a7107ff78712',\n mediaType: NodePyATVMediaType.video,\n deviceState: NodePyATVDeviceState.playing,\n title: 'Solo: A Star Wars Story',\n artist: null,\n album: null,\n genre: null,\n totalTime: 8097,\n position: 27,\n shuffle: NodePyATVShuffleState.off,\n repeat: NodePyATVRepeatState.off,\n app: 'Disney+',\n appId: 'com.disney.disneyplus',\n powerState: null\n});",
|
|
4316
4278
|
"err": {},
|
|
4317
|
-
"uuid": "
|
|
4318
|
-
"parentUUID": "
|
|
4279
|
+
"uuid": "5f2228cf-8505-40f5-a5eb-2ae75f2e19b0",
|
|
4280
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4319
4281
|
"isHook": false,
|
|
4320
4282
|
"skipped": false
|
|
4321
4283
|
},
|
|
@@ -4330,10 +4292,10 @@
|
|
|
4330
4292
|
"fail": false,
|
|
4331
4293
|
"pending": false,
|
|
4332
4294
|
"context": null,
|
|
4333
|
-
"code": "const input = {\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n};\
|
|
4295
|
+
"code": "const input = {\n result: 'failure',\n datetime: '2021-11-24T21:13:36.424576+03:00',\n exception: 'invalid credentials: 321',\n stacktrace: 'Traceback (most recent call last):\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 302, in appstart\\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\\\", line 196, in _handle_command\\n atv = await connect(config, loop, protocol=Protocol.MRP)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\\\", line 96, in connect\\n for setup_data in proto_methods.setup(\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 192, in setup\\n stream = AirPlayStream(config, service)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\\\", line 79, in __init__\\n self._credentials: HapCredentials = parse_credentials(self.service.credentials)\\n File \\\"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\\\", line 139, in parse_credentials\\n raise exceptions.InvalidCredentialsError(\\\"invalid credentials: \\\" + detail_string)\\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\\n'\n};\nassert.throws(() => {\n parseState(input, '', {});\n}, /Got pyatv Error: invalid credentials: 321/);",
|
|
4334
4296
|
"err": {},
|
|
4335
|
-
"uuid": "
|
|
4336
|
-
"parentUUID": "
|
|
4297
|
+
"uuid": "63228bef-b169-44b3-873d-b3fec2561813",
|
|
4298
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4337
4299
|
"isHook": false,
|
|
4338
4300
|
"skipped": false
|
|
4339
4301
|
},
|
|
@@ -4348,10 +4310,10 @@
|
|
|
4348
4310
|
"fail": false,
|
|
4349
4311
|
"pending": false,
|
|
4350
4312
|
"context": null,
|
|
4351
|
-
"code": "const input = { datetime: 'today' };\nconst result =
|
|
4313
|
+
"code": "const input = { datetime: 'today' };\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4352
4314
|
"err": {},
|
|
4353
|
-
"uuid": "
|
|
4354
|
-
"parentUUID": "
|
|
4315
|
+
"uuid": "56d0dc3f-d29d-4e22-aae9-256d99f06570",
|
|
4316
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4355
4317
|
"isHook": false,
|
|
4356
4318
|
"skipped": false
|
|
4357
4319
|
},
|
|
@@ -4366,10 +4328,10 @@
|
|
|
4366
4328
|
"fail": false,
|
|
4367
4329
|
"pending": false,
|
|
4368
4330
|
"context": null,
|
|
4369
|
-
"code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result =
|
|
4331
|
+
"code": "const input = {\n result: 'success',\n datetime: true,\n hash: 1337,\n media_type: false,\n device_state: 43,\n title: undefined,\n artist: 90,\n album: Infinity,\n genre: Math.PI,\n total_time: '23min',\n position: '0:30.123',\n shuffle: false,\n repeat: true,\n app: 0,\n app_id: 891645381647289,\n powerState: null\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4370
4332
|
"err": {},
|
|
4371
|
-
"uuid": "
|
|
4372
|
-
"parentUUID": "
|
|
4333
|
+
"uuid": "0c4d33b1-6a49-44c2-9791-e2afe23f57ec",
|
|
4334
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4373
4335
|
"isHook": false,
|
|
4374
4336
|
"skipped": false
|
|
4375
4337
|
},
|
|
@@ -4384,28 +4346,28 @@
|
|
|
4384
4346
|
"fail": false,
|
|
4385
4347
|
"pending": false,
|
|
4386
4348
|
"context": null,
|
|
4387
|
-
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result =
|
|
4349
|
+
"code": "const input = {\n media_type: '3d-experience',\n device_state: 'initiating',\n shuffle: 'everything',\n repeat: 'nothing'\n};\nconst result = parseState(input, '', {});\nassert.deepStrictEqual(result, {\n dateTime: null,\n hash: null,\n mediaType: null,\n deviceState: null,\n title: null,\n artist: null,\n album: null,\n genre: null,\n totalTime: null,\n position: null,\n shuffle: null,\n repeat: null,\n app: null,\n appId: null,\n powerState: null\n});",
|
|
4388
4350
|
"err": {},
|
|
4389
|
-
"uuid": "
|
|
4390
|
-
"parentUUID": "
|
|
4351
|
+
"uuid": "c7b211a8-c984-479e-a941-1ab906525cfd",
|
|
4352
|
+
"parentUUID": "7d2bcbf6-10ce-4a3e-a616-389db80c8228",
|
|
4391
4353
|
"isHook": false,
|
|
4392
4354
|
"skipped": false
|
|
4393
4355
|
}
|
|
4394
4356
|
],
|
|
4395
4357
|
"suites": [],
|
|
4396
4358
|
"passes": [
|
|
4397
|
-
"
|
|
4398
|
-
"
|
|
4399
|
-
"
|
|
4400
|
-
"
|
|
4401
|
-
"
|
|
4402
|
-
"
|
|
4403
|
-
"
|
|
4359
|
+
"345b3ece-0553-43fa-99cc-e87141b90f67",
|
|
4360
|
+
"a6484bbc-1a71-4a6a-b4a8-cefdddaa1e59",
|
|
4361
|
+
"5f2228cf-8505-40f5-a5eb-2ae75f2e19b0",
|
|
4362
|
+
"63228bef-b169-44b3-873d-b3fec2561813",
|
|
4363
|
+
"56d0dc3f-d29d-4e22-aae9-256d99f06570",
|
|
4364
|
+
"0c4d33b1-6a49-44c2-9791-e2afe23f57ec",
|
|
4365
|
+
"c7b211a8-c984-479e-a941-1ab906525cfd"
|
|
4404
4366
|
],
|
|
4405
4367
|
"failures": [],
|
|
4406
4368
|
"pending": [],
|
|
4407
4369
|
"skipped": [],
|
|
4408
|
-
"duration":
|
|
4370
|
+
"duration": 1,
|
|
4409
4371
|
"root": false,
|
|
4410
4372
|
"rootEmpty": false,
|
|
4411
4373
|
"_timeout": 2000
|