このコミットが含まれているのは:
@@ -52,7 +52,7 @@ describe('Gekanator API functions', () => {
|
||||
mockedApiGet.mockResolvedValueOnce({ posts })
|
||||
|
||||
await expect(fetchGekanatorPosts()).resolves.toEqual(posts)
|
||||
expect(mockedApiGet).toHaveBeenCalledWith('/gekanator/posts')
|
||||
expect(mockedApiGet).toHaveBeenCalledWith('/gekanator/posts', { locale: 'ja' })
|
||||
})
|
||||
|
||||
it('returns questions from the Gekanator questions endpoint', async () => {
|
||||
@@ -60,7 +60,7 @@ describe('Gekanator API functions', () => {
|
||||
mockedApiGet.mockResolvedValueOnce({ questions })
|
||||
|
||||
await expect(fetchGekanatorQuestions()).resolves.toEqual(questions)
|
||||
expect(mockedApiGet).toHaveBeenCalledWith('/gekanator/questions')
|
||||
expect(mockedApiGet).toHaveBeenCalledWith('/gekanator/questions', { locale: 'ja' })
|
||||
})
|
||||
})
|
||||
|
||||
@@ -458,7 +458,7 @@ describe('Gekanator API writers', () => {
|
||||
original_answer: 'partial',
|
||||
},
|
||||
],
|
||||
})
|
||||
}, { locale: 'ja' })
|
||||
})
|
||||
|
||||
it('sends question suggestions using snake_case request keys', async () => {
|
||||
@@ -482,7 +482,7 @@ describe('Gekanator API writers', () => {
|
||||
gekanator_game_id: 100,
|
||||
question_text: '喜多ちゃんが泣いてる?',
|
||||
answer: 'yes',
|
||||
})
|
||||
}, { locale: 'ja' })
|
||||
})
|
||||
|
||||
it('sends extra question answers using snake_case request keys', async () => {
|
||||
@@ -517,7 +517,7 @@ describe('Gekanator API writers', () => {
|
||||
answer: 'probably_no',
|
||||
},
|
||||
],
|
||||
},
|
||||
}, { locale: 'ja' },
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする