Merge branch 'patch-1' of https://github.com/Naddiseo/mithril.js into Naddiseo-patch-1

Conflicts:
	tests/mithril-tests.js
This commit is contained in:
Leo Horie 2015-07-23 23:15:05 -04:00
commit 0d7cc43bfe

View file

@ -3821,7 +3821,10 @@ function testMithril(mock) {
var args = m.route.parseQueryString("foo=bar&hello=world&hello=mars&bam=&yup")
return args.foo === "bar" && args.hello[0] === "world" && args.hello[1] === "mars" && args.bam === "" && args.yup == null
})
test(function() {
var args = m.route.parseQueryString("")
return Object.keys(args).length === 0
})
//m.route.buildQueryString
test(function() {
var string = m.route.buildQueryString({
@ -3836,7 +3839,10 @@ function testMithril(mock) {
})
return string === "foo=bar&hello=world&hello=mars&world%5Btest%5D=3&bam=&yup"
})
test(function() {
var string = m.route.buildQueryString({});
return string === ""
})
//m.prop
test(function() {
var prop = m.prop("test")