From 4aaee178bc264a367ca6963e7a27bc87b0e6f426 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Gerardy Date: Sun, 11 Sep 2016 17:02:08 +0200 Subject: [PATCH] Fix the test of the old suite leave the new one broken --- test/mithril.withAttr.js | 2 +- tests/mithril-tests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" })