Skip to content

Commit

Permalink
Oh cypress...
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Jul 15, 2024
1 parent 9ce164f commit ead524f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/frontend/cypress/e2e/sample.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe("Sample view test - mwdb-core", function () {
body: formData,
}).then((response) => {
expect(response.status).to.eq(200);
response.json().then((data) => resolve(data));
const bodyString = Cypress.Blob.arrayBufferToBinaryString(response.body);
resolve(JSON.parse(bodyString));
});
});
});
Expand Down

0 comments on commit ead524f

Please sign in to comment.