File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,7 @@ describe('translate sample tests', () => {
68
68
it ( 'should translate multiple strings' , async ( ) => {
69
69
const output = execSync ( `${ cmd } translate ${ toLang } "${ text } " "${ text2 } "` ) ;
70
70
const [ translations ] = await translate . translate ( [ text , text2 ] , toLang ) ;
71
- const expected = `Translations:\n${ text } => (${ toLang } ) ${
72
- translations [ 0 ]
73
- } \n${ text2 } => (${ toLang } ) ${ translations [ 1 ] } `;
71
+ const expected = `Translations:\n${ text } => (${ toLang } ) ${ translations [ 0 ] } \n${ text2 } => (${ toLang } ) ${ translations [ 1 ] } ` ;
74
72
assert . strictEqual ( output , expected ) ;
75
73
} ) ;
76
74
@@ -88,9 +86,7 @@ describe('translate sample tests', () => {
88
86
`${ cmd } translate-with-model ${ toLang } ${ model } "${ text } " "${ text2 } "`
89
87
) ;
90
88
const [ translations ] = await translate . translate ( [ text , text2 ] , toLang ) ;
91
- const expected = `Translations:\n${ text } => (${ toLang } ) ${
92
- translations [ 0 ]
93
- } \n${ text2 } => (${ toLang } ) ${ translations [ 1 ] } `;
89
+ const expected = `Translations:\n${ text } => (${ toLang } ) ${ translations [ 0 ] } \n${ text2 } => (${ toLang } ) ${ translations [ 1 ] } ` ;
94
90
assert . strictEqual ( output , expected ) ;
95
91
} ) ;
96
92
} ) ;
You can’t perform that action at this time.
0 commit comments