Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2014 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1d816e9976ee61bf6786 to your computer and use it in GitHub Desktop.
Save anonymous/1d816e9976ee61bf6786 to your computer and use it in GitHub Desktop.
diff --git a/browser/components/loop/test/shared/views_test.js b/browser/components/loop/test/shared/views_test.js
index cdcf6a8..de6ddbb 100644
--- a/browser/components/loop/test/shared/views_test.js
+++ b/browser/components/loop/test/shared/views_test.js
@@ -20,6 +20,9 @@ describe("loop.shared.views", function() {
beforeEach(function() {
sandbox = sinon.sandbox.create();
sandbox.useFakeTimers(); // exposes sandbox.clock as a fake timer
+ sandbox.stub(l10n, "get", function(x) {
+ return "translated:" + x;
+ });
});
afterEach(function() {
@@ -424,9 +427,6 @@ describe("loop.shared.views", function() {
var comp, fakeFeedbackApiClient;
beforeEach(function() {
- sandbox.stub(l10n, "get", function(x) {
- return x;
- });
fakeFeedbackApiClient = {send: sandbox.stub()};
comp = TestUtils.renderIntoDocument(sharedViews.FeedbackView({
feedbackApiClient: fakeFeedbackApiClient
@@ -601,9 +601,6 @@ describe("loop.shared.views", function() {
}
beforeEach(function() {
- sandbox.stub(l10n, "get", function(x) {
- return "translated:" + x;
- });
coll = new sharedModels.NotificationCollection();
view = mountTestComponent({notifications: coll});
testNotif = {level: "warning", message: "foo"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment