File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -42,9 +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 ] . language } \n ${
46
- text2
47
- } => ${ detections [ 1 ] . language } `;
45
+ const expected = `Detections:\n${ text } => ${
46
+ detections [ 0 ] . language
47
+ } \n ${ text2 } => ${ detections [ 1 ] . language } `;
48
48
t . is ( output , expected ) ;
49
49
} ) ;
50
50
@@ -76,9 +76,9 @@ test(`should translate multiple strings`, async t => {
76
76
cwd
77
77
) ;
78
78
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 ] } `;
82
82
t . is ( output , expected ) ;
83
83
} ) ;
84
84
@@ -98,8 +98,8 @@ test(`should translate multiple strings with a model`, async t => {
98
98
cwd
99
99
) ;
100
100
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 ] } `;
104
104
t . is ( output , expected ) ;
105
105
} ) ;
You can’t perform that action at this time.
0 commit comments