Skip to content

Add begin sample file upload endpoint, decouple it from create sample…

Sign in for the full log view
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / jest-github-action failed Oct 5, 2023 in 0s

Jest tests failed

Failed tests: 1/434. Failed suites: 1/100.

Details

  ● sampleFileController › createFile works correctly

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

    Expected: ["signedUrl"]
    Received: {"data": {"code": 200, "message": "success"}}

    Number of calls: 1

      64 |
      65 |     // Response is generated signed url
    > 66 |     expect(mockRes.json).toHaveBeenCalledWith(mockSignedUrls);
         |                          ^
      67 |   });
      68 |
      69 |   it('createFile errors out if the transaction failed', async () => {

      at Object.<anonymous> (tests/api.v2/controllers/sampleFileController.test.js:66:26)

Annotations

Check failure on line 36 in tests/api.v2/controllers/sampleFileController.test.js

See this annotation in the file changed.

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

sampleFileController > createFile works correctly

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

Expected: ["signedUrl"]
Received: {"data": {"code": 200, "message": "success"}}

Number of calls: 1
    at Object.<anonymous> (/home/runner/work/api/api/tests/api.v2/controllers/sampleFileController.test.js:66:26)