Commit Graph

87 Commits

Author SHA1 Message Date
Blade Barringer
e82085ac1b tests(helpers): Add common helpers for generating tasks 2015-12-13 16:22:58 -06:00
Blade Barringer
70751abe01 tests(helpers): Add helper to generate user for common and content tests 2015-12-13 10:40:00 -06:00
Blade Barringer
eded44fea5 Adjust helper files for linting preferences. 2015-11-18 08:54:34 -06:00
Blade Barringer
3a13a5ee2c Remove unneeded coffeescript requires in tests. 2015-11-11 20:32:17 -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
Blade Barringer
8e9a08ba46 Add helper to run all tests in directory 2015-09-29 08:59:42 -05:00
Blade Barringer
1b9c7c51c2 Set up content tests 2015-09-29 07:55:13 -05:00