forked from CalloraOrg/Callora-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest_billing_out.txt
More file actions
41 lines (32 loc) · 1.46 KB
/
Copy pathjest_billing_out.txt
File metadata and controls
41 lines (32 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FAIL tests/integration/billing.test.ts
BillingService - Integration Tests
√ successfully processes new billing request (194 ms)
√ prevents double charge on duplicate request_id (52 ms)
× rolls back transaction when Soroban fails (47 ms)
√ handles concurrent requests with same request_id (94 ms)
√ getByRequestId returns existing usage event (40 ms)
√ getByRequestId returns null for non-existent request (11 ms)
● BillingService - Integration Tests › rolls back transaction when Soroban fails
assert.strictEqual(received, expected)
Expected value to strictly be equal to:
"0"
Received:
"1"
Difference:
- Expected
+ Received
- 0
+ 1
[0m [90m 189 |[39m [request[33m.[39mrequestId]
[90m 190 |[39m )[33m;[39m
[31m[1m>[22m[39m[90m 191 |[39m assert[33m.[39mequal([33mString[39m(dbResult[33m.[39mrows[[35m0[39m][33m.[39mcount)[33m,[39m [32m'0'[39m)[33m;[39m
[90m |[39m [31m[1m^[22m[39m
[90m 192 |[39m } [36mfinally[39m {
[90m 193 |[39m [36mawait[39m testDb[33m.[39mend()[33m;[39m
[90m 194 |[39m }[0m
at Object.<anonymous> (tests/integration/billing.test.ts:191:14)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 5 passed, 6 total
Snapshots: 0 total
Time: 1.959 s, estimated 2 s
Ran all test suites matching tests/integration/billing.test.ts.