fix test build error #13
Annotations
3 errors
src/component/events.test.ts > events > should process a small number of events in one go:
src/component/events.test.ts#L209
AssertionError: expected "spy" to be called with arguments: [ [ { …(3) }, { …(3) } ], …(2) ]
Received:
1st spy call:
Array [
Array [
Object {
"_creationTime": 1729818780995.002,
"_id": "10002;events",
"payload": "{\"event\":\"test-event-1\"}",
},
Object {
"_creationTime": 1729818780995.003,
"_id": "10003;events",
"payload": "{\"event\":\"test-event-2\"}",
},
],
"test-sdk-key",
- undefined,
+ Object {},
]
Number of calls: 1
❯ src/component/events.test.ts:209:24
|
src/component/events.test.ts > events > should process a large number of events in multiple calls:
src/component/events.test.ts#L240
AssertionError: expected 1st "spy" call to have been called with [ [ { …(3) }, { …(3) }, …(98) ], …(2) ]
- Expected
+ Received
Array [
Array [
Object {
"_creationTime": 1729818781016.002,
"_id": "10002;events",
"payload": "{\"event\":\"test-event-0\"}",
},
Object {
"_creationTime": 1729818781016.003,
"_id": "10003;events",
"payload": "{\"event\":\"test-event-1\"}",
},
Object {
"_creationTime": 1729818781016.004,
"_id": "10004;events",
"payload": "{\"event\":\"test-event-2\"}",
},
Object {
"_creationTime": 1729818781016.005,
"_id": "10005;events",
"payload": "{\"event\":\"test-event-3\"}",
},
Object {
"_creationTime": 1729818781016.0059,
"_id": "10006;events",
"payload": "{\"event\":\"test-event-4\"}",
},
Object {
"_creationTime": 1729818781016.0068,
"_id": "10007;events",
"payload": "{\"event\":\"test-event-5\"}",
},
Object {
"_creationTime": 1729818781016.0078,
"_id": "10008;events",
"payload": "{\"event\":\"test-event-6\"}",
},
Object {
"_creationTime": 1729818781016.0088,
"_id": "10009;events",
"payload": "{\"event\":\"test-event-7\"}",
},
Object {
"_creationTime": 1729818781016.0098,
"_id": "10010;events",
"payload": "{\"event\":\"test-event-8\"}",
},
Object {
"_creationTime": 1729818781016.0107,
"_id": "10011;events",
"payload": "{\"event\":\"test-event-9\"}",
},
Object {
"_creationTime": 1729818781016.0117,
"_id": "10012;events",
"payload": "{\"event\":\"test-event-10\"}",
},
Object {
"_creationTime": 1729818781016.0127,
"_id": "10013;events",
"payload": "{\"event\":\"test-event-11\"}",
},
Object {
"_creationTime": 1729818781016.0137,
"_id": "10014;events",
"payload": "{\"event\":\"test-event-12\"}",
},
Object {
"_creationTime": 1729818781016.0146,
"_id": "10015;events",
"payload": "{\"event\":\"test-event-13\"}",
},
Object {
"_creationTime": 1729818781016.0156,
"_id": "10016;events",
"payload": "{\"event\":\"test-event-14\"}",
},
Object {
"_creationTime": 1729818781016.0166,
"_id": "10017;events",
"payload": "{\"event\":\"test-event-15\"}",
},
Object {
"_creationTime": 1729818781016.0176,
"_id": "10018;events",
"payload": "{\"event\":\"test-event-16\"}",
},
Object {
"_creationTime": 1729818781016.0186,
"_id": "10019;events",
"payload": "{\"event\":\"test-event-17\"}",
},
Object {
"_creationTime": 1729818781016.0195,
"_id": "10020;events",
"payload": "{\"event\":\"test-event-18\"}",
},
Object {
"_creationTime": 1729818781016.0205,
"_id": "10021;events",
"payload": "{\"event\":\"test-event-19\"}",
},
Object {
"_creationTime": 1729818781016.0215,
"_id": "10022;events",
"payload": "{\"event\":\"test-event-20\"}",
},
Object {
"_creationTime": 1729818781016.0225,
"_id": "10023;events",
"payload": "{\"event\":\"test-event-21\"}",
},
Object {
"_creationTime": 1729818781016.0234,
"_id": "10024;events",
"payload": "{\"event\":\"test-event-22\"}",
},
Object {
"_creationTime": 1729818781016.0244,
"_id": "10025;events",
"payload": "{\"event\":\"test-event-23\"}",
},
Object {
"_creationTime": 1729818781016.0254,
"_id": "10026;events",
"payload": "{\"event\":\"test-event-24\"}",
},
Object {
"_creationTime": 1729818781016.0264,
"_id": "10027;events",
"payload": "{\"event\":\"test-event-25\"}",
},
O
|
build
Process completed with exit code 1.
|