Commit graph

19 commits

Author SHA1 Message Date
Elias Nahum
e94dfb5389
MM-16752 Fix unhandled promise rejection TypeError state.websocket.lastConnectAt (#3039) 2019-08-02 16:13:55 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
Chris Duarte
d206ea68de PLT-6173: Offline redux store (#471)
* PLT-6173: Offline redux store

* Review feedback
2017-04-09 21:51:47 -03:00
enahum
548633f5c0 PLT-5857 replace the service folder with mattermost-redux library (#348) 2017-03-14 10:52:24 -03:00
Harrison Healey
1115d882ca PLT-5566 Added clientside handling to automatically show direct channels (#270)
* Added TestServerUrl config setting

* Added clientside handling to show direct channels in the sidebar when a DM is received
2017-02-17 10:53:46 -05:00
Harrison Healey
9d51a3b970 Added whitelabeling support using assets/override (#156) 2017-01-05 16:32:24 -03:00
enahum
e2f3f7b803 project folder structure (#107)
* project folder structure

* Moving store to be called from app folder
2016-12-09 10:34:17 -05:00
enahum
9125d0cac2 Initial Redux Store (#84)
* Moved SelectServer view state into store

* Moved view state for Login to stores

* Renamed RequestStatus values

* Merged duplicated view state for login

* initial redux store

* Fix eslint

* user store and force logout when necessary

* channel store

* address feedback

* Revert naming the property of data
2016-12-06 15:11:40 -05:00
Harrison Healey
45f8a56d15 Fixed unit tests for the other changes I've made recently (#80)
* Removed mocking from client tests

* Updated Client tests to remove Client.setTeamId

* Fixed actions/general.test.js

* Updated test/reducer/channel.test.js for the updated store structure

* Commented out general reducer tests until the store structure is more finalized

* Properly used the team ID when creating a channel
2016-11-22 11:46:50 -05: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
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
8c3f60e41d Changed actions tests to use TestHelper 2016-10-12 11:30:05 -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