Skip to content

Commit

Permalink
fix(tests): travis failures
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Aug 14, 2019
1 parent e25add9 commit e078467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert')
describe('Request', function () {
it('should have the correct protocol', function () {
var r = new Request()
assert.strictEqual(r.protocol, 'file')
assert.strictEqual(r.protocol + ':', window.location.protocol)
assert.strictEqual(r.secure, false)
})
it('should have the correct hostname', function () {
Expand Down
2 changes: 2 additions & 0 deletions test/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Router', function () {
})

it('BROWSER: should start listening to changes', function (done) {
router.base(window.location.pathname)
router.get('/', function (req, res) {
assert.strictEqual(req.path, '/', 'Did not match route path correctly')
done()
Expand All @@ -50,6 +51,7 @@ describe('Router', function () {
})

it('BROWSER: should process route on popstate', function (done) {
router.base(window.location.pathname)
router.get('/', function (req, res) {
done()
})
Expand Down

0 comments on commit e078467

Please sign in to comment.