Skip to content

Commit

Permalink
test: add explicit -z flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 9, 2023
1 parent 505fa87 commit 81be39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("mircrotar", () => {
it("createTar", async () => {
const data = await createTarGzip(fixture);
expect(data).toBeInstanceOf(Uint8Array);
expect(execSync("tar -tvf-", { input: data }).toString())
expect(execSync("tar -ctvf-", { input: data }).toString())
.toMatchInlineSnapshot(`
"-rw-rw-r-- 0 1000 1000 12 Nov 14 23:13 hello.txt
drwxrwxr-x 0 1001 1001 0 Nov 14 23:13 test
Expand Down

0 comments on commit 81be39b

Please sign in to comment.