fix javascript i18n specs
This commit is contained in:
parent
9046273ebd
commit
4484bf33fa
2 changed files with 2 additions and 5 deletions
|
|
@ -8,8 +8,8 @@
|
||||||
Diaspora.widgets.add("i18n", function() {
|
Diaspora.widgets.add("i18n", function() {
|
||||||
this.start = $.noop;
|
this.start = $.noop;
|
||||||
|
|
||||||
this.language = undefined;
|
this.language = "en";
|
||||||
this.locale = undefined;
|
this.locale = {};
|
||||||
|
|
||||||
this.loadLocale = function(locale, language) {
|
this.loadLocale = function(locale, language) {
|
||||||
this.language = language;
|
this.language = language;
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,6 @@
|
||||||
* To change this template use File | Settings | File Templates.
|
* To change this template use File | Settings | File Templates.
|
||||||
*/
|
*/
|
||||||
describe("Diaspora", function() {
|
describe("Diaspora", function() {
|
||||||
beforeEach(function() {
|
|
||||||
Diaspora.widgets.i18n.loadLocale(null/* TODO: spec.retrieveFixture("locale")*/, "en");
|
|
||||||
});
|
|
||||||
describe("widgets", function() {
|
describe("widgets", function() {
|
||||||
describe("i18n", function() {
|
describe("i18n", function() {
|
||||||
describe("loadLocale", function() {
|
describe("loadLocale", function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue