Skip to content

Commit

Permalink
Merge pull request #353 from alphagov/add-more-tests
Browse files Browse the repository at this point in the history
Add test for docs page
  • Loading branch information
joelanman authored Jan 30, 2017
2 parents 99b145d + 16ceb9b commit 8e73cef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/spec/sanity-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@ describe('The prototype kit', function () {
}
})
})

it('should send with a well formed response for the docs page', function (done) {
request(app)
.get('/docs')
.expect('Content-Type', /text\/html/)
.expect(200)
.end(function (err, res) {
if (err) {
done(err)
} else {
done()
}
})
})
})

0 comments on commit 8e73cef

Please sign in to comment.