Skip to content

Commit 0b41f1b

Browse files
stephenplusplusAce Nassri
authored and
Ace Nassri
committed
Linting per [email protected]. (#21)
1 parent 976b507 commit 0b41f1b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

translate/system-test/translate.test.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -42,9 +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].language}\n${
46-
text2
47-
} => ${detections[1].language}`;
45+
const expected = `Detections:\n${text} => ${
46+
detections[0].language
47+
}\n${text2} => ${detections[1].language}`;
4848
t.is(output, expected);
4949
});
5050

@@ -76,9 +76,9 @@ test(`should translate multiple strings`, async t => {
7676
cwd
7777
);
7878
const [translations] = await translate.translate([text, text2], toLang);
79-
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${
80-
text2
81-
} => (${toLang}) ${translations[1]}`;
79+
const expected = `Translations:\n${text} => (${toLang}) ${
80+
translations[0]
81+
}\n${text2} => (${toLang}) ${translations[1]}`;
8282
t.is(output, expected);
8383
});
8484

@@ -98,8 +98,8 @@ test(`should translate multiple strings with a model`, async t => {
9898
cwd
9999
);
100100
const [translations] = await translate.translate([text, text2], toLang);
101-
const expected = `Translations:\n${text} => (${toLang}) ${translations[0]}\n${
102-
text2
103-
} => (${toLang}) ${translations[1]}`;
101+
const expected = `Translations:\n${text} => (${toLang}) ${
102+
translations[0]
103+
}\n${text2} => (${toLang}) ${translations[1]}`;
104104
t.is(output, expected);
105105
});

0 commit comments

Comments
 (0)