Force jasmine fails on syntax errors

closes #7185
This commit is contained in:
Steffen van Bergerem 2016-11-12 23:30:03 +01:00 committed by Benjamin Neff
parent cdce25374f
commit 37b34237b9
3 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,7 @@
## Refactor ## Refactor
* Use string-direction gem for rtl detection [#7181](https://github.com/diaspora/diaspora/pull/7181) * Use string-direction gem for rtl detection [#7181](https://github.com/diaspora/diaspora/pull/7181)
* Reduce i18n.load side effects [#7184](https://github.com/diaspora/diaspora/pull/7184) * Reduce i18n.load side effects [#7184](https://github.com/diaspora/diaspora/pull/7184)
* Force jasmine fails on syntax errors [#7185](https://github.com/diaspora/diaspora/pull/7185)
## Bug fixes ## Bug fixes
* Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167) * Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167)

View file

@ -0,0 +1,7 @@
window.onerror = function(errorMsg, url, lineNumber) {
describe("Test suite", function() {
it("shouldn't skip tests because of syntax errors", function() {
fail(errorMsg + " in file " + url + " in line " + lineNumber);
});
});
};

View file

@ -53,6 +53,7 @@ helpers:
# - **/*[sS]pec.js # - **/*[sS]pec.js
# #
spec_files: spec_files:
- onerror-fail.js
- "**/**/*[sS]pec.js" - "**/**/*[sS]pec.js"
# src_dir # src_dir