Fix the test of the old suite leave the new one broken

This commit is contained in:
Pierre-Yves Gerardy 2016-09-11 17:02:08 +02:00
parent ee8ab3561b
commit 4aaee178bc
2 changed files with 2 additions and 2 deletions

View file

@ -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")
})
})

View file

@ -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" })