File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
appengine/building-an-app/update/test Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const supertest = require('supertest');
2121
2222const cwd = path . join ( __dirname , '../' ) ;
2323
24- const requestObj = supertest ( proxyquire ( path . join ( cwd , 'server' ) , { process} ) ) ;
24+ const requestObj = supertest ( proxyquire ( path . join ( cwd , 'server' ) , { process } ) ) ;
2525
2626const stubConsole = function ( ) {
2727 sinon . stub ( console , 'error' ) ;
@@ -47,6 +47,17 @@ describe('gae_update_app', () => {
4747 } ) ;
4848} ) ;
4949
50+ describe ( 'gae_update_web_server_app' , ( ) => {
51+ it ( 'should send greetings' , async ( ) => {
52+ await requestObj
53+ . get ( '/' )
54+ . expect ( 200 )
55+ . expect ( response => {
56+ assert . strictEqual ( response . text , 'Hello from App Engine!' ) ;
57+ } ) ;
58+ } ) ;
59+ } ) ;
60+
5061describe ( 'gae_add_display_form add_display_form' , ( ) => {
5162 it ( 'should display form' , async ( ) => {
5263 await requestObj
You can’t perform that action at this time.
0 commit comments