Skip to content

Commit

Permalink
test: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Jul 23, 2022
1 parent 4b5915c commit 503c0d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/service/deletion-repeater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ it("must not react if it's ignore target", async () => {
const responder = new DeletionRepeater(
(content) => content === 'Wall Is Stop'
);
const fn = jest.fn();
const fn = vi.fn();
await responder.on('DELETE', {
author: 'Baba',
content: 'Wall Is Stop',
Expand All @@ -47,12 +47,12 @@ it("must react if it's not ignore target", async () => {
);
await responder.on('DELETE', {
author: 'Baba',
content: 'Wall Is Stop',
content: 'Wall Is Not Stop',
sendToSameChannel: (message) => {
expect(message)
.toEqual(`Babaさん、メッセージを削除しましたね?私は見ていましたよ。内容も知っています。
\`\`\`
Wall Is Stop
Wall Is Not Stop
\`\`\``);
return Promise.resolve();
}
Expand Down

0 comments on commit 503c0d8

Please sign in to comment.