Commit Graph

265 Commits

Author SHA1 Message Date
Matteo Pagliazzi
8b79f74e54 fix tests 2015-12-19 18:23:13 +01:00
Matteo Pagliazzi
3e87c8d3e9 fix some tests 2015-12-19 18:07:39 +01:00
Keith Holliday
33525b105f Added initial group POST tests 2015-12-18 23:43:57 -06:00
Sabe Jones
c7b3e3c3e1 fix(test): Remove only 2015-12-17 18:50:26 -05:00
Sabe Jones
c3b981dc91 test(api): chat WIP 2015-12-17 18:48:10 -05:00
Matteo Pagliazzi
2e5c7df94f Merge pull request #6343 from HabitRPG/api-v3-tasks2
[API v3] Tasks 2
2015-12-16 13:18:05 +01:00
Matteo Pagliazzi
35316ebeb6 move completed todos outside of tasksOrder (and back) with tests 2015-12-16 12:57:19 +01:00
Matteo Pagliazzi
d9e786ebaa checklists tests 2015-12-16 12:29:03 +01:00
Matteo Pagliazzi
13cbf03759 use cron middleware 2015-12-15 12:11:32 +01:00
Matteo Pagliazzi
e547eb2dde add tests for tags ops on tasks 2015-12-14 22:44:50 +01:00
Matteo Pagliazzi
da154d3ea3 tests for tags (missed some files before) 2015-12-14 21:56:29 +01:00
Blade Barringer
6709c83804 tests(apiv3): Remove incorrect tests 2015-12-14 12:37:59 -06:00
Blade Barringer
9205f01e01 tests(apiv3): Use lessThan and greaterThan expectation syntax 2015-12-14 12:13:02 -06:00
Blade Barringer
ac61809fc0 tests(apiv3): Remove user dependency 2015-12-14 12:00:23 -06:00
Blade Barringer
c20617e185 tests(apiv3): Remove unused dependency 2015-12-14 09:00:22 -06:00
Matteo Pagliazzi
409102ae19 wip score tests 2015-12-13 23:51:06 +01:00
Blade Barringer
65bb655a10 Merge branch 'develop' into api-v3 2015-12-13 16:39:59 -06:00
Matteo Pagliazzi
a34f41f0f7 misc fixes, GET user (with tests), more comments for preenHistory 2015-12-13 20:08:14 +01:00
Matteo Pagliazzi
e6d9c978f7 change score task route 2015-12-11 11:41:46 +01:00
Matteo Pagliazzi
c5b7873406 add support for habitica-android in x-client header 2015-12-09 11:02:26 +01:00
Matteo Pagliazzi
6a0f9564e0 begins testing score task route 2015-12-09 10:40:40 +01:00
Matteo Pagliazzi
237be08a61 GET-tasks_id tests 2015-12-07 21:15:02 +01:00
Matteo Pagliazzi
3c4491606b finish PUT-tasks_id tests and fix some edge bugs 2015-12-07 21:00:15 +01:00
Matteo Pagliazzi
0272a36bac finish implementing tests for POST-tasks.test.js 2015-12-07 14:22:54 +01:00
Matteo Pagliazzi
66a675c5b0 simplify some tests, replace tags when updating tags (like for checklist) 2015-12-06 17:29:14 +01:00
Matteo Pagliazzi
955b0f042b fix tests 2015-12-06 17:07:29 +01:00
Matteo Pagliazzi
cb08c383b9 misc fixes, add tests for some tasks routes 2015-12-06 16:51:18 +01:00
Blade Barringer
8a872bd8c0 tests: Add pending tests for scoring tasks 2015-12-04 11:12:25 -06:00
Blade Barringer
834ae123e8 tests: Add pending test for GET /tasks 2015-12-04 10:56:54 -06:00
Blade Barringer
431fc571fa tests: Add pending tests for getting a specific task in v3 2015-12-04 10:55:15 -06:00
Blade Barringer
5aca166837 tests: Add delete task integration test for v3 2015-12-04 10:50:41 -06:00
Blade Barringer
1a2cda0835 tests: Add additional pending tests 2015-12-04 10:39:20 -06:00
Blade Barringer
49cc6db05b tests(tasks): Rename test to conform to route style 2015-12-04 10:25:27 -06:00
Blade Barringer
b0bcfff12d tests(tasks): Add pending tests for create task test 2015-12-04 10:24:40 -06:00
Blade Barringer
c2ba90afcc tests(fix): Add return to expect promise in create task test 2015-12-04 09:13:50 -06:00
Matteo Pagliazzi
a6648fc638 add tags routes, misc fixes 2015-12-03 19:19:53 +01:00
Matteo Pagliazzi
c0a99eec8b fix user model, sanitize some fields on task creation, add some tests and comments 2015-12-03 18:15:22 +01:00
Matteo Pagliazzi
506609cc29 starts writing tests for tasks, fix errors in auth middleware and tasks methods 2015-12-03 17:48:32 +01:00
Matteo Pagliazzi
427c805ea5 fix user tests and misc changes 2015-12-02 11:22:53 +01:00
Matteo Pagliazzi
3002db3d75 add ability to update tasks, can pass additional fields to Model.sanitize at runtime 2015-11-29 19:05:24 +01:00
Matteo Pagliazzi
d67836ee1f allow for additional transform functions for toJSON and sanitize 2015-11-25 15:42:29 +01:00
Matteo Pagliazzi
94fc1c9bef baseModel: delete properties instead of setting them to undefined, transform toJSON only not toObject 2015-11-25 15:19:21 +01:00
Matteo Pagliazzi
3f1faf113e add baseModel plugin with some tests 2015-11-24 18:51:48 +01:00
Matteo Pagliazzi
1bf91030c6 format express-validator errors 2015-11-23 21:34:21 +01:00
Matteo Pagliazzi
4a941deece remove success field from json responses 2015-11-23 21:04:21 +01:00
Matteo Pagliazzi
645095e58f fix errorHandler tests, add tests for res.respond 2015-11-23 13:28:25 +01:00
Matteo Pagliazzi
349122c9a1 add res.respond, fix linting 2015-11-23 13:01:47 +01:00
Matteo Pagliazzi
a26f713e18 misc fixes, add ability to attach local auth to social user 2015-11-23 12:47:15 +01:00
Blade Barringer
78cdc1753f tests(api): Add test for registering with an invalid email 2015-11-21 13:52:09 -06:00
Blade Barringer
49e7799baa tests(api): clean up code style of test file 2015-11-21 13:51:31 -06:00