diff options
| author | jw255 | 2018-02-24 19:52:33 +0000 |
|---|---|---|
| committer | jw255 | 2018-02-24 19:52:33 +0000 |
| commit | 7eef60262e2399717f830aa319e0722e9c92b13f (patch) | |
| tree | 8319ad8b153c9197620f541b41654b9c0f261a15 /test/nodeserver.test.ts | |
| parent | Merge branch 'trh/editorconfig' into 'master' (diff) | |
| parent | tests now actually test what they are supposed to and catch errors if needed (diff) | |
| download | medicine-7eef60262e2399717f830aa319e0722e9c92b13f.tar.gz medicine-7eef60262e2399717f830aa319e0722e9c92b13f.zip | |
needed latest changes to master for testing purposes
Diffstat (limited to 'test/nodeserver.test.ts')
| -rw-r--r-- | test/nodeserver.test.ts | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/nodeserver.test.ts b/test/nodeserver.test.ts deleted file mode 100644 index 83c66e8..0000000 --- a/test/nodeserver.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import * as mocha from 'mocha'; -import * as chai from 'chai'; -import chaiHttp = require('chai-http'); - -import app from '../src/app'; - -chai.use(chaiHttp); -const expect = chai.expect; - -describe('baseRoute', () => { - - it('should be json', () => { - return chai.request(app).get('/') - .then(res => { - expect(res.type).to.eql('application/json'); - }); - }); - - it('should have a message prop', () => { - return chai.request(app).get('/') - .then(res => { - expect(res.body.message).to.eql('Welcome to the CS3099 BE4 server!'); - }); - }); - it('should have an important prop', () => { - return chai.request(app).get('/') - .then(res => { - expect(res.body.important).to.eql('Endpoints start from /cs3099group-be-4/'); - }); - }); - -}); |
