add more specs
This commit is contained in:
parent
7417dc5923
commit
55bee713e9
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,13 @@ describe("Diaspora", function() {
|
|||
expect(Diaspora.widgets.i18n.t("yo.hi.sup.test")).toEqual("test");
|
||||
expect(Diaspora.widgets.i18n.t("more.another")).toEqual("i hope this spec is green");
|
||||
});
|
||||
it("can render a mustache template", function() {
|
||||
Diaspora.widgets.i18n.loadLocale({yo: "{{yo}}"}, "en");
|
||||
expect(Diaspora.widgets.i18n.t("yo", {yo: "it works!"})).toEqual("it works!");
|
||||
});
|
||||
it("returns an empty string if the translation is not found", function() {
|
||||
expect(Diaspora.widgets.i18n.t("thisstringdoesnotexist")).toEqual("");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue