forked from Chronopay-Org/ChronoPay-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.json
More file actions
1 lines (1 loc) · 7.6 KB
/
Copy pathjest.json
File metadata and controls
1 lines (1 loc) · 7.6 KB
1
{"numFailedTestSuites":1,"numFailedTests":1,"numPassedTestSuites":0,"numPassedTests":3,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":4,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1774449498483,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":["Idempotency Middleware"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Idempotency Middleware should call next() normally if no Idempotency-Key is provided","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should call next() normally if no Idempotency-Key is provided"},{"ancestorTitles":["Idempotency Middleware"],"duration":3,"failureDetails":[{}],"failureMessages":["Error: expect(received).toHaveBeenCalledWith(...expected)\n\nMatcher error: received value must be a mock or spy function\n\nReceived has type: function\nReceived has value: [Function anonymous]\n at Object.<anonymous> (C:\\Users\\DELL\\Desktop\\drips-3\\ChronoPay-Backend\\src\\__tests__\\idempotency.test.ts:65:31)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)"],"fullName":"Idempotency Middleware should handle cache miss and save later when res.json is called","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"should handle cache miss and save later when res.json is called"},{"ancestorTitles":["Idempotency Middleware"],"duration":76,"failureDetails":[],"failureMessages":[],"fullName":"Idempotency Middleware should return 422 if same key is used with a different payload","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should return 422 if same key is used with a different payload"},{"ancestorTitles":["Idempotency Middleware"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"Idempotency Middleware should return 409 if a request is actively processing","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should return 409 if a request is actively processing"}],"endTime":1774449505066,"message":" ● Idempotency Middleware › should handle cache miss and save later when res.json is called\n\n expect(received).toHaveBeenCalledWith(...expected)\n\n Matcher error: received value must be a mock or spy function\n\n Received has type: function\n Received has value: [Function anonymous]\n\n \u001b[0m \u001b[90m 63 |\u001b[39m (mockResponse \u001b[36mas\u001b[39m \u001b[33mResponse\u001b[39m)\u001b[33m.\u001b[39mjson(resPayload)\u001b[33m;\u001b[39m\n \u001b[90m 64 |\u001b[39m \n \u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 65 |\u001b[39m expect(mockResponse\u001b[33m.\u001b[39mjson)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(resPayload)\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 66 |\u001b[39m \n \u001b[90m 67 |\u001b[39m \u001b[90m// Wait a tick for async cache set to resolve inside res.json wrapper\u001b[39m\n \u001b[90m 68 |\u001b[39m \u001b[36mawait\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mPromise\u001b[39m(resolve \u001b[33m=>\u001b[39m setTimeout(resolve\u001b[33m,\u001b[39m \u001b[35m50\u001b[39m))\u001b[33m;\u001b[39m\u001b[0m\n\n at Object.<anonymous> (src/__tests__/idempotency.test.ts:65:31)\n","name":"C:\\Users\\DELL\\Desktop\\drips-3\\ChronoPay-Backend\\src\\__tests__\\idempotency.test.ts","startTime":1774449499092,"status":"failed","summary":""}],"wasInterrupted":false}