refactor: create mock data utilities #1235
Annotations
6 errors and 1 warning
Server - Run unit tests:
apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L20
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ]
(9 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"duration": 10,
"id": "1",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 20,
"timeStart": 10,
},
Object {
"duration": 10,
"id": "2",
"linkStart": "1",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 30,
"timeStart": 20,
},
Object {
"id": "3",
},
Object {
"duration": 10,
"id": "4",
"linkStart": null,
- "revision": 2,
+ "revision": NaN,
"timeEnd": 40,
"timeStart": 30,
},
Object {
"duration": 10,
"id": "5",
"linkStart": "4",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 50,
"timeStart": 40,
},
]
❯ src/services/rundown-service/__tests__/delayUtils.test.ts:20:28
|
Server - Run unit tests:
apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L40
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ]
(9 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"duration": 10,
"id": "1",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 10,
"timeStart": 0,
},
Object {
"duration": 10,
"id": "2",
"linkStart": null,
- "revision": 2,
+ "revision": NaN,
"timeEnd": 10,
"timeStart": 0,
},
Object {
"id": "3",
},
Object {
"duration": 10,
"id": "4",
"linkStart": null,
- "revision": 2,
+ "revision": NaN,
"timeEnd": 20,
"timeStart": 10,
},
Object {
"duration": 10,
"id": "5",
"linkStart": "4",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 30,
"timeStart": 20,
},
]
❯ src/services/rundown-service/__tests__/delayUtils.test.ts:40:28
|
Server - Run unit tests:
apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L70
AssertionError: expected [ { type: 'event', …(7) }, …(1) ] to match object [ …(2) ]
(3 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"duration": 100,
"id": "1",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 100,
"timeStart": 0,
"type": "event",
},
Object {
"duration": 50,
"id": "2",
"linkStart": null,
- "revision": 2,
+ "revision": NaN,
"timeEnd": 100,
"timeStart": 50,
"type": "event",
},
]
❯ src/services/rundown-service/__tests__/delayUtils.test.ts:70:28
|
Server - Run unit tests:
apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L151
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ]
(13 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"duration": 100,
"id": "1",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 200,
"timeStart": 100,
},
Object {
"duration": 50,
"id": "2",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 250,
"timeStart": 200,
},
Object {
"duration": 50,
"gap": 0,
"id": "3",
- "revision": 2,
+ "revision": NaN,
"timeEnd": 300,
"timeStart": 250,
},
Object {
"duration": 50,
"id": "4",
- "revision": 1,
"timeEnd": 350,
"timeStart": 300,
},
Object {
"duration": 50,
"id": "5",
"linkStart": "4",
- "revision": 1,
"timeEnd": 400,
"timeStart": 350,
},
]
❯ src/services/rundown-service/__tests__/delayUtils.test.ts:151:28
|
Server - Run unit tests:
apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L187
AssertionError: expected [ { type: 'event', …(9) }, …(1) ] to match object [ Array(2) ]
(13 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"id": "1",
- "revision": 2,
+ "revision": NaN,
"timeStart": 54000000,
},
Object {
"id": "2",
- "revision": 2,
+ "revision": NaN,
"timeStart": 57600000,
},
]
❯ src/services/rundown-service/__tests__/delayUtils.test.ts:187:28
|
Server - Run unit tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading