Commit 0c3c730

mo khan <mo@mokhan.ca>
2016-12-23 21:02:19
fix broken spec.
1 parent 504e839
Changed files (2)
app
services
commands
app/services/commands/__tests__/login-command_spec.js
@@ -4,11 +4,13 @@ describe("LoginCommand", () => {
   let subject = null;
   let eventAggregator = null;
   let api = null;
+  let storage = null;
 
   beforeEach(() => {
     api = { post: jest.fn() };
     eventAggregator = { publish: jest.fn() };
-    subject = new LoginCommand(eventAggregator, api);
+    storage = { save: jest.fn() };
+    subject = new LoginCommand(eventAggregator, api, storage);
   });
 
   describe("#notify", () => {
package.json
@@ -21,6 +21,7 @@
     "react-test-renderer": "15.4.1"
   },
   "jest": {
-    "preset": "react-native"
+    "preset": "react-native",
+    "transformIgnorePatterns": [ "node_modules/(?!react-native|native-base|react-clone-referenced-element|tcomb-form-native)" ]
   }
 }