From 09ecaec0b57603a66593aa19ba1798bd9dffd338 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Sat, 15 Jan 2022 12:53:51 -0800 Subject: [PATCH] Fix order-dependent Jasmine failure due to missing translation key There must be another Jasmine spec that modifies the locale without loading the default afterwards. --- spec/javascripts/app/app_spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/javascripts/app/app_spec.js b/spec/javascripts/app/app_spec.js index fd67560eb..5690becc2 100644 --- a/spec/javascripts/app/app_spec.js +++ b/spec/javascripts/app/app_spec.js @@ -1,4 +1,8 @@ describe("app", function() { + beforeAll(function() { + Diaspora.I18n.load(spec.defaultLocale, "en"); + }); + afterAll(function() { Backbone.history.stop(); app.initialize();