Skip to content

Commit

Permalink
fix(test): fix language detection test (#779)
Browse files Browse the repository at this point in the history
* fix(test): fix language detection test

The existing test started returning `haw` (Hawaiian?), so let's use the longer text :)

* fix(test): typo
  • Loading branch information
alexander-fenster authored Apr 21, 2022
1 parent e42c46b commit cc97caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-translate/system-test/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ describe('translate', () => {
expectedLanguage: 'en',
},
{
content: '¡Hola!',
content: 'Esto es una prueba.',
expectedLanguage: 'es',
},
];

it('should detect a langauge', async () => {
it('should detect a language', async () => {
const projectId = await translate.getProjectId();
for (const input of INPUT) {
const [result] = await translate.detectLanguage({
Expand Down

0 comments on commit cc97caf

Please sign in to comment.