Don't warn intentional errors in tests

It's too noisy
This commit is contained in:
Michael Lange
2017-12-11 16:20:13 -08:00
parent 534376ac62
commit fbdf3ed3cb

View File

@@ -33,7 +33,7 @@ export default Controller.extend({
run.next(() => {
throw this.get('error');
});
} else {
} else if (!Ember.testing) {
run.next(() => {
// eslint-disable-next-line
console.warn('UNRECOVERABLE ERROR:', this.get('error'));