Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add one more acc s test
  • Loading branch information
Tatamo committed Apr 13, 2020
1 parent 3a13dd7 commit 97de13d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/__tests__/cli.ts
Expand Up @@ -100,6 +100,13 @@ describe("command calls", () => {
expect(commands.submit).toBeCalledWith("-y", ["--no-open", "-w", "10"], expect.objectContaining({skipFilename: true}));
expect(commands.submit).toBeCalledWith("-y", ["--no-open", "-w", "10"], expect.not.objectContaining({contest: expect.anything(), task: expect.anything()}));
});
test("s -s --", () => {
const commands = require("../../src/commands");
run("s", "-s", "--");
expect(commands.submit).toBeCalledWith(undefined, [], expect.anything());
expect(commands.submit).toBeCalledWith(undefined, [], expect.objectContaining({skipFilename: true}));
expect(commands.submit).toBeCalledWith(undefined, [], expect.not.objectContaining({contest: expect.anything(), task: expect.anything()}));
});
test("s -c abc100 -t abc100_a", () => {
const commands = require("../../src/commands");
run("s", "-c", "abc100", "-t", "abc100_a");
Expand Down

0 comments on commit 97de13d

Please sign in to comment.