added test to prevent releases w/ console.log
This commit is contained in:
parent
9794c534eb
commit
dc379a4cf8
7 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue