File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- const expect = require ( 'chai' ) ;
1+ const chai = require ( 'chai' ) ;
22const request = require ( './request-service' ) ;
33let body : string ;
44const page = '/back' ;
@@ -7,11 +7,11 @@ const url = `http://localhost:4000${page}`;
77describe ( `test work http request ${ page } with ssr` , ( ) => {
88 it ( 'Should be exist "total_pages"' , async ( ) => {
99 body = await request ( url ) ;
10- return expect ( body . includes ( 'total_pages' ) ) . to . equal ( true ) ;
10+ return chai . expect ( body . includes ( 'total_pages' ) ) . to . equal ( true ) ;
1111 } ) ;
1212
1313 it ( 'Should be exist "createdAt"' , async ( ) => {
1414 body = await request ( url ) ;
15- return expect ( body . includes ( 'createdAt' ) ) . to . equal ( true ) ;
15+ return chai . expect ( body . includes ( 'createdAt' ) ) . to . equal ( true ) ;
1616 } ) ;
1717} ) ;
You can’t perform that action at this time.
0 commit comments