Skip to content

Commit

Permalink
Use printf in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Oct 17, 2020
1 parent 657899d commit aa3fc47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test.js
Expand Up @@ -67,9 +67,9 @@ describe("sh.capture", () => {

test("can get combined stdout and stderr", async () => {
const { both } = await sh.capture`
echo -n foo
>&2 echo -n bar
echo -n baz
printf foo
>&2 printf bar
printf baz
`();
expect(both.trim()).toEqual("foobazbar");
});
Expand All @@ -82,9 +82,9 @@ describe("sh.capture", () => {

test("can you .toString()", async () => {
const out = await sh.capture`
echo -n foo
>&2 echo -n bar
echo -n baz
printf foo
>&2 printf bar
printf baz
`();
expect(`${out}`).toEqual("foobazbar");
});
Expand Down

0 comments on commit aa3fc47

Please sign in to comment.