Better roll #531
test.yml
on: pull_request
unit-test
1m 14s
e2e-test
3m 22s
Annotations
12 errors
unit-test:
apps/server/src/services/runtime-service/RuntimeService.ts#L13
'filterPlayable' is defined but never used. Allowed unused vars must match /^_/u
|
unit-test
Process completed with exit code 1.
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should roll to the day after if timer is at 100:
apps/server/src/services/__tests__/rollUtils.test.ts#L67
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '1', …(3) }, …(2) }
- Expected
+ Received
Object {
- "event": Object {
- "id": "1",
- "isPublic": false,
- "timeEnd": 10,
- "timeStart": 5,
- },
- "index": 0,
- "isPending": true,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:67:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should be waiting to start if timer is at 0:
apps/server/src/services/__tests__/rollUtils.test.ts#L79
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '1', …(3) }, …(2) }
- Expected
+ Received
Object {
- "event": Object {
- "id": "1",
- "isPublic": false,
- "timeEnd": 10,
- "timeStart": 5,
- },
- "index": 0,
- "isPending": true,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:79:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the first event if timer is at 5:
apps/server/src/services/__tests__/rollUtils.test.ts#L90
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '1', …(3) }, index: +0 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "1",
- "isPublic": false,
- "timeEnd": 10,
- "timeStart": 5,
- },
- "index": 0,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:90:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the second event if timer is at 15:
apps/server/src/services/__tests__/rollUtils.test.ts#L101
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '2', …(3) }, index: 1 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "2",
- "isPublic": false,
- "timeEnd": 20,
- "timeStart": 10,
- },
- "index": 1,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:101:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the third event if timer is at 10:
apps/server/src/services/__tests__/rollUtils.test.ts#L112
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '3', …(3) }, index: 2 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "3",
- "isPublic": false,
- "timeEnd": 30,
- "timeStart": 20,
- },
- "index": 2,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:112:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the fifth event if timer is at 49:
apps/server/src/services/__tests__/rollUtils.test.ts#L123
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '5', …(3) }, index: 4 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "5",
- "isPublic": true,
- "timeEnd": 50,
- "timeStart": 40,
- },
- "index": 4,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:123:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the seventh event if timer is at 63:
apps/server/src/services/__tests__/rollUtils.test.ts#L134
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '7', …(3) }, index: 6 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "7",
- "isPublic": true,
- "timeEnd": 70,
- "timeStart": 60,
- },
- "index": 6,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:134:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() > should start the eight event if timer is at 75:
apps/server/src/services/__tests__/rollUtils.test.ts#L145
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '8', …(3) }, index: 7 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "8",
- "isPublic": false,
- "timeEnd": 80,
- "timeStart": 70,
- },
- "index": 7,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:145:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() handle edge cases with midnight > should find an event that crosses midnight:
apps/server/src/services/__tests__/rollUtils.test.ts#L190
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '2', …(3) }, index: 2 }
- Expected
+ Received
Object {
- "event": Object {
- "id": "2",
- "isPublic": true,
- "timeEnd": 3600000,
- "timeStart": 79200000,
- },
- "index": 2,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:190:19
|
src/services/__tests__/rollUtils.test.ts > loadRoll() handle edge cases with midnight > should not skip to the second day:
apps/server/src/services/__tests__/rollUtils.test.ts#L226
AssertionError: expected { event: null, index: null } to strictly equal { event: { id: '0', …(2) }, …(2) }
- Expected
+ Received
Object {
- "event": Object {
- "id": "0",
- "timeEnd": 79200000,
- "timeStart": 75600000,
- },
- "index": 0,
- "isPending": true,
+ "event": null,
+ "index": null,
}
❯ src/services/__tests__/rollUtils.test.ts:226:19
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
automated-screenshots
Expired
|
384 KB |
|
playwright-report
Expired
|
200 KB |
|