Disable hash routing by default (#699)

This commit is contained in:
Carl Törnqvist
2019-06-11 23:05:15 +02:00
committed by GitHub
parent 0b4d578f01
commit d62691f207
4 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -76,9 +76,9 @@ tape('router should support a default route', function (t) {
t.end()
})
tape('router should treat hashes as slashes by default', function (t) {
tape('enabling hash routing should treat hashes as slashes', function (t) {
t.plan(1)
var app = choo()
var app = choo({ hash: true })
app.route('/account/security', function (state, emit) {
t.pass()
return html`<div></div>`
@@ -87,9 +87,9 @@ tape('router should treat hashes as slashes by default', function (t) {
t.end()
})
tape('router should ignore hashes if hash is disabled', function (t) {
tape('router should ignore hashes by default', function (t) {
t.plan(1)
var app = choo({ hash: false })
var app = choo()
app.route('/account', function (state, emit) {
t.pass()
return html`<div></div>`