Commit 9e602cf

mo khan <mo@mokhan.ca>
2016-12-04 03:53:49
remove some logging.
1 parent 42c17b3
Changed files (2)
app
app/commands/__tests__/login-command_spec.js
@@ -12,12 +12,6 @@ describe("LoginCommand", () => {
   });
 
   describe("#notify", () => {
-    it ("does something", () => {
-      const func = jest.fn();
-      func();
-      expect(func).toHaveBeenCalled();
-    });
-
     it("posts data to the api", () => {
       subject.notify({event: 'LOGIN', username: 'mokha', password: 'password'});
       expect(api.post).toHaveBeenCalled();
@@ -25,10 +19,10 @@ describe("LoginCommand", () => {
   });
 
   describe("#onResponse", () => {
-    it("publishes an event", () => {
-      username = 'mokha';
-      token = 'token';
+    let username = 'mokha';
+    let token = 'token';
 
+    it("publishes an event", () => {
       subject.onResponse({
         username: username,
         authentication_token: token,
app/screens/login-screen.js
@@ -55,8 +55,6 @@ export default class LoginScreen extends ApplicationComponent {
   }
 
   notify(event) {
-    console.log("IN LOGIN SCREEN");
-    console.log(event);
     this.props.navigator.push({
       component: DashboardScreen, params: { username: username }
     });