add travis build icon

This commit is contained in:
Leo Horie 2014-03-25 21:54:15 -04:00
parent 1ff4b3ccf6
commit b6dd52bd6a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/lhorie/mithril.js.svg?branch=master)](https://travis-ci.org/lhorie/mithril.js)
# Mithril
A Javascript Framework for Building Brilliant Applications

View file

@ -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 = {}