Skip to content

Commit

Permalink
Prettify. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and Ace Nassri committed Nov 17, 2022
1 parent 21fdb19 commit 5e544c2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions translate/system-test/translate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ test(`should detect language of multiple strings`, async t => {
cwd
);
const [detections] = await translate.detect([text, text2]);
const expected = `Detections:\n${text} => ${detections[0]
.language}\n${text2} => ${detections[1].language}`;
const expected = `Detections:\n${text} => ${detections[0].language}\n${
text2
} => ${detections[1].language}`;
t.is(output, expected);
});

Expand Down Expand Up @@ -75,7 +76,9 @@ test(`should translate multiple strings`, async t => {
cwd
);
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]}`;
t.is(output, expected);
});

Expand All @@ -95,6 +98,8 @@ test(`should translate multiple strings with a model`, async t => {
cwd
);
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]}`;
t.is(output, expected);
});

0 comments on commit 5e544c2

Please sign in to comment.