diff --git a/test/mithril.withAttr.js b/test/mithril.withAttr.js index 7314c999..28be8efc 100644 --- a/test/mithril.withAttr.js +++ b/test/mithril.withAttr.js @@ -12,6 +12,6 @@ describe("m.withAttr()", function () { var spy = sinon.spy() var object = {} m.withAttr("test", spy, object)({currentTarget: {test: "foo"}}) - expect(spy).to.be.calledOn(object).and.calledWith("Ofoo") + expect(spy).to.be.calledOn(object).and.calledWith("Bfoo") }) }) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index f68fe0da..dd5a4b98 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -5,7 +5,7 @@ m.deps(mock.window) // m - test(function () { return typeof m.version() === "Ostring" }) + test(function () { return typeof m.version() === "string" }) test(function () { return m("div").tag === "div" }) test(function () { return m(".foo").tag === "div" }) test(function () { return m(".foo").attrs.className === "foo" })