Commit Graph

149 Commits

Author SHA1 Message Date
Matteo Pagliazzi
0be5d1da9c v3: misc fixes 2016-05-15 15:10:41 +02:00
Matteo Pagliazzi
199732539f chore(): rename website/src -> website/server and website/public -> website/client (#7199) 2016-05-13 15:35:12 +02:00
Matteo Pagliazzi
cee7700a50 switch from Q to Bluebird 2016-05-11 14:34:01 +02:00
Matteo Pagliazzi
d33564e5d4 v3 payments: port paypal 2016-05-10 17:57:55 +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
7dab7939cc v3: fix tavern during tests 2016-04-23 03:33:00 +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
a590a66c47 support top level controllers 2016-04-14 11:54:47 +02:00
Matteo Pagliazzi
57497f246f make tests working with new tavern id 2016-04-13 22:27:32 +02:00
Matteo Pagliazzi
374d11b0e4 v3 adapt v2: port chat routes and group.update 2016-04-05 12:02:00 +02:00
Matteo Pagliazzi
0a40c56973 api v3 adapt v2: correctly import dependencies, port create, get, list groups 2016-04-04 23:18:49 +02:00
Matteo Pagliazzi
58c20c2a64 v2 port: enable integration tests, port register route 2016-04-04 17:16:57 +02:00
Matteo Pagliazzi
de74fae0b4 v3: port coupons 2016-04-02 16:37:55 +02:00
Matteo Pagliazzi
843dd09d35 Merge pull request #6986 from HabitRPG/api-v3-one-app
[Api v3] Consolidate server code and share middlewares where possible
2016-04-01 19:30:52 +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
Victor Piousbox
e6e2c26a12 shared-code-user-score-task 2016-04-01 16:11:37 +00:00
Victor Piousbox
5aacd978c6 api-v3-get-user-anonymized 2016-03-24 18:23:43 +00: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
6830a4464a Merge branch 'api-v3-email-3' of https://github.com/piousbox/habitrpg into piousbox-api-v3-email-3 2016-03-05 19:24:11 +01:00
Victor Piousbox
7dfdbb8b05 /user/update-email endpoint 2016-03-04 21:27:16 +00:00
Matteo Pagliazzi
8920b05f9e Merge branch 'develop' of github.com:HabitRPG/habitrpg into api-v3 2016-03-02 12:59:51 +01:00
Blade Barringer
c96ddaeebe refactor: Remove unused common script src files 2016-03-01 08:49:25 -06:00
Matteo Pagliazzi
a04bf4c045 use different i18n module for tests 2016-02-29 17:07:33 +01:00
Matteo Pagliazzi
5e68589ac8 check for membership when leaving public guild, fix memberCount update when leaving group, add missing files 2016-02-28 01:11:45 +01:00
Matteo Pagliazzi
e9ac123d0e make sure cookie is never shared among multiple test users 2016-02-20 21:14:11 +01:00
Matteo Pagliazzi
62ebde3186 fix tests that require session authentication 2016-02-20 21:02:46 +01:00
Matteo Pagliazzi
e1b01e3853 Merge pull request #6565 from HabitRPG/sabrecat/quest-accept
WIP: Quests for API v3
2016-02-12 20:56:19 +01:00
Blade Barringer
b6ed2f8c44 refactor: Move sleep function to seprate file 2016-02-10 08:21:36 -06:00
Matteo Pagliazzi
7a5aa731db add population to challenge.group, challenge.leader and group.leader 2016-02-02 21:47:12 +01:00
Matteo Pagliazzi
b1848da8de do not output server logs when testing, ability to run tests and server separately 2016-01-29 14:43:14 +01:00
Matteo Pagliazzi
361d0aa35c finally fix tests 2016-01-29 12:52:57 +01:00
Matteo Pagliazzi
80160597b0 fix for travis? 2016-01-29 12:37:17 +01:00
Matteo Pagliazzi
e345fa76f5 failing unit test 2016-01-29 12:07:46 +01:00
Matteo Pagliazzi
b960ecdd94 first attempt to fix fialing api-v3 tests 2016-01-29 11:13:39 +01:00
Matteo Pagliazzi
1369327c44 requester should resolve response.text if response is not json, better tests for csv export 2016-01-28 11:30:53 +01:00
Blade Barringer
e5f1c44a3e feat: Add removeFromArray function 2016-01-25 18:08:01 -06:00
Keith Holliday
2063070f18 Added group toJSON conversion and fixed syntax errors 2016-01-23 13:42:01 -06:00
Keith Holliday
ab5fc1f526 Added initial get group tests 2016-01-23 13:42:00 -06:00
Keith Holliday
ef6afaedb4 Added intitial group leave tests
Fixed test readability, updated party test, and updated challenge update code when leaving group
Updated library, added group existance check, and reset full party
Updated syntax, added new userUnlinkChallenges, and added some initial testing for challenges
Added challenge tasks tests
Added try/catch to group remove, add more party tests, fixed broken challenge test, removed useless return value
Added public guild tests, added more tests to party, and abstracted remove invitations logic

Closes #6506
2016-01-20 08:51:30 -06:00
Blade Barringer
7b59455252 tests(api): Add generateChallenge helper 2016-01-17 13:58:46 -06:00
Blade Barringer
81e6172fb1 tests: Tighten up generateGroup members helper 2016-01-17 13:42:09 -06:00
Blade Barringer
b75adb4f3b tests(api): Pull in theunknown's changes to createAndPopulateGroup
bf6814265c
2016-01-17 13:22:39 -06:00
Blade Barringer
1e9f24a6b0 Merge branch 'api-v3' into api-v3-groups 2016-01-17 11:45:00 -06:00
Blade Barringer
5d803fde56 tests(api): Adjust v3 api-integration helper to export all generate methods 2016-01-17 11:43:31 -06:00
Blade Barringer
08381793a8 Merge branch 'develop' into api-v3 2016-01-17 11:41:49 -06:00
Blade Barringer
4a3871f52f tests(api): Add ApiChallenge class 2016-01-17 11:41:29 -06:00
Matteo Pagliazzi
c27f98075c Merge branch 'api-v3-groups' into api-v3-members 2016-01-17 11:24:10 +01:00
Blade Barringer
38cdf07a4d Merge branch 'api-v3' into api-v3-groups 2016-01-16 21:56:55 -06:00
Blade Barringer
5de2503039 Merge branch 'develop' into api-v3 2016-01-16 21:54:13 -06:00