File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 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 => {
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} ) ;
You can’t perform that action at this time.
0 commit comments