From 6b2750ea59251c3d10627ee960b47db72085d8ad Mon Sep 17 00:00:00 2001 From: Barney Carroll Date: Sat, 19 Nov 2016 17:57:22 +0000 Subject: [PATCH] Test case: parse [class] attribute declaration in hyperscript selector --- tests/mithril-tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index dd5a4b98..55d72075 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -9,6 +9,7 @@ test(function () { return m("div").tag === "div" }) test(function () { return m(".foo").tag === "div" }) test(function () { return m(".foo").attrs.className === "foo" }) + test(function () { return m("[class=a]").attrs.className === "a" }) test(function () { return m("[title=bar]").tag === "div" }) test(function () { return m("[title=bar]").attrs.title === "bar" }) test(function () { return m("[empty]").attrs.empty === true })