UNPKG

@kiwicom/smart-faq

Version:

16 lines (12 loc) 319 B
// @noflow const createComment = jest.fn(({ articleId }) => { if (articleId < 0) { return Promise.reject(new Error('ArticleId should be a positive number')); } return Promise.resolve({ addFAQArticleComment: { isRateLimitExhausted: articleId > 2000, }, }); }); export default createComment;