Skip to content

Commit

Permalink
fix:test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta-ike committed Jan 5, 2022
1 parent 1127e67 commit c80ccd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/server/src/__test__/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ describe("機能テスト", () => {
senderType: "speaker",
iconId: 3,
content: "ongoingでないトピックへの投稿",
timestamp: expect.any(Number),
timestamp: undefined,
})
notOnGoingTopicMessage = res
resolve()
Expand Down
2 changes: 1 addition & 1 deletion app/server/src/__test__/testChatItemService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("ChatItemServiceのテスト", () => {
"test room",
uuid(),
"This is test room.",
[{ title: "test topic" }],
[{ title: "test topic", state: "ongoing" }],
new Set([admin.id]),
"ongoing",
new Date(),
Expand Down
7 changes: 5 additions & 2 deletions app/server/src/__test__/testStampService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ describe("StampServiceのテスト", () => {
"test room",
uuid(),
"This is test room.",
[{ title: "test topic" }],
[
{ id: 1, title: "test topic", state: "ongoing" },
{ id: 2, title: "test topic 2", state: "not-started" },
],
new Set([admin.id]),
"ongoing",
new Date(),
Expand Down Expand Up @@ -88,7 +91,7 @@ describe("StampServiceのテスト", () => {
expect(deliveredStamp.userId).toBe(userId)
})

test("異常系_OPEN状態でないTopicへはスタンプを投稿できない", async () => {
test("異常系_ONGOING状態でないTopicへはスタンプを投稿できない", async () => {
const stampId = uuid()
await expect(() =>
stampService.post({ id: stampId, userId, topicId: 2 }),
Expand Down

0 comments on commit c80ccd3

Please sign in to comment.