Commit Graph

52 Commits

Author SHA1 Message Date
Blade Barringer dcca17fa4e Set up i18n in unit test helper. 2015-11-16 08:12:45 -06:00
Blade Barringer 9ec39a597e Set up i18n in test helpers 2015-11-16 08:07:28 -06:00
Blade Barringer 6ba9027252 Switch out babel for babel-core 2015-11-15 15:15:52 -06:00
Blade Barringer 810a818334 Add headers to req generator and unpend failing test. 2015-11-13 09:36:18 -06:00
Blade Barringer be672e570c Merge branch 'api-v3' into api-v3-i18n 2015-11-13 07:44:48 -06:00
Blade Barringer 6e8e1648d9 Merge branch 'develop' into api-v3 2015-11-13 07:38:24 -06:00
Matteo Pagliazzi de21b72027 move old i18n version to api-v2 folder and use new i18n where possible 2015-11-12 16:43:02 +01:00
Blade Barringer 3a13a5ee2c Remove unneeded coffeescript requires in tests. 2015-11-11 20:32:17 -06:00
Blade Barringer c91c3f78ed Remove lodash.defaultsDeep dependency 2015-11-11 06:44:45 -06:00
Blade Barringer c8ee1eaaec Add support for passing in custom env file to nconf. 2015-11-09 18:41:04 -06:00
Blade Barringer 851631e465 Fix build errors 2015-11-09 08:19:24 -06:00
Blade Barringer 9451e7239b Add nconf setup to unit test helper 2015-11-08 09:01:25 -06:00
Blade Barringer 3559be0f83 Use toObject instead of _doc 2015-11-07 09:42:57 -06:00
Blade Barringer 1eadceea3d Add status to default res 2015-11-07 09:25:43 -06:00
Blade Barringer e657a30320 Add next generator for easier controller testing. 2015-11-07 08:32:02 -06:00
Blade Barringer 94dbb25fa6 Add unit helper 2015-11-06 21:28:47 -06:00
Blade Barringer 6e344ce04b Add sandbox as a global 2015-11-06 21:28:31 -06:00
Blade Barringer 303b88b6fa Adjust api tests 2015-11-06 21:28:19 -06:00
Blade Barringer aaa4a7da12 Add sinon to helpers 2015-11-04 20:45:51 -06:00
Blade Barringer 8618716ca4 Update requester to take in additional set parameters. 2015-11-04 17:40:10 -06:00
Blade Barringer 8c95de0835 Move api tests to v2 namespace 2015-11-03 08:31:20 -06:00
Matteo Pagliazzi ed0e4c6d20 Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other \
for the upcoming api v3

Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other for the upcoming api v3

move api v2 routes in a separate folder, rename apiv1 file for better readability, remove auth routes for api v1

move api-v2 controllers in subdirectory

move unorganized files to /libs

fix gulp requires and separate server in old (api v1 and v2) and new (api v3) app

fix require paths

fix require paths

fix require paths

put api v1 back

Reorganize files under /src and separate express app in one for api v1 and v2 and the other for v3
2015-11-02 17:43:32 +01:00
Blade Barringer 421b402948 Add helper to check the existence of a document 2015-10-31 10:55:28 -05:00
Blade Barringer 6a65711c2f Close db connections in helpers 2015-10-31 10:55:17 -05:00
Blade Barringer aa111b3c1a Update tests to assert against translation strings 2015-10-30 09:01:57 -05:00
Blade Barringer 04fbdaa107 Reinstate error code in resolve promise for api tests. 2015-10-26 07:53:51 -05:00
Blade Barringer 01914523e1 Remove dependency on chai-shallow-deep-equal 2015-10-25 12:50:14 -05:00
Blade Barringer f98c6b7192 Add chai-shallow-deep-equal plugin 2015-10-25 09:40:23 -05:00
Blade Barringer 661d070b56 Add additional tests for register route 2015-10-24 22:28:04 -05:00
Blade Barringer b763aedd29 Change helper to reject only error message 2015-10-24 22:23:30 -05:00
Blade Barringer 7ad2e6d1ff Add comments to helper methods 2015-10-23 12:32:15 -05:00
Blade Barringer abf4b1c643 Fix bug where tests were failing erroneously 2015-10-22 12:46:54 -05:00
Blade Barringer d28450d52a Port groups /leave tests to new integration tests. 2015-10-22 12:28:26 -05:00
Blade Barringer cd224ac8d8 Add members attribute to tavern 2015-10-18 09:59:39 -05:00
Blade Barringer 63b17f0173 Create method to reset habitica db 2015-10-18 08:47:14 -05:00
Blade Barringer ece2985eb0 Return better error when connection can't be established 2015-10-18 08:46:47 -05:00
Blade Barringer 4fa82ba196 Update generated document with update object 2015-10-18 07:00:48 -05:00
Blade Barringer 24001c5c66 Create generate group function 2015-10-18 06:15:38 -05:00
Blade Barringer 8f7ecf7d7c Rename uuid function 2015-10-18 06:03:22 -05:00
Blade Barringer ab2b564a03 Update error check 2015-10-17 21:24:46 -05:00
Blade Barringer 477fb8edcb Add missing semicolon 2015-10-17 20:38:18 -05:00
Blade Barringer 75f63b1367 Add functionality to generate user to update user 2015-10-17 19:19:40 -05:00
Blade Barringer c51caa0664 Add generate new user helper 2015-10-17 18:27:19 -05:00
Blade Barringer de6a853aaf Adjust api helper 2015-10-17 18:05:44 -05:00
Blade Barringer 02e9775ba7 Set up new api test structure 2015-10-17 12:37:17 -05:00
Blade Barringer a61632fa92 Set up api tests 2015-10-16 21:56:46 -05:00
Blade Barringer 4b46a0e9fc Convert other globals to exported functions 2015-10-03 10:48:42 -05:00
Blade Barringer d4843d958d Remove unneded function 2015-10-03 10:31:20 -05:00
Blade Barringer 8987645725 Export constants instead of putting them on global scope 2015-10-03 10:26:10 -05:00
Blade Barringer 53a51ca3db Create helper function for testing items in object 2015-10-03 09:00:06 -05:00