Created
September 23, 2014 22:00
-
-
Save anonymous/1d816e9976ee61bf6786 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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