Skip to content

Commit

Permalink
Add tests to announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
apavlidi committed Aug 20, 2018
1 parent 3500b03 commit 68727dc
Show file tree
Hide file tree
Showing 8 changed files with 1,617 additions and 38 deletions.
38 changes: 0 additions & 38 deletions test/announcements.js

This file was deleted.

53 changes: 53 additions & 0 deletions test/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// describe('announcements', () => {
//
// context('404 error', () => {
//
// it('it should return a 404 error object on invalid url', (done) => {
// chai.request(server)
// .get('/INVALID')
// .end((err, res) => {
// res.should.have.status(404)
// res.body.should.be.an('object')
// done()
// })
// })
//
// it('it should return a 404 error with correct properties on invalid url', (done) => {
// chai.request(server)
// .get('/INVALID')
// .end((err, res) => {
// res.should.have.status(404)
// res.body.should.be.an('object')
// let errorObj = res.body.error
// errorObj.should.have.property('message')
// errorObj.should.have.property('type')
// errorObj.should.have.property('code')
// done()
// })
//
// })
// })
//
// context('OPTIONS Method', () => {
//
// it('it should return a 200 code when hitting with options method', (done) => {
// chai.request(server)
// .options('/*')
// .end((err, res) => {
// res.should.have.status(200)
// done()
// })
// })
//
// it('it should return a 404 code when hitting with invalid method', (done) => {
// chai.request(server)
// .trace('/*')
// .end((err, res) => {
// res.should.have.status(404)
// done()
// })
// })
//
// })
//
// })
Loading

0 comments on commit 68727dc

Please sign in to comment.