From 0ed23d4fa31cee5bfdc184476a253e18d5fd55ba Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 23 Mar 2015 22:49:15 -0400 Subject: [PATCH] push test --- tests/mithril-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index 56f861d4..2bd3de83 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -29,10 +29,10 @@ function testMithril(mock) { test(function() {return m(".foo", {"class": "bar"}).attrs["class"] == "foo bar"}) test(function() {return m(".foo", {className: "bar"}).attrs.className == "foo bar"}) test(function() {return m(".foo", {className: ""}).attrs.className == "foo"}) - test(function() {return m("div", {className: ""}).attrs.className === undefined}) //https://github.com/lhorie/mithril.js/issues/382 + test(function() {return m("div", {className: ""}).attrs.className === ""}) //https://github.com/lhorie/mithril.js/issues/382 and 512 test(function() {return m("div", {class: ""}).attrs.className === undefined}) test(function() {return m("div", {className: ""}).attrs.class === undefined}) - test(function() {return m("div", {class: ""}).attrs.class === undefined}) + test(function() {return m("div", {class: ""}).attrs.class === ""}) test(function() {return m("div", [1, 2, 3], 4).children.length === 2}) test(function() {return m("div", [1, 2, 3], 4).children[0].length === 3}) test(function() {return m("div", [1, 2, 3], 4).children[1] === 4})