Skip to content

feat: ✨ Added coupons #83

feat: ✨ Added coupons

feat: ✨ Added coupons #83

Triggered via pull request July 25, 2024 08:57
Status Failure
Total duration 3m 37s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 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:01:20.429Z 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/