-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,617 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
// }) | ||
// }) | ||
// | ||
// }) | ||
// | ||
// }) |
Oops, something went wrong.