Commit Graph

76 Commits

Author SHA1 Message Date
Matteo Pagliazzi 10583b78de fix challenge unit tests 2016-04-04 17:18:42 +02:00
Matteo Pagliazzi de74fae0b4 v3: port coupons 2016-04-02 16:37:55 +02:00
Matteo Pagliazzi 6cbbdcdcbe v3: port static pages, make routes lib more flexible, share middlewares between v2 and v3, port v1, simplify server.js 2016-04-01 19:07:03 +02:00
Matteo Pagliazzi 0a906da50c Merge pull request #6918 from TheHollidayInn/api-v3-challenge-task-score-tests
Added tests for challenge task scoring and moved scoring code to model
2016-03-19 12:08:37 +01:00
Blade Barringer e124b1a00b Merge pull request #6894 from TheHollidayInn/api-v3-development-controller
Added development controller, middleware, and initial tests
2016-03-18 16:06:10 -05:00
Keith Holliday a3d7edd0c1 Renamed namespace to debug and added unit test for middleware 2016-03-18 14:05:14 -05: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 6d14b9d5c5 move preening tests to correct location 2016-03-18 02:59:17 +01:00
Matteo Pagliazzi 8e3284a4e3 wip(shared): adapt to v3 2016-03-13 22:26:32 +01:00
Matteo Pagliazzi c6e5e3eb1f Merge pull request #6787 from TheHollidayInn/api-v3-challenge-model-tests
Added initial challenge model tests
2016-03-11 19:17:09 +01:00
Keith Holliday bcc4d568df Moved unlinkChallengeTasks to challenge model and added tests 2016-03-04 11:45:21 -06:00
Matteo Pagliazzi 96c582e062 fix tests, move most errors to shared code 2016-03-03 19:16:03 +01:00
Matteo Pagliazzi 80f791c86b add tests, move CustomError to common, fix casting 2016-03-03 00:16:28 +01:00
Keith Holliday 20621b940e Added better tests to ensure tasks are synced 2016-03-01 14:38:09 -06:00
Matteo Pagliazzi e5224a7b2a add support for user._tmp, disable user.filters since it is not used 2016-02-29 23:20:13 +01:00
Keith Holliday 6e732a67c9 Added initial challenge model tests 2016-02-28 14:44:18 -06:00
Blade Barringer 8ff4cfe709 tests: Finish start quest 2016-02-10 08:51:12 -06:00
Matteo Pagliazzi 2f3ae32a0e finalize invite to quest route and startQuest method 2016-02-08 23:30:49 +01:00
Blade Barringer 03c9c2933f feat(api-v3): finish first iteration of group.startQuest method 2016-02-05 09:29:46 -06:00
Blade Barringer c699874e36 feat: Add startQuest method on group model 2016-02-01 17:55:55 -06:00
Blade Barringer a84e0d1a6c Merge branch 'api-v3' into api-v3-groups 2016-01-30 10:20:04 -06:00
Matteo Pagliazzi bcbaa75aad failing integration test 2016-01-29 12:08:30 +01:00
Matteo Pagliazzi e345fa76f5 failing unit test 2016-01-29 12:07:46 +01:00
Kristian Tashkov 32be629878 Fix failing unit tests on windows 2016-01-27 23:07:29 +02:00
Blade Barringer f430b6ff6f tests: Correct phrasing of tests 2016-01-25 21:46:53 -06:00
Blade Barringer e5f1c44a3e feat: Add removeFromArray function 2016-01-25 18:08:01 -06:00
Blade Barringer 95603b9d21 tests: Change baseModel test to more accurately reflect use case 2016-01-25 17:55:10 -06:00
Blade Barringer f80f41f764 lint: Correct linting errors in v3 tests 2016-01-03 09:47:27 -06:00
Blade Barringer 9428c6d997 lint: Correct linting errors in api v3 tests 2015-12-31 08:57:20 -06:00
Blade Barringer 70151fd073 lint: Fix tests that can be fixed with the eslint --fix flag 2015-12-31 08:57:20 -06: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 5c33a404fb handle mongoose validation errors, fix bug in import and add more tests for errors 2015-11-21 15:00:31 +01:00
Matteo Pagliazzi 7866f7393b clean up code, add deleteSocial method 2015-11-21 12:03:08 +01:00
Matteo Pagliazzi dd8c22584d req.t --> res.t 2015-11-19 12:17:44 +01:00
Matteo Pagliazzi 5c859ca52e add req.t in place of i18n.t passing req.language, begins implementing user signup 2015-11-18 22:04:36 +01:00
Blade Barringer f95c6ef927 Move notFound api v3 test to integration folder. 2015-11-18 13:01:35 -06:00
Matteo Pagliazzi 3b633a87b9 try fixing the notFound test 2015-11-18 12:44:52 +01:00
Matteo Pagliazzi 65a8d2e255 misc fixes and improvements, starts adding route tests 2015-11-18 12:36:13 +01:00
Matteo Pagliazzi 2a51117d21 comment errors according to apidoc, add new tests and fix existing ones 2015-11-17 19:22:47 +01:00
Matteo Pagliazzi aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Matteo Pagliazzi 83eb2308fb Merge pull request #6232 from HabitRPG/api-v3-utils
[API v3] Port Utils
2015-11-15 20:01:48 +01:00
Matteo Pagliazzi 78e5d913f5 update test to match possible html string 2015-11-15 17:27:22 +01:00
Matteo Pagliazzi a80be380f9 add txt emails tests 2015-11-14 18:58:33 +01:00
Matteo Pagliazzi a8b3780cc0 add send email tests 2015-11-14 18:13:17 +01:00