Last active
August 29, 2015 13:57
-
-
Save sergi/9463125 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/apps/communications/contacts/test/unit/mock_iccmanager.js b/apps/communications/contacts/test/unit/mock_iccmanager.js | |
deleted file mode 100644 | |
index 1df8692..0000000 | |
--- a/apps/communications/contacts/test/unit/mock_iccmanager.js | |
+++ /dev/null | |
@@ -1,13 +0,0 @@ | |
-'use strict'; | |
- | |
-var MockIccManager = function() { | |
- this.iccIds = []; | |
-}; | |
- | |
-MockIccManager.prototype.getIccById = function(id) { | |
- return { | |
- 'iccInfo': { | |
- 'iccid': id | |
- } | |
- }; | |
-}; | |
diff --git a/apps/communications/contacts/test/unit/views/settings_test.js b/apps/communications/contacts/test/unit/views/settings_test.js | |
index 23cf7eb..6128359 100644 | |
--- a/apps/communications/contacts/test/unit/views/settings_test.js | |
+++ b/apps/communications/contacts/test/unit/views/settings_test.js | |
@@ -2,8 +2,8 @@ require('/shared/js/lazy_loader.js'); | |
require('/shared/test/unit/mocks/mock_navigator_moz_settings.js'); | |
require('/shared/test/unit/mocks/mock_navigator_moz_mobile_connections.js'); | |
require('/shared/test/unit/mocks/mock_navigator_moz_mobile_connection.js'); | |
+require('/shared/test/unit/mocks/mock_iccmanager.js'); | |
requireApp('communications/contacts/test/unit/mock_contacts_index.html.js'); | |
-requireApp('communications/contacts/test/unit/mock_iccmanager.js'); | |
requireApp('communications/contacts/test/unit/mock_navigation.js'); | |
requireApp('communications/contacts/test/unit/mock_contacts.js'); | |
requireApp('communications/contacts/test/unit/mock_asyncstorage.js'); | |
diff --git a/apps/settings/test/unit/mock_iccmanager.js b/apps/settings/test/unit/mock_iccmanager.js | |
deleted file mode 100644 | |
index 1df8692..0000000 | |
--- a/apps/settings/test/unit/mock_iccmanager.js | |
+++ /dev/null | |
@@ -1,13 +0,0 @@ | |
-'use strict'; | |
- | |
-var MockIccManager = function() { | |
- this.iccIds = []; | |
-}; | |
- | |
-MockIccManager.prototype.getIccById = function(id) { | |
- return { | |
- 'iccInfo': { | |
- 'iccid': id | |
- } | |
- }; | |
-}; | |
diff --git a/apps/settings/test/unit/utils_test.js b/apps/settings/test/unit/utils_test.js | |
index 0a643a3..455f556 100644 | |
--- a/apps/settings/test/unit/utils_test.js | |
+++ b/apps/settings/test/unit/utils_test.js | |
@@ -4,7 +4,7 @@ | |
'use strict'; | |
require('/apps/settings/test/unit/mock_dsds_settings.js'); | |
-require('/apps/settings/test/unit/mock_iccmanager.js'); | |
+require('/shared/test/unit/mocks/mock_iccmanager.js'); | |
require('/apps/settings/test/unit/mock_l10n.js'); | |
mocha.globals(['DsdsSettings', 'reopenSettings', 'openLink', 'openDialog', | |
diff --git a/shared/test/unit/mocks/mock_iccmanager.js b/shared/test/unit/mocks/mock_iccmanager.js | |
new file mode 100644 | |
index 0000000..1df8692 | |
--- /dev/null | |
+++ b/shared/test/unit/mocks/mock_iccmanager.js | |
@@ -0,0 +1,13 @@ | |
+'use strict'; | |
+ | |
+var MockIccManager = function() { | |
+ this.iccIds = []; | |
+}; | |
+ | |
+MockIccManager.prototype.getIccById = function(id) { | |
+ return { | |
+ 'iccInfo': { | |
+ 'iccid': id | |
+ } | |
+ }; | |
+}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment