Skip to content

Commit

Permalink
pnpm check
Browse files Browse the repository at this point in the history
  • Loading branch information
satococoa committed Jan 28, 2025
1 parent 017d034 commit 9c8084c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/webhooks/github/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,21 @@ test("invalid command format returns null", () => {
});

test("command with multiple spaces", () => {
expect(
parseCommand("/giselle hello \nsome content"),
).toStrictEqual({
expect(parseCommand("/giselle hello \nsome content")).toStrictEqual({
callSign: "hello",
content: "some content",
});
});

test("command with empty content", () => {
expect(
parseCommand("/giselle hello\n"),
).toStrictEqual({
expect(parseCommand("/giselle hello\n")).toStrictEqual({
callSign: "hello",
content: "",
});
});

test("command with no empty line after command", () => {
expect(
parseCommand("/giselle hello content"),
).toStrictEqual({
expect(parseCommand("/giselle hello content")).toStrictEqual({
callSign: "hello",
content: "content",
});
Expand Down

0 comments on commit 9c8084c

Please sign in to comment.