Skip to content

feat: ✨ Added coupons #86

feat: ✨ Added coupons

feat: ✨ Added coupons #86

Re-run triggered July 25, 2024 10:05
Status Failure
Total duration 3m 24s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 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)
getOrders › should return a order with all fields: test/PrintOne.spec.ts#L989
expect(received).toEqual(expected) // deep equality Expected: undefined Received: {"address": "Test 1", "city": "Test", "country": "NL", "name": "Test", "postalCode": "1234 AB"} at Object.<anonymous> (test/PrintOne.spec.ts:989:26)
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-25T10:08:53.066Z but received: 2024-07-31T00:00:00.000Z at Object.<anonymous> (test/PrintOne.spec.ts:1467:28)
getCoupon › should throw an error when the coupon does not exist: src/HttpHandler.ts#L72
expect(received).rejects.toThrow(expected) Expected pattern: /not found/ Received message: "Internal server error" 70 | 71 | if (res.status >= 400) { > 72 | throw new PrintOneError( | ^ 73 | res.data.statusCode ?? res.status, 74 | res.data.message, 75 | ); at AxiosHTTPHandler.handleErrors (src/HttpHandler.ts:72:13) at AxiosHTTPHandler.handleErrors [as GET] (src/AxiosHttpHandler.ts:43:10) at PrintOne.getCoupon (src/PrintOne.ts:578:18) at Object.<anonymous> (test/PrintOne.spec.ts:2041:5) at Object.toThrow (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (test/PrintOne.spec.ts:2041:35)
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/