Skip to content

Commit 28cb9d9

Browse files
chore(appengine): Remove older region tags
1 parent e542724 commit 28cb9d9

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
'use strict';
1616

1717
// [START gae_update_web_server_app]
18-
// [START app]
19-
// [START gae_update_app]
2018
const express = require('express');
2119
const path = require('path');
2220

@@ -31,15 +29,12 @@ app.get('/', (req, res) => {
3129
res.send('Hello from App Engine!');
3230
});
3331

34-
// [START add_display_form]
3532
// [START gae_add_display_form]
3633
app.get('/submit', (req, res) => {
3734
res.sendFile(path.join(__dirname, '/views/form.html'));
3835
});
3936
// [END gae_add_display_form]
40-
// [END add_display_form]
4137

42-
// [START add_post_handler]
4338
// [START gae_add_post_handler]
4439
app.post('/submit', (req, res) => {
4540
console.log({
@@ -49,15 +44,12 @@ app.post('/submit', (req, res) => {
4944
res.send('Thanks for your message!');
5045
});
5146
// [END gae_add_post_handler]
52-
// [END add_post_handler]
5347

5448
// Listen to the App Engine-specified port, or 8080 otherwise
5549
const PORT = parseInt(process.env.PORT) || 8080;
5650
app.listen(PORT, () => {
5751
console.log(`Server listening on port ${PORT}...`);
5852
});
59-
// [END gae_update_app]
60-
// [END app]
6153
// [END gae_update_web_server_app]
6254

6355
module.exports = app;

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

Lines changed: 1 addition & 12 deletions
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');
@@ -36,17 +36,6 @@ const restoreConsole = function () {
3636
beforeEach(stubConsole);
3737
afterEach(restoreConsole);
3838

39-
describe('gae_update_app', () => {
40-
it('should send greetings', async () => {
41-
await requestObj
42-
.get('/')
43-
.expect(200)
44-
.expect(response => {
45-
assert.strictEqual(response.text, 'Hello from App Engine!');
46-
});
47-
});
48-
});
49-
5039
describe('gae_update_web_server_app', () => {
5140
it('should send greetings', async () => {
5241
await requestObj

0 commit comments

Comments
 (0)