Fix locale loading in stream spec
This commit is contained in:
parent
f732d20f0c
commit
6d6445b00a
1 changed files with 2 additions and 2 deletions
|
|
@ -46,12 +46,12 @@ describe("Stream", function() {
|
|||
it("changes the text on the show comments link", function() {
|
||||
link = $("a.show_post_comments");
|
||||
Diaspora.widgets.i18n.loadLocale(
|
||||
{'comments.hide': 'comments.hide pl'}, 'en');
|
||||
{'comments' : {'hide': 'comments.hide pl'}}, 'en');
|
||||
expect(link.text()).toEqual("show all comments");
|
||||
Stream.toggleComments.call(
|
||||
link, {preventDefault: function(){} }
|
||||
);
|
||||
jasmine.Clock.tick(200);
|
||||
jasmine.Clock.tick(400);
|
||||
expect(link.text()).toEqual("comments.hide pl");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue