blade
35f98993c4
Skipping groups test in api for now, revisit later
2015-03-07 16:09:56 -06:00
Nick Tomlin
dccf95a3c2
Fix nconf path in api test
2015-03-04 20:55:09 -06:00
Blade Barringer
c66966139b
Fixed typo in comment
2015-03-04 20:55:09 -06:00
Blade Barringer
4de6ce0331
Wrote todo about what is wrong with the registerNewUser function
2015-03-04 20:55:08 -06:00
Blade Barringer
735aa59851
Updated request call to use correct form
2015-03-04 20:55:08 -06:00
Blade Barringer
e6e212d436
Added todo for area where test is failing to behave properly
2015-03-04 20:55:08 -06:00
Blade Barringer
c26aceb17a
Used a numTasks variable and added comments
2015-03-04 20:55:08 -06:00
Blade Barringer
66ac773ce9
Added comment about expect
2015-03-04 20:55:08 -06:00
Blade Barringer
7200f3a1d2
Wrote a todo for test
2015-03-04 20:55:08 -06:00
Blade Barringer
e8be1524fc
Removed the create a new user function call from groups, as it was now using the correct user to look up the leader
2015-03-04 20:52:05 -06:00
Blade Barringer
ab27dd405c
Changed challenges completed count to calculate from total number of user tasks minus 2 (the two completed)
2015-03-04 20:52:05 -06:00
Blade Barringer
0716177d41
Corrected tests for archiving todos to reflect the correct number of default todos when creating account.
2015-03-04 20:52:05 -06:00
Blade Barringer
cac788e7db
djusted paths
2015-02-03 21:43:10 -06:00
Blade Barringer
08ab6eba71
Converted shared to common in api test
2015-01-25 15:54:19 -06:00
Blade Barringer
95951a4706
Updated moment calls to use number, period to fix the deprecation error
2014-12-19 19:41:22 -06:00
benmanley
50b1cba0a6
refactor(tasks) improve UI consistency
...
* Round corners for UI elements / “8-bit” outlines for RPG elements.
* Tag bar – Make it clearer that “Tags” is a heading, not an option
* Task filters – restyle in line with tag bar + nav menu
2014-11-27 10:32:57 +00:00
Matteo Pagliazzi
704a8658f3
require moment where necessary
2014-10-03 19:38:18 +02:00
Tyler Renelle
6253404677
tests(api.mocha): move bac to coffeescript from javascript
2014-09-07 17:06:24 -06:00
Andrew Bloomgarden
c9e3b37ff8
Rewrite API tests in normal JS.
2014-01-15 21:34:36 -08:00
Tyler Renelle
a326072858
start adding quests tests
2014-01-05 15:08:10 -07:00
Tyler Renelle
e474278ab3
groups: upon group-creation, creator is automatically assigned as leader
...
and only member. Remove sending up leader & members from the client,
should all be handled on the server
2014-01-05 15:08:10 -07:00
Tyler Renelle
9a6f0c0339
challenges: don't remove To-Dos that are part of a challenge when
...
clearing completed
2014-01-03 14:18:53 -07:00
Tyler Renelle
c9e083b602
challenges: add "official habitrpg challenge" option
2014-01-03 13:36:13 -07:00
Tyler Renelle
abd300199a
challenges: allow members to override challenge.tasks.notes, and sycning
...
challenge won't update those notes.
2014-01-03 13:10:56 -07:00
Tyler Renelle
6d8e4ed8a2
tests: api.mocha.coffee cleanup WIP
2014-01-03 10:26:46 -07:00
Tyler Renelle
2c1eb955ac
fix #1954 . Start updating API tests, beginning with challenges. Use
...
test to fix "challenge updates not updating users' tasks"
2014-01-03 00:01:24 -07:00
Tyler Renelle
449ea620af
mongoose WIP: use mongoose in API routes, instead of Racer. Add mongoose middleware to perform proper Derby <-> API transformations. some safe-guarding of PUT /user paths, send error messages if they're using the old way. remove task deletion & addition from PUT /user
2013-08-24 18:52:29 -04:00
Tyler Renelle
319c2667d7
some sloppy mocha tests for corrupt task handling
2013-08-15 00:28:27 -04:00
Tyler Renelle
0d83ac09fc
api; on batch-update, override res.send & res.json to call the series
...
callback instead, and simply skip error paths. we need to send down the
error eventually
2013-08-14 21:50:17 -04:00
Tyler Renelle
66bdd3616e
API utility sendResult function, new POST /api/v1/register route to register new uname/pass users (i'm thinking about nixing facebook altogether in the future)
2013-08-14 19:35:14 -04:00
Tyler Renelle
d17bd6fe90
api: export all of api to functions, called by route. This way we can have our /batch-update route access the api functions
2013-08-11 00:47:40 -04:00
Tyler Renelle
e667b3a2b0
start adding v2 api tests (nothing here yet)
2013-08-08 14:04:07 -04:00
Tyler Renelle
8e922bb151
API: add facebook auth route
2013-07-12 17:15:11 -04:00
Tyler Renelle
704a056c47
Merge remote-tracking branch 'switz/api-authentication' into develop
...
Conflicts:
src/server/api.coffee
test/api.mocha.coffee
2013-07-12 16:36:12 -04:00
Tyler Renelle
f0c50e1cfe
fix api + tests
2013-05-25 19:42:59 +01:00
Tyler Renelle
62c9e45e2e
habitrpg-shared: use newUser from shared helpers instead of in character.coffee
2013-05-24 11:34:17 +01:00
Tyler Renelle
32cf11b533
use lodash in tests for consistency
2013-05-23 17:34:27 +01:00
Daniel Saewitz
3680900577
API Auth working + 1 test
2013-04-21 11:53:36 -04:00
Tyler Renelle
88d2eee519
start adding tests for user.put
2013-04-12 16:38:07 -04:00
Rob Scanlon
4958690bcb
update a test to check for undefined value when making new habit
2013-04-04 18:09:06 -04:00
Daniel Saewitz
355dde07f4
Array to /user/tasks
2013-03-22 16:52:33 -04:00
Daniel Saewitz
b56bc6b1d9
Mark todos and dailies as completed via api
2013-03-22 16:01:40 -04:00
Daniel Saewitz
81b14cfac6
Add alternate scoreTask
2013-03-20 16:52:32 -04:00
Tyler Renelle
e51cf0089e
typo test/api.mocha.coffee
2013-03-12 17:52:44 -07:00
Daniel Saewitz
188e4ff271
Remove one id from array of typeIds instead of rewriting whole array
2013-03-09 09:14:07 -05:00
Rob Scanlon
2111cca09a
Delete task for the API tests
2013-03-09 02:08:50 -05:00
Daniel Saewitz
7cb291c4de
Rename user.stats.tnl to user.stats.toNextLevel
2013-03-06 20:39:48 -05:00
Daniel Saewitz
5141aeda78
Fix broken tnl test
2013-03-06 19:59:19 -05:00
Daniel Saewitz
5a1343a3b7
Set maxHealth to 50
2013-03-06 09:11:14 -05:00
Daniel Saewitz
ef7d705059
Add to next level to user stats on API
2013-03-06 08:45:51 -05:00