Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let testCall = async () => {
return await _.callApi(route + '/rate', 'POST', requests.rate);
}
test('route: components')
.that('POST component rating')
.will('add a rating to the component', async () => {
check.ratingAdded(testCall());
})
.will('NOT add a second rating to the component for the same user', async () => {
check.duplicateUserRatingNotAdded(testCall())
})
.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.