File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ test(`should detect language of multiple strings`, async t => {
42
42
cwd
43
43
) ;
44
44
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 } `;
47
48
t . is ( output , expected ) ;
48
49
} ) ;
49
50
@@ -75,7 +76,9 @@ test(`should translate multiple strings`, async t => {
75
76
cwd
76
77
) ;
77
78
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 ] } `;
79
82
t . is ( output , expected ) ;
80
83
} ) ;
81
84
@@ -95,6 +98,8 @@ test(`should translate multiple strings with a model`, async t => {
95
98
cwd
96
99
) ;
97
100
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 ] } `;
99
104
t . is ( output , expected ) ;
100
105
} ) ;
You can’t perform that action at this time.
0 commit comments