Skip to content

Commit 5e544c2

Browse files
stephenplusplusAce Nassri
authored and
Ace Nassri
committed
Prettify. (#14)
1 parent 21fdb19 commit 5e544c2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

translate/system-test/translate.test.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ test(`should detect language of multiple strings`, async t => {
4242
cwd
4343
);
4444
const [detections] = await translate.detect([text, text2]);
45-
const expected = `Detections:\n${text} => ${detections[0]
46-
.language}\n${text2} => ${detections[1].language}`;
45+
const expected = `Detections:\n${text} => ${detections[0].language}\n${
46+
text2
47+
} => ${detections[1].language}`;
4748
t.is(output, expected);
4849
});
4950

@@ -75,7 +76,9 @@ test(`should translate multiple strings`, async t => {
7576
cwd
7677
);
7778
const [translations] = await translate.translate([text, text2], toLang);
78-
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
79+
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${
80+
text2
81+
} => (${toLang}) ${translations[1]}`;
7982
t.is(output, expected);
8083
});
8184

@@ -95,6 +98,8 @@ test(`should translate multiple strings with a model`, async t => {
9598
cwd
9699
);
97100
const [translations] = await translate.translate([text, text2], toLang);
98-
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${text2} => (${toLang}) ${translations[1]}`;
101+
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${
102+
text2
103+
} => (${toLang}) ${translations[1]}`;
99104
t.is(output, expected);
100105
});

0 commit comments

Comments
 (0)