Skip to content

Commit

Permalink
chore: address linting issues (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and Ace Nassri committed Nov 17, 2022
1 parent 331e994 commit 846c59c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions translate/test/translate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ describe('translate sample tests', () => {
it('should translate multiple strings', async () => {
const output = execSync(`${cmd} translate ${toLang} "${text}" "${text2}"`);
const [translations] = await translate.translate([text, text2], toLang);
const expected = `Translations:\n${text} => (${toLang}) ${
translations[0]
}\n${text2} => (${toLang}) ${translations[1]}`;
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
assert.strictEqual(output, expected);
});

Expand All @@ -88,9 +86,7 @@ describe('translate sample tests', () => {
`${cmd} translate-with-model ${toLang} ${model} "${text}" "${text2}"`
);
const [translations] = await translate.translate([text, text2], toLang);
const expected = `Translations:\n${text} => (${toLang}) ${
translations[0]
}\n${text2} => (${toLang}) ${translations[1]}`;
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
assert.strictEqual(output, expected);
});
});

0 comments on commit 846c59c

Please sign in to comment.