add travis build icon
This commit is contained in:
parent
1ff4b3ccf6
commit
b6dd52bd6a
2 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
[](https://travis-ci.org/lhorie/mithril.js)
|
||||
|
||||
# Mithril
|
||||
|
||||
A Javascript Framework for Building Brilliant Applications
|
||||
|
|
|
|||
|
|
@ -432,7 +432,12 @@ test.print = function(print) {
|
|||
print(test.failures[i].toString())
|
||||
}
|
||||
print("tests: " + test.total + "\nfailures: " + test.failures.length)
|
||||
|
||||
if (test.failures.length > 0) {
|
||||
throw new Error(test.failures.length + " tests did not pass")
|
||||
}
|
||||
}
|
||||
|
||||
var mock = {}
|
||||
mock.window = new function() {
|
||||
var window = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue