Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Jul 22, 2022
1 parent c5c7ad9 commit 6fd56b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/wasm/tests/fs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ test.describe("PublicDirectory", () => {
});

expect(result.length).toBe(2);
expect(result.includes("dogs")).toBe(true);
expect(result.includes("cats")).toBe(true);
expect(result[0].name).toBe("cats");
expect(result[1].name).toBe("dogs");
});

test("rm can remove children from directory", async ({ page }) => {
Expand Down Expand Up @@ -137,6 +137,7 @@ test.describe("PublicDirectory", () => {
return result;
});

expect(result).toEqual(["dogs"]);
expect(result.length).toEqual(1)
expect(result[0].name).toEqual("dogs");
});
});

0 comments on commit 6fd56b9

Please sign in to comment.