Skip to content

Fix broken embedding ETag #314

Fix broken embedding ETag

Fix broken embedding ETag #314

GitHub Actions / jest-github-action failed Dec 14, 2023 in 0s

Jest tests failed

Failed tests: 1/465. Failed suites: 1/103.

Details

  ● Handle work › generates ETag successfully

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    - Expected
    + Received

      Object {
    -   "ETag": "etag-of-the-work-request",
    +   "body": undefined,
        "experimentId": "experi-mentid-11111111-1111111-11111",
    -   "uuid": "someuuid-asd-asd-asdddasa",
    +   "requestProps": undefined,
      },

    Number of calls: 1

      25 |     generateETag.mockResolvedValue('new-etag');
      26 |     await handleWorkRequest(authJWT, data);
    > 27 |     expect(generateETag).toHaveBeenCalledWith(data);
         |                          ^
      28 |   });
      29 |
      30 |   it('handles existing work results', async () => {

      at Object.<anonymous> (tests/api.v2/events/handleWorkRequest.test.js:27:26)
          at runMicrotasks (<anonymous>)

Annotations

Check failure on line 24 in tests/api.v2/events/handleWorkRequest.test.js

See this annotation in the file changed.

@github-actions github-actions / jest-github-action

Handle work > generates ETag successfully

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

  Object {
-   "ETag": "etag-of-the-work-request",
+   "body": undefined,
    "experimentId": "experi-mentid-11111111-1111111-11111",
-   "uuid": "someuuid-asd-asd-asdddasa",
+   "requestProps": undefined,
  },

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/api/api/tests/api.v2/events/handleWorkRequest.test.js:27:26)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)