Skip to content

feat: ✨ Added coupons #84

feat: ✨ Added coupons

feat: ✨ Added coupons #84

Triggered via pull request July 25, 2024 09:39
Status Failure
Total duration 3m 39s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
refresh › should refresh the coupon code: test/CouponCode.spec.ts#L61
expect(received).toBe(expected) // Object.is equality Expected: true Received: false at Object.<anonymous> (test/CouponCode.spec.ts:61:29)
getOrder › should return order when coupon code is used: test/CouponCode.spec.ts#L87
expect(received).toBeInstanceOf(expected) Expected constructor: Order Received value has no prototype Received value: null at Object.<anonymous> (test/CouponCode.spec.ts:87:19)
cancel › should throw an error when no polling: test/Order.spec.ts#L107
expect(received).rejects.toThrow() Received promise resolved instead of rejected Resolved to value: undefined at expect (node_modules/expect/build/index.js:113:15) at Object.<anonymous> (test/Order.spec.ts:107:11)
createBatch › should create an batch with a ready date: test/PrintOne.spec.ts#L1447
expect(received).toEqual(expected) // deep equality Expected: 0 Received: 3 at Object.<anonymous> (test/PrintOne.spec.ts:1447:38)
createBatch › should create an batch that is ready: test/PrintOne.spec.ts#L1467
expect(received).toBeBefore() Expected date to be before 2024-07-25T09:43:00.251Z but received: 2024-07-31T00:00:00.000Z at Object.<anonymous> (test/PrintOne.spec.ts:1467:28)
update › ready › should update the batch to not ready: test/Batch.spec.ts#L252
expect(received).toBeUndefined() Received: 2024-07-31T00:00:00.000Z at Object.<anonymous> (test/Batch.spec.ts:252:30)
Test
Process completed with exit code 1.
Test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/