test: fix code style issue
This commit is contained in:
parent
826dc1062a
commit
0521af0d52
1 changed files with 6 additions and 6 deletions
|
|
@ -108,16 +108,16 @@ test("strips leading './' from outdir", async () => {
|
||||||
// --- promise settlement ------------------------------------------------------
|
// --- promise settlement ------------------------------------------------------
|
||||||
test("resolves with 'Done' when execFile succeeds", async () => {
|
test("resolves with 'Done' when execFile succeeds", async () => {
|
||||||
behavior = { kind: "success", stdout: "fine", stderr: "" };
|
behavior = { kind: "success", stdout: "fine", stderr: "" };
|
||||||
await expect(convert("in.txt", "txt", "docx", "out/out.docx", undefined, mockExecFile)).resolves.toBe(
|
await expect(
|
||||||
"Done",
|
convert("in.txt", "txt", "docx", "out/out.docx", undefined, mockExecFile),
|
||||||
);
|
).resolves.toBe("Done");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("rejects when execFile returns an error", async () => {
|
test("rejects when execFile returns an error", async () => {
|
||||||
behavior = { kind: "error", message: "convert failed", stderr: "oops" };
|
behavior = { kind: "error", message: "convert failed", stderr: "oops" };
|
||||||
await expect(convert("in.txt", "txt", "docx", "out/out.docx", undefined, mockExecFile)).rejects.toMatch(
|
await expect(
|
||||||
/error: Error: convert failed/,
|
convert("in.txt", "txt", "docx", "out/out.docx", undefined, mockExecFile),
|
||||||
);
|
).rejects.toMatch(/error: Error: convert failed/);
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- logging behavior --------------------------------------------------------
|
// --- logging behavior --------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue