Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1465)

Unified Diff: remoting/webapp/unittests/apps_v2_migration_unittest.js

Issue 1002553002: Refactor sinon helper to make it easier to use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/js_proto/sinon_stub_proto.js ('k') | remoting/webapp/unittests/base_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/unittests/apps_v2_migration_unittest.js
diff --git a/remoting/webapp/unittests/apps_v2_migration_unittest.js b/remoting/webapp/unittests/apps_v2_migration_unittest.js
index 805995aab016dd196a35d0a700e923d518a5b9df..097a80f598d3604e85f1dbcf63c0d3de49362953 100644
--- a/remoting/webapp/unittests/apps_v2_migration_unittest.js
+++ b/remoting/webapp/unittests/apps_v2_migration_unittest.js
@@ -59,7 +59,7 @@ function setMigrationData_(v1UserName, v1UserEmail, v1HasHosts) {
module('AppsV2Migration', {
setup: function() {
chromeMocks.activate(['storage']);
- mockIsAppsV2 = sinon.$setupStub(base, 'isAppsV2');
+ mockIsAppsV2 = sinon.stub(base, 'isAppsV2');
remoting.identity = new remoting.Identity();
},
teardown: function() {
« no previous file with comments | « remoting/webapp/js_proto/sinon_stub_proto.js ('k') | remoting/webapp/unittests/base_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698