Skip to content

Commit

Permalink
Tet for /documents was calling the wrong url
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh1015 committed Oct 29, 2018
1 parent f23542b commit f8d4dbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ describe('API /', () => {
describe('API /documents', () => {
it('it should return an empty array', (done) => {
chai.request(app)
.get('/')
.get('/documents')
.end((err, res) => {
res.should.have.status(200);
res.should.to.be.html;
res.text.should.be.equal([]);
res.should.to.be.json;
res.body.should.be.a('array');
res.body.length.should.be.eql(0);
done();
});
});
Expand Down

0 comments on commit f8d4dbf

Please sign in to comment.