Skip to content

Commit

Permalink
Fixed logs button test
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed May 16, 2024
1 parent 9e86f7d commit 58c6c98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/core/LogsButton.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ describe("LogsButton", () => {

describe("and logs are collected successfully", () => {
beforeEach(() => {
// new TextEncoder().encode("Hello logs!")
const data = new Uint8Array([72, 101, 108, 108, 111, 32, 108, 111, 103, 115, 33]);
fetchLogsFn.mockResolvedValue(data);
fetchLogsFn.mockResolvedValue({
blob: jest.fn().mockResolvedValue(new Blob(["testing"]))
})

Check failure on line 93 in web/src/components/core/LogsButton.test.jsx

View workflow job for this annotation

GitHub Actions / frontend_build (18.x)

Missing semicolon

Check failure on line 93 in web/src/components/core/LogsButton.test.jsx

View workflow job for this annotation

GitHub Actions / frontend_build (18.x)

Missing semicolon
});

it("triggers the download", async () => {
Expand Down

0 comments on commit 58c6c98

Please sign in to comment.