We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f71449 commit 3a0348bCopy full SHA for 3a0348b
tests/cases.test.ts
@@ -2,6 +2,16 @@ import {MockWriteStreams} from "../src/mock-write-streams";
2
import * as chalk from "chalk";
3
import {handler} from "../src/handler";
4
5
+test("--completion", async () => {
6
+ const spy = jest.spyOn(console, "log").mockImplementation();
7
+ const writeStreams = new MockWriteStreams();
8
+ await handler({
9
+ completion: true,
10
+ }, writeStreams);
11
+ expect(console.log).toHaveBeenCalledTimes(1);
12
+ spy.mockRestore();
13
+});
14
+
15
test("something/unknown-directory (non-existing dir)", async () => {
16
try {
17
const writeStreams = new MockWriteStreams();
0 commit comments