File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,13 +32,16 @@ describe("Hono + Honolate E2E", () => {
3232 } ) ;
3333 describe ( "Untranslated text" , ( ) => {
3434 it ( "GET /untranslated should return untranslated text" , async ( ) => {
35- const resDefault = await ( await testApp . untranslated . $get ( { } ) ) . text ( ) ;
36- const resEn = await ( await testApp . untranslated . $get ( {
35+ const resDefaultResp = await testApp . untranslated . $get ( { } ) ;
36+ const resDefault = await resDefaultResp . text ( ) ;
37+ const resEnResp = await testApp . untranslated . $get ( {
3738 query : { lang : "en" } ,
38- } ) ) . text ( ) ;
39- const resDe = await ( await testApp . untranslated . $get ( {
39+ } ) ;
40+ const resEn = await resEnResp . text ( ) ;
41+ const resDeResp = await testApp . untranslated . $get ( {
4042 query : { lang : "de" } ,
41- } ) ) . text ( ) ;
43+ } ) ;
44+ const resDe = await resDeResp . text ( ) ;
4245
4346 expect ( resDefault ) . toBe ( "Untranslated text" ) ;
4447 expect ( resEn ) . toBe ( "Untranslated text" ) ;
You can’t perform that action at this time.
0 commit comments