Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Sep 24, 2023
1 parent 05216ba commit 1df9f1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/get-files-from-dir/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe("utils", () => {
it("should return all files from a directory", async () => {
const output = await getFilesFromDir(assetsPath);
const expected = [
`${assetsPath}/favicon.ico`,
`${assetsPath}/some-dir/some-img.png`,
`${assetsPath}/some-dir/some-text.txt`,
path.join(assetsPath, 'favicon.ico'),
path.join(assetsPath, 'some-dir', 'some-img.png'),
path.join(assetsPath, 'some-dir', 'some-text.txt'),
];

expect(output).toEqual(expected);

Check failure on line 24 in src/utils/get-files-from-dir/index.test.ts

View workflow job for this annotation

GitHub Actions / build

error: expect(received).toEqual(expected)

[ "/home/runner/work/brisa/brisa/src/__fixtures__/assets/favicon.ico", + "/home/runner/work/brisa/brisa/src/__fixtures__/assets/some-dir/some-text.txt", + "/home/runner/work/brisa/brisa/src/__fixtures__/assets/some-dir/some-img.png" - "/home/runner/work/brisa/brisa/src/__fixtures__/assets/some-dir/some-img.png", - "/home/runner/work/brisa/brisa/src/__fixtures__/assets/some-dir/some-text.txt" ] - Expected - 2 + Received + 2 at /home/runner/work/brisa/brisa/src/utils/get-files-from-dir/index.test.ts:24:6
Expand Down

0 comments on commit 1df9f1e

Please sign in to comment.