added test to prevent releases w/ console.log

This commit is contained in:
Leo Horie 2014-05-03 08:20:30 -04:00
parent 9794c534eb
commit dc379a4cf8
7 changed files with 18 additions and 2 deletions

View file

@ -615,6 +615,11 @@ function testMithril(mock) {
m.endComputation()
return root.childNodes[0].nodeValue === "foo"
})
//console.log presence
test(function() {
return m.deps.factory.toString().indexOf("console") < 0
})
}
//mocks