Skip to content

Commit 5fb3b5f

Browse files
added the gae_update_web_server_app test
1 parent 80c5b6a commit 5fb3b5f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

appengine/building-an-app/update/test/server.test.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const supertest = require('supertest');
2121

2222
const 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

2626
const 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+
5061
describe('gae_add_display_form add_display_form', () => {
5162
it('should display form', async () => {
5263
await requestObj

0 commit comments

Comments
 (0)