A platform for community discussion. Free, open, simple.
Avoid console error in tests
Samb05ada3208db
diff --git a/app/assets/javascripts/discourse/components/composer-title.js.es6 b/app/assets/javascripts/discourse/components/composer-title.js.es6index 23d5443b0cc..9fc446930af 100644--- a/app/assets/javascripts/discourse/components/composer-title.js.es6+++ b/app/assets/javascripts/discourse/components/composer-title.js.es6@@ -53,7 +53,11 @@ export default Ember.Component.extend({if (this.get('autoPosted') || !this.get('watchForLink')) { return; }if (Ember.testing) {- this._checkForUrl();+ Em.run.next(() =>+ // not ideal but we don't want to run this in current+ // runloop to avoid an error in console+ this._checkForUrl()+ );} else {Ember.run.debounce(this, this._checkForUrl, 500);}