Commit Graph

82 Commits

Author SHA1 Message Date
Blade Barringer
93d50e4f60 fix: Correct get tasks route to properly get todos (#7349) 2016-05-18 16:54:02 +02:00
Alys
810e4cbd78 completed To-Dos: return the 30 most recent instead of 30 oldest (#7318) 2016-05-17 08:13:47 +02:00
Keith Holliday
dbd6daeca0 Updated task model to allow setting streak (#7306) 2016-05-16 20:12:46 +02:00
Matteo Pagliazzi
6380161321 Api v3 Migration (WIP) (#7131)
* v3 migration: remove old code and polish user migration

* v3 migration: start to work on challenges

* wip v3 migration

* wip v3 migration: fix _id -> id for reminders, tags and checklists
2016-04-30 18:34:16 +02:00
Blade Barringer
33c0cdd569 chore(lint): lint files in preparation for eslint v2 2016-04-15 08:37:05 -05:00
Matteo Pagliazzi
6458796a36 v3: first review of common code and task models 2016-04-12 19:30:39 +02:00
Matteo Pagliazzi
c3945de098 fix tasks updating and reminders tests 2016-04-04 17:18:42 +02:00
Matteo Pagliazzi
e68ebee980 temporarily skip challenge task deletion test 2016-03-19 13:10:40 +01:00
Keith Holliday
b46219adc5 Added tests for challenge task scoring and moved scoring code to model 2016-03-18 14:00:14 -05:00
Matteo Pagliazzi
7c005e7c68 fix typo in tests and increase sleep time 2016-03-17 15:20:41 +01:00
Matteo Pagliazzi
5b2584871e increase sleep time when testing "allows user to delete challenge task after challenge task is broken" 2016-03-15 19:07:01 +01:00
Keith Holliday
534ec07b6a Added tests to ensure challenge member can not delete active challenge task and can delete broken or unlinked challenge task 2016-03-15 10:03:48 -05:00
Keith Holliday
c04e53b5a5 Added initial delete challenge tasks tests 2016-03-12 21:00:43 -06:00
Matteo Pagliazzi
13a86c3858 Merge pull request #6869 from TheHollidayInn/api-v3-remove-challenge-checklist-item
Added initial test for removing challenge checklist item
2016-03-12 18:08:27 +01:00
Matteo Pagliazzi
ce916e31bd Merge pull request #6866 from TheHollidayInn/api-v3-updated-checklist-item
Added initial checklist item update tests
2016-03-12 18:07:50 +01:00
Keith Holliday
152f7605cd Added initial test for removing challenge checklist item 2016-03-12 10:55:12 -06:00
Keith Holliday
e4124f9e02 Added initial checklist item update tests 2016-03-12 10:38:40 -06:00
Matteo Pagliazzi
2fa361d9ea Merge pull request #6865 from TheHollidayInn/api-v3-challenge-add-checklist-item
Add initial tests for add checklist item to challenge
2016-03-12 15:56:32 +01:00
Matteo Pagliazzi
8463abb830 Merge pull request #6853 from TheHollidayInn/api-v3-challenge-tasks-put
Added initial challenge task update tests
2016-03-12 14:52:54 +01:00
Keith Holliday
0af912bebb Add initial tests for add checklist item to challenge 2016-03-11 14:19:46 -06:00
Matteo Pagliazzi
8ca4a7ce8a Merge pull request #6824 from TheHollidayInn/api-v3-get-challenge-tasks
Added initial tests for get challenge tasks
2016-03-11 19:16:51 +01:00
Matteo Pagliazzi
29b6e958c6 fix failing tests 2016-03-11 09:51:59 +01:00
Keith Holliday
61e360a1d8 Added initial challenge task update tests 2016-03-10 15:30:22 -06:00
Matteo Pagliazzi
fbdbd8e006 Merge branch 'develop' into api-v3 2016-03-10 18:30:09 +01:00
Keith Holliday
f96de74abd Added test for incorrect task and id and renamed test file 2016-03-09 10:01:16 -06:00
Keith Holliday
22e64bb88e Added initial get challenge task by id 2016-03-08 12:42:05 -06:00
Keith Holliday
0e96840e3d Added initial tests for get challenge tasks 2016-03-04 15:38:32 -06:00
Matteo Pagliazzi
9854d1cf34 add missing test file and update parameters for GET tasks 2016-02-02 11:42:05 +01:00
Matteo Pagliazzi
211a7bb46a add new files for clearCompletedTodos functionality 2016-01-25 17:23:22 +01:00
Matteo Pagliazzi
d5751837ed add clearCompletedTodos route with tests, add test for getting completed todos, misc fixes 2016-01-25 17:23:01 +01:00
Matteo Pagliazzi
ee854229c7 fix dateCompleted not remove from un-completed todos and fix tasks test 2016-01-18 15:01:46 +01:00
Keith Holliday
d93cabafb9 Added initial tests for createChallengeTasks and fixed some issues in the challenge and challengeTask routes 2016-01-17 16:03:19 -06:00
Blade Barringer
965c5dbaa7 Merge branch 'api-v3' into api-v3-groups 2016-01-16 19:46:47 -06:00
Blade Barringer
07f08de989 Merge branch 'improve_tests' into api-v3 2016-01-16 18:12:36 -06:00
Matteo Pagliazzi
2b9aa11598 Merge branch 'api-v3-groups' into api-v3-challenges-tasks 2016-01-14 18:25:59 +01:00
Blade Barringer
799b3780b1 Merge branch 'api-v3' into api-v3-groups 2016-01-13 12:32:48 -06:00
Blade Barringer
b68861681c tests(integration): Create separate helper for api integration tests 2016-01-13 12:32:36 -06:00
Blade Barringer
c9d378ab35 tests(api): bring in await format tests 2016-01-12 18:10:10 -06:00
Blade Barringer
a3fd838677 tests(api): Fix PUT /task test to be valid 2016-01-12 18:01:47 -06:00
Blade Barringer
336d8c9916 tests(api): Clean up misc test styles 2016-01-12 17:36:14 -06:00
Georgi Gardev
ac6a0276ab Refactor Tasks tests to use await syntax 2016-01-12 19:11:59 +02:00
Matteo Pagliazzi
9dfcad238c rename tasks tests to match new routes 2016-01-06 18:41:25 +01:00
Matteo Pagliazzi
8ba486ec12 change tasks routes to /tasks/(user|challenge) 2016-01-06 18:40:11 +01:00
Matteo Pagliazzi
3bc8945bcc adapt current tests and change urls to avoid conflicts 2016-01-04 22:03:21 +01:00
Matteo Pagliazzi
d25cb70f66 wip get and create tasks plus initial user syncing 2016-01-04 19:44:39 +01:00
Blade Barringer
f80f41f764 lint: Correct linting errors in v3 tests 2016-01-03 09:47:27 -06:00
Matteo Pagliazzi
a775c992ab fix linting and add pending test 2016-01-02 18:23:01 +01:00
Matteo Pagliazzi
27065b3f4d more tests for user.tasksOrder 2016-01-02 18:21:06 +01:00
Matteo Pagliazzi
743f98d67d make sure user.tasksOrder is update only when necessary 2016-01-02 17:46:31 +01:00
Matteo Pagliazzi
7490bfae87 update POST-tasks test to async/await syntax 2016-01-02 16:04:39 +01:00