Commit graph

17 commits

Author SHA1 Message Date
Mike Piccolo
25f284a068 Add logout to the topnav (#45)
* WIP

* Remove session token after logout.

* Add logout reducer test

* Pop stack to login

* Use newProps and doFetchWithResponse

* Setup the reducers to clear the store
2016-10-20 11:49:03 -07:00
Mike Piccolo
31206b397b Cover general and device reducers 2016-10-18 23:17:27 -07:00
Mike Piccolo
8e3ba08ad3 Initial reducer tests 2016-10-18 23:17:27 -07:00
Harrison Healey
543ccb8fe6 Switched client.js to fully use Promises (#23)
* Made sanity tests run without an internet connection

* Removed onRequest parameter from Client methods

* Switched client.js to fully use Promises

* Fix mock response for login

* Fixed test_helper.js to actually use the configured url
2016-10-18 10:46:30 -04:00
Thomas Hopkins
829972694b Add functionality for fetching + selecting teams & channels (#17)
* WIP-working-routes

* Fix imports

* WIP

* Remove unused proptypes & imports from SelectTeam

* Appease eslint

* Disable non-applicable eslint rules in routes & styles

* Change endpoint for fetching teams

* Handle failure to fetch teams

* Fix proptypes in ErrorText

* Add action for selecting team

* Allow user to select a channel

* Save exact versions of npm packages

* Add lodash

* Fetch teams for user to select from

* Don't require onProceed prop on SelectServer

* Abstract out the api logic from actions

* Handle fetch implementation discrepancy when parsing headers

* Remove example components

* Appease eslint

* Fix disabling of fetch-mock

* Remove response headers parsing hack

* Set mock fetch flag in config.json
2016-10-17 15:47:47 -04:00
Thomas Hopkins
8611b3e28a Use fetch-mock to mock requests in tests (#18)
* Use fetch-mock to mock requests in tests

* Use flag to enable/disable fetch-mock
2016-10-17 14:37:18 -04:00
Harrison Healey
ebf6a95561 Added basic config file (#20)
* Added basic config file

* Replaced Object.assign with spread
2016-10-17 11:38:59 -04:00
Harrison Healey
fa30d29449 Removed isomorphic-fetch from non-test code (#8) 2016-10-12 18:02:12 -04:00
Harrison Healey
8c3f60e41d Changed actions tests to use TestHelper 2016-10-12 11:30:05 -04:00
Harrison Healey
15a44ad453 Fixed actions unit tests and dispatching them 2016-10-11 17:34:15 -04:00
Harrison Healey
2cfc210318 Moved client tests into a single folder 2016-10-11 16:44:15 -04:00
Harrison Healey
f7dd914562 Refactored Client methods so that arguments come before callbacks to match webapp 2016-10-11 16:41:03 -04:00
Harrison Healey
7599d77558 Added full TestHelper.initBasic and some more client tests 2016-10-11 16:33:35 -04:00
Harrison Healey
559ea98840 Added some more client APIs and refactored the client so it doesn't return a function 2016-10-11 15:50:08 -04:00
Harrison Healey
748f08a847 Changed Client to no longer be a singleton and added TestHelper 2016-10-11 11:47:34 -04:00
Harrison Healey
b86718f467 Started adding separate client tests from redux tests 2016-10-11 11:21:15 -04:00
Harrison Healey
723b32a6e2 Updated packages, switched to mocha for testing 2016-10-07 11:11:14 -04:00