From 08bd0767f2e38dbd6ca055bbbf2c9ac7529c6817 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 24 Feb 2016 14:02:42 -0500 Subject: [PATCH] Remove irrelevant integration test --- test/integration/index_test.js | 53 ---------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 test/integration/index_test.js diff --git a/test/integration/index_test.js b/test/integration/index_test.js deleted file mode 100644 index 5699cd0..0000000 --- a/test/integration/index_test.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -const testBase = require('../test-base'); -const expect = testBase.expect; -const supertest = require('supertest'); - -let server = supertest.agent('http://localhost:3000'); - -suite('Example integration tests', () => { - test('Index page works as expected', (done) => { - server.get('/') - .expect('Content-type', /json/) - .expect(200) - .end((err, res) => { - expect(res.status).to.equal(200); - expect(res.body.error).to.be.undefined; - expect(res.body).to.deep.equal({ - status: 200, - data: { - index: { title: 'Express' }, - }, - }); - return done(err); - }); - }); - test('404 page works as expected', (done) => { - server.get('/foo') - .expect('Content-type', /json/) - .end((err, res) => { - expect(res.status).to.equal(404); - expect(res.body.status).to.equal(String(res.status)); - expect(res.body.message).to.be.ok; - - let expected = { - status: '404', - message: 'Not Found', - }; - - if (process.env.NODE_ENV === 'development') { - expected.error = { - code: '404', - status: '404', - name: 'Http404Error', - message: 'Not Found', - }; - } - - expect(res.body).to.deep.equal(expected); - - return done(err); - }); - }); -}); \ No newline at end of file