Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Fix login flow, and add mock API responses #29

Merged
merged 3 commits into from
Sep 4, 2016

Conversation

colbycheeze
Copy link
Contributor

@colbycheeze colbycheeze commented Sep 4, 2016

closes #21
The previous login saga was using the demo ID, instead of the userid.
When updating the code, I realized I didn't have a way for the saga tests to fail if the State changes from what I expected it to be when I wrote the tests...so I now use reducers and mock api responses to more accurately represent what is happening (and mostly have the tests fail properly)

Also updated dashboard saga tests to properly fail if state is not as
expected, therefore causing the calls to send null values.
@colbycheeze colbycheeze added this to the 9/8 - Sprint milestone Sep 4, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+1.07%) to 95.804% when pulling f956b7a on colbycheeze:fix-login into 4e70d12 on IBM-Bluemix:dev.

@rvennam
Copy link
Contributor

rvennam commented Sep 4, 2016

LGTM

@rvennam rvennam closed this Sep 4, 2016
@colbycheeze
Copy link
Contributor Author

Did you mean to close it without merging?

@rvennam rvennam reopened this Sep 4, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+1.07%) to 95.804% when pulling f956b7a on colbycheeze:fix-login into 4e70d12 on IBM-Bluemix:dev.

@colbycheeze colbycheeze merged commit 2b0f00b into IBM-Cloud:dev Sep 4, 2016
@colbycheeze colbycheeze deleted the fix-login branch September 4, 2016 15:31
l2fprod added a commit that referenced this pull request Sep 5, 2016
* ignore node_modules across build stages

* Global theme reference (#20)

* Copy most project config to storybook webpack

this fixes a few things…

* Add a way to reference global theme colors as variables

* adding jsdom as dev dependency - ava.config.js depends on it and when running in the build pipeline it is not found.
IBM-Cloud/logistics-wizard#190

* Fix errors in test (#23)

Also fixed all lint errors and warnings

* inject the controller service url during the build phase

* use a valid but non existent url

* append /api/v1 to controller url

* move manifest to dist to reduce the size of the artifacts directory in the build pipeline - to speed up the build

* inject a __CONTROLLER_API__ variable through the config globals - similar capability as the transform env var modules
#17

* path = . is the default, removing it.
#17

* trying node v5 to circumvent --harmony-proxies issue.
#17

* propagate CONTROLLER_API to unit test
#17

* Add some config for Travis and Coveralls (#26)

* Add some config for Travis and Coveralls
* Updated node version in travis.yml
* Tests now auto assign global from config

* document CONTROLLER_API in globals

* Fix login flow, and add mock API responses (#29)

* Began writing tests for Dashboard module

* Add mock api

* Fixed login flow to call userid, not demo id

Also updated dashboard saga tests to properly fail if state is not as
expected, therefore causing the calls to send null values.

closes #21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the login flow
3 participants