From 7142a557b8a86c1b7364ad90c1df4a63b8e2afcf Mon Sep 17 00:00:00 2001 From: Ivan Chavero Date: Wed, 3 Jul 2019 00:17:27 -0500 Subject: [PATCH 1/3] Add post-commit app The ch04s08 GE needs this app on the repository. --- post-commit/index.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 post-commit/index.php diff --git a/post-commit/index.php b/post-commit/index.php new file mode 100644 index 0000000..e64145a --- /dev/null +++ b/post-commit/index.php @@ -0,0 +1,3 @@ + From ccd7badf5d40b415f7072185eb10aaacafc7152e Mon Sep 17 00:00:00 2001 From: Ravi Srinivasan Date: Wed, 3 Jul 2019 10:50:05 +0530 Subject: [PATCH 2/3] Introducing broken unit test --- books/tests/app_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/books/tests/app_test.js b/books/tests/app_test.js index 71062ab..17c66cd 100644 --- a/books/tests/app_test.js +++ b/books/tests/app_test.js @@ -31,7 +31,7 @@ describe('Books App routes test', () => { it('GET to /authors should return 200', (done) => { chai.request(reqServer) - .get('/authors') + .get('/author') .end((err, res) => { expect(res).to.have.status(200); expect(res.text).to.include('James Joyce'); From d2357812f0a7face0b27a937ed31a9db5c37e30c Mon Sep 17 00:00:00 2001 From: Ravi Srinivasan Date: Wed, 3 Jul 2019 10:51:18 +0530 Subject: [PATCH 3/3] introducing lint breakage in the books app --- books/routes/authors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/books/routes/authors.js b/books/routes/authors.js index e28dab7..f9a0c04 100644 --- a/books/routes/authors.js +++ b/books/routes/authors.js @@ -4,6 +4,7 @@ const router = express.Router(); const authors = require('../data/authors'); +var user; /* GET users listing. */ router.get('/', (req, res) => {