Skip to content

Commit 846c59c

Browse files
bcoeAce Nassri
authored and
Ace Nassri
committed
chore: address linting issues (#385)
1 parent 331e994 commit 846c59c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

translate/test/translate.test.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ describe('translate sample tests', () => {
6868
it('should translate multiple strings', async () => {
6969
const output = execSync(`${cmd} translate ${toLang} "${text}" "${text2}"`);
7070
const [translations] = await translate.translate([text, text2], toLang);
71-
const expected = `Translations:\n${text} => (${toLang}) ${
72-
translations[0]
73-
}\n${text2} => (${toLang}) ${translations[1]}`;
71+
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
7472
assert.strictEqual(output, expected);
7573
});
7674

@@ -88,9 +86,7 @@ describe('translate sample tests', () => {
8886
`${cmd} translate-with-model ${toLang} ${model} "${text}" "${text2}"`
8987
);
9088
const [translations] = await translate.translate([text, text2], toLang);
91-
const expected = `Translations:\n${text} => (${toLang}) ${
92-
translations[0]
93-
}\n${text2} => (${toLang}) ${translations[1]}`;
89+
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
9490
assert.strictEqual(output, expected);
9591
});
9692
});

0 commit comments

Comments
 (0)