Commit Graph

85 Commits

Author SHA1 Message Date
Matteo Pagliazzi
a63d5ae97f v3: fix tags tests 2016-05-01 13:25:19 +02:00
Keith Holliday
050539d8f3 Added tests for cron (#7081)
* Added inital cron tests

* Added more subscribe tests and updated various tests for syntax and expectations
2016-04-24 00:54:50 +02:00
Matteo Pagliazzi
6568fcfd5e res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests 2016-04-21 00:52:03 +02:00
Matteo Pagliazzi
277248b8b7 switch to standard response format in v3 2016-04-18 21:56:58 +02:00
Matteo Pagliazzi
bc9f2b81e7 refactor getUserLanguage, automatically apply getUserLanguage and cron middlewares where needed 2016-04-14 13:30:58 +02:00
Matteo Pagliazzi
2458f92e1b fix linting and correctly save collect quests progress 2016-04-13 20:03:26 +02:00
Matteo Pagliazzi
471657c013 fix tests that relied on different logger 2016-04-13 18:43:15 +02:00
Matteo Pagliazzi
8817f795b1 v3: expose public interface for logger and add tests 2016-04-13 18:18:00 +02:00
Matteo Pagliazzi
793ce38f6b v3: review some more files, add logging for unhandled promises 2016-04-12 20:14:36 +02:00
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