Skip to content

Commit

Permalink
fix(tests): unauth redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed May 10, 2019
1 parent 3f8c2df commit d6449c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/1_sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ describe('sessions', function () {

it('should redirect on un-auth', function (done) {
unauthAgent.get('http://localhost:3111/tickets').end(function (err, res) {
expect(err).to.exist
expect(res.status).to.equal(401)
expect(err).to.not.exist
expect(res.status).to.equal(200)
expect(res.text).to.include('<title>Trudesk &middot; Login</title>')

done()
})
Expand Down

0 comments on commit d6449c7

Please sign in to comment.