Skip to content

Commit

Permalink
fix(webhook): mock AI reply for media articles as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 3, 2024
1 parent f51a57e commit 817092b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ it('should submit image article if user agrees to submit', async () => {

MockDate.set('2020-01-02');
gql.__push({ data: { CreateMediaArticle: { id: 'new-article-id' } } });
gql.__push({
data: { CreateAIReply: { text: '' /* Simulate nothing from AI */ } },
});
const result = await askingArticleSubmissionConsent(params);
MockDate.reset();
expect(gql.__finished()).toBe(true);
Expand Down

0 comments on commit 817092b

Please sign in to comment.