Make sure there always was a call to Diaspora.I18n.loadLocale before running a jasmine spec
This commit is contained in:
parent
ad20a8487b
commit
363103cdaf
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ beforeEach(function() {
|
||||||
var Page = Diaspora.Pages["TestPage"];
|
var Page = Diaspora.Pages["TestPage"];
|
||||||
$.extend(Page.prototype, Diaspora.EventBroker.extend(Diaspora.BaseWidget));
|
$.extend(Page.prototype, Diaspora.EventBroker.extend(Diaspora.BaseWidget));
|
||||||
|
|
||||||
|
Diaspora.I18n.loadLocale({}, 'en');
|
||||||
|
|
||||||
Diaspora.page = new Page();
|
Diaspora.page = new Page();
|
||||||
Diaspora.page.publish("page/ready", [$(document.body)]);
|
Diaspora.page.publish("page/ready", [$(document.body)]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue