Skip to content

Commit

Permalink
test: fix translation test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebubae committed Nov 5, 2024
1 parent 70eb8d2 commit e976ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/__tests__/translation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('translation', () => {
data: { text: 'aka', sourceLanguageCode: 'ibo', destinationLanguageCode: 'eng' },
});
await getTranslation(req, res, next);
expect(res.send).toHaveBeenCalled();
expect(res.json).toHaveBeenCalled();
});

it('throws validation error when input is too long', async () => {
Expand Down

0 comments on commit e976ca0

Please sign in to comment.