Commit graph

1176 commits

Author SHA1 Message Date
Phillip Thelen
7ef2c34177 add route for QR codes (#7902)
* add route for QR codes

* check that passed ID is a UUID

* add test for qr code redirect

* fix qr code test
2016-08-18 19:37:14 +02:00
Blade Barringer
fd70efcb60 Merge pull request #7900 from crookedneighbor/analytics_fix
Analytics fix
2016-08-15 22:39:03 -05:00
Jaka Kranjc
408d988341 api: expose user's inbox.optOut for api/v3/members/:memberId #7798 (#7893)
* api: expose user's inbox.optOut for `api/v3/members/:memberId` #7798

* test: fixed chai exist vs exists typos

* _getMembersForItem: fixed typo in api docs
2016-08-15 22:21:14 -05:00
Blade Barringer
bd8b1b0ece chore(tests): Rewrite analytics tests to remove dependency on nock 2016-08-15 22:20:39 -05:00
Travis
1a409848a8 allow flagging the post of a deleted user (#7897)
* Allowing the flagging of messages that were written by user accounts that have since been deleted

* replacing ternary operator with else if, else paradigm

* formatting fixes

* fixing message in tests
2016-08-15 22:14:52 -05:00
Blade Barringer
977bafd2d1 fix(api): Set platform and agent to Unknown if headers are not passed in 2016-08-15 08:07:59 -05:00
Camellia Peng
12f1aae2dd Update email check exist (#7899)
* throw a 401 error if user tries to update his/her email to an email that exists already

* Make error message generic so we don't violate users' privacy.  Added test case.

* Syntax fixes

* select only the _id field when searching for users with the same email.  Return found document as javascript object.
2016-08-15 07:52:53 -05:00
Phillip Thelen
679378331d add client and OS info to amplitude events
closes #7865
2016-08-11 08:58:13 -05:00
Husman
725c3b36f3 feat: allowing modification of challenge tasks after challenge creation. fixes #7320
closes #7877
2016-08-11 08:48:39 -05:00
Blade Barringer
384783567b chore(tests): Add test to catch bugs when adding invalid types to market 2016-08-10 08:44:21 -05:00
Husman
bba56b8c29 fix: remove guild or party when user looks it up if it does not exist
closes #7878
fixes #7724
2016-08-07 10:41:07 -05:00
Blade Barringer
05eacc32ba Merge branch 'develop' into Hus274-7793 2016-08-05 12:55:00 -05:00
Blade Barringer
626b87eb79 Merge pull request #7849 from Hus274/7653-3
booting a member from party removes member from quest
2016-08-05 12:35:45 -05:00
Travis
d7c5d05f13 Clear invites from user when the request fails because the invite is invalid (#7852)
* making requests to accept or reject a request fail because the invite is invalid clear the invite from the user so it doesn't require admin intervention. part of #7653

* Adding await
2016-08-05 12:34:06 -05:00
Matteo Pagliazzi
ae5b66e248 Merge branch 'develop' of github.com:HabitRPG/habitrpg into develop 2016-08-04 20:00:19 +02:00
Matteo Pagliazzi
d1bd63289b Merge branch 'facebook-login-add-newuser-flag' of https://github.com/TheHollidayInn/habitrpg into TheHollidayInn-facebook-login-add-newuser-flag 2016-08-04 19:58:09 +02:00
Matteo Pagliazzi
d7ccf2bbe1 API: return computed stats for members routes (#7870)
* api: return computed stats for members responses

* add integration tests for computed stats

* add unit tests for computed stats

* clarify test name

* add missing query parameter to test case

* reset test database before running API tests for the Hall
2016-08-04 19:56:00 +02:00
Sabe Jones
29498976ee feat(content): Armoire and BGs 201608 (#7868)
Plus: beta shops API fixes and front page user count update
2016-08-03 14:55:12 -05:00
Matteo Pagliazzi
fb939e0300 Migrate from GCM to FCM notifications (#7860)
* Fixed logging. Fixed lint issues. Temporarly removed GCM code

* Removed extra packages. Removed lingering gcm code

* Update message structure to send a data notification instead of a regular notification

* Removed excess code

* switch from fcm-push to node-gcm
2016-08-02 23:12:39 +02:00
Keith Holliday
2a76f0c8cf Added lint ignore comment 2016-08-02 14:29:15 -05:00
Matteo Pagliazzi
60f34dafb0 Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802)
* Revert "Revert "Deprecate API v2""

* fix path in shops controller
2016-08-01 22:36:10 +02:00
Oziris
d51bd68201 Enable guild challenge prize to use guild bank gems (#7840)
* add leader property to getGroups

* Add test coverage
2016-08-01 14:31:31 -05:00
Husman
6859cf1f73 booting a member from party removes member from quest whether the quest is started or not. part of #7653 2016-07-30 09:44:21 -07:00
Travis
6804125068 voluntarily leaving a party removes the user from the quest the party is involved in (#7845)
* voluntarily leaving a party removes the user from the quest the party is involved in. part of #7653

* addressing pr comments, removing lodash dependency and unecessary comment

* using the existing update object instead of group.save to avoid duplicate behavior

* finalizing tests
2016-07-30 06:53:29 -05:00
Keith Holliday
e6dd8cc03a Added tests for Facebook auth 2016-07-27 14:27:21 -05:00
Phillip Thelen
24d25026cf Add API calls for shop inventories (#7810)
* Add API call for market inventory

* changes to shop api calls

* optimize shop categories

* add API call for quests

* add api call for time travelers shop

* fic buying items in shops

* fix linting errors

* shop adjustments for iOS app

* add tests to shops

* fix syntax issues

* Code formatting

* correct indentation

* add tests for api routes

* fix time travelers and seasonal

* Increase test coverage for shop routes

* refactor: Pull out trinket count in time traveler route

* refactor: Clarify instructions for seasonal shop script

* lint: Remove extra new line

* Adjust shops common test
2016-07-26 14:36:55 -05:00
Husman
a798c4ef08 fix: removing party invitations 2016-07-18 19:25:02 -07:00
Matteo Pagliazzi
590adb3438 Revert "Deprecate API v2" (#7801) 2016-07-17 18:15:25 +02:00
Matteo Pagliazzi
45c31a2bcf Deprecate API v2 (#7761)
* deprecate api-v2

* remove v2 test helpers

* remove unused string
2016-07-16 19:56:18 +02:00
Alys
ee01788647 "allCompletedTodos" option in API for returning all completed To-Dos for when 30 isn't enough (#7773)
* add new "allCompletedTodos" option to API for returning all completed To-Dos at once - fixes #7301

* make minor fixes to allCompletedTodos option

* change allCompletedTodos option to _allCompletedTodos and add a BETA comment
2016-07-14 08:34:48 +10:00
Husman
6543ff89e1 refactor(api): Remove prod check in payments library. Fill out tests
Wasn't able to mock out pushNotifications correctly and left two tests unfinished.

closes #7728
closes #7770
2016-07-12 12:43:17 -05:00
Matteo Pagliazzi
0880850408 Real-time Chat (#7664)
* feat(realtime-chat): add Pusher library to the server

* feat(realtime-chat): only for private groups

* feat(realtime-chat): add authentication endpoint for Pusher

* feat(realtime-chat): client proof of concept

* fix typo in apidoc

* feat(realtime-chat): redo authentication and write integration tests

* remove firebase code

* fix client side tests

* fix line ending in bower.json

* feat(realtime chat): use presence channels for parties, send events & disconnect clients if user leaves or is removed from party, automatically update UI

* pusher: enable all events in the background

* fix pusher integration tests
2016-07-02 15:17:24 +02:00
Blade Barringer
9602a398b2 feat(api): Allow admins to revoke chat priveleges from website 2016-07-01 20:24:37 -05:00
Blade Barringer
c9f2389765 chore(test): Unpend cancel subscription test 2016-06-26 09:49:48 -05:00
Blade Barringer
37e638a64d fix(test): Pend send email test 2016-06-26 09:27:29 -05:00
Blade Barringer
81ac45f2a7 fix(api): Grant remaining perks when canceling an Amazon subscription
* Add tests for payments lib
* Add placeholder it blocks to be filled in

closes #7660
closes #4840
2016-06-26 08:08:49 -05:00
Blade Barringer
d5a354b499 fix(api): Only award participating members the quest rewards (#7706) 2016-06-23 07:10:56 -05:00
Matteo Pagliazzi
08d7727881 Push notifications (#7682)
* Fix Social Push notifications

* Fix code formatting issues

* Fix commented issues

* Fix Syntax errors

* update push notify dependency

* specify push-notify version

* change how apn key is loaded

* feat(push-notifications): improve logging

* feat(push-notifications): disable v2 push notifications

* test(push-notifications): add unit tests and improve integration ones

* fix(push-notifications): throw when required params are missing

* fix(tests): correct descriptions and remove wrong comment

* fix(push-notifications): trim APN key

* fix(apn): log feedback only if it has data

* fix(apn): load cert and key differently

* fix(tests): correctly load apn during tests

* download creds from S3 and create AWS lib

* convert s3 buffer to a string

* fix(apn): remove console.log and do not use cert twice

* invert key and cert, disable failing test

* invert key and cert
2016-06-23 00:19:37 +02:00
Blade Barringer
94ddd82cae fix(lint): Correct group test file 2016-06-19 21:00:02 -05:00
Blade Barringer
e920734648 feat(api): Stop alerting about new messages for large groups
closes #6706
closes #6762
2016-06-19 20:54:30 -05:00
Blade Barringer
b7b61e6251 Shortname (#7655)
* feat: Add alias property to task model
2016-06-16 12:28:45 -05:00
Travis
1de2c839c8 Adding ticks back into gifted gems receive message #7540 (#7671)
* Adding ticks back into gifted gems receive message #7540

* Removing raw string concatenation and fixing tests
2016-06-15 22:29:04 -05:00
Alys
a03b1fc6cb prevents damage to quest participants with false or null values - partial fix for #7653 (#7665) 2016-06-16 09:36:58 +10:00
Shervin Sarain
8490b481f6 send email when admin unflags post (#7580)
* send email when admin unflags post

* Improved email acquisition code, minor changes to sent email

* Refactor getGoupUrl into its own method

* added unit test for getGroupUrl

* improved test and getGroupUrl
2016-06-07 22:22:33 -05:00
Matteo Pagliazzi
f7be7205e7 Remove localstorage and add notifications (#7588)
* move remaining files frm /common/script/public to website/public

* remove localstorage

* add back noscript template and put all javascript in the footer

* fixes client side tests

* remove double quotes where possible

* simplify jade code and add tests for buildManifest

* loading page with logo and spinner

* better loading screen in landscape mode

* icon on top of text logo

* wip: user.notifications

* notifications: simpler and working code

* finish implementing notifications

* correct loading screen css and re-inline images

* add tests for user notifications

* split User model in multiple files

* remove old comment about missing .catch()

* correctly setup hooks and methods for User model. Cleanup localstorage

* include UserNotificationsService in static page js and split loading-screen css in its own file

* add cron notification and misc fixes

* remove console.log

* fix tests

* fix multiple notifications
2016-06-07 16:14:19 +02:00
Alys
0a10b2bd28 change user quest.progress.collect to quest.progress.collectedItems (#7612) 2016-06-05 20:47:45 -05:00
Blade Barringer
840a90bbdf refactor: Make quest methods private instance methods 2016-06-04 22:11:54 -05:00
Blade Barringer
25cc01e7cd fix: Supply random value as seed so quest collection is random 2016-06-04 22:11:52 -05:00
Blade Barringer
58cd634255 fix: Change quest collection to calculate items on the server only 2016-06-04 22:11:51 -05:00
Blade Barringer
c04bac44e7 feat: Use party's quest key in cron 2016-06-04 22:11:50 -05:00
Sabe Jones
7f722269bd fix(subscription): correctly award 3mo bennies (#7596) 2016-06-03 22:40:04 -05:00
Blade Barringer
96e9b83ca3 Merge pull request #7583 from crookedneighbor/fix_quest_modal_not_being_cleaned_up
fix: Cleanup quest progress for non-members when quest starts
2016-06-03 21:52:14 -05:00
Blade Barringer
434cac944c fix: Cleanup quest progress for non-members when quest starts 2016-06-03 21:51:18 -05:00
Sabe Jones
7108b02f4d fix(profiles): public chairs
(cherry picked from commit 83366fa3a66afcc6f27d6fd987e55b565ad2af60)
2016-06-03 08:18:12 -05:00
Sabe Jones
6084ea2017 Fix mystery set award to new subscribers (#7586)
* fix(mystery): flip da sign

* test(subscription): check mystery box
2016-06-01 15:34:57 -05:00
Blade Barringer
e8b1c937e4 Merge pull request #7568 from HabitRPG/fix_contributor_levels_watch
fix: Remove unnecessary flags.contributor property from user
2016-05-31 21:31:12 -05:00
Matteo Pagliazzi
e07ade5a4a cron: set lastCron at the beginning and misc fixes 2016-05-31 21:30:07 -05:00
Blade Barringer
52f0057c3d fix: Remove unnecessary flags.contributor property from user
Closes #7550
2016-05-31 21:10:58 -05:00
Blade Barringer
c0d9c54c44 test: Pend erronously failing test 2016-05-31 20:58:04 -05:00
Shervin Sarain
de21487038 Fix challenge sorting
Closes #7543
Closes #7507
2016-05-31 20:41:38 -05:00
Sabe Jones
fcc14520c5 Don't $watch drops (#7547)
* WIP(drops): get drops out of _tmp

* fix(notifications): no watch for drops/mystery

* fix(ops): only two response values

* fix(test): update op expectation
Also update API docs for modified route.

* fix(lint): remove trailing space

* fix(test): update integration check
2016-05-31 14:56:33 -05:00
Matteo Pagliazzi
ee836c76a4 log req.method 2016-05-31 16:37:34 +02:00
Matteo Pagliazzi
bcbf00d42c fix api v2 tests, do not allow task.value to be updated 2016-05-31 11:32:33 +02:00
Blade Barringer
bbafe3d52d fix: Prevent user from inivting self to group
fixes #7491
2016-05-29 10:09:02 -05:00
Blade Barringer
c08df9978f Merge pull request #7511 from HabitRPG/paglias/better-logging
Improve logging
2016-05-26 22:42:14 -05:00
Blade Barringer
74087d23c9 Merge branch 'HabitRPG-paglias/fix-double-cron' into develop 2016-05-26 22:40:32 -05:00
Blade Barringer
b40d8ce09d Merge branch 'double_cron_fix' into develop 2016-05-26 22:25:36 -05:00
Blade Barringer
91aba965b0 tests: Add tests for recoverCron 2016-05-26 22:08:31 -05:00
Sabe Jones
31d2c5d604 fix(test): import Bluebird 2016-05-27 00:59:00 +00:00
Matteo Pagliazzi
cb4676980d fix tests for error handler middleware 2016-05-26 23:35:57 +02:00
Sabe Jones
792aafd737 fix(test): delay for task creation 2016-05-26 20:51:55 +00:00
Matteo Pagliazzi
3c338ddcd7 simplify tests and add console.log for debugging 2016-05-26 21:54:26 +02:00
Matteo Pagliazzi
8292903444 fix user anonymized tests 2016-05-25 23:33:29 +02:00
Matteo Pagliazzi
275d29e3f4 run cron when getting group 2016-05-25 23:14:34 +02:00
Matteo Pagliazzi
f9762f4f81 fix cron tests 2016-05-25 21:01:12 +02:00
Matteo Pagliazzi
f713bf53c1 fix task.challenge tests and add checks when scoring challenge tasks 2016-05-25 14:49:08 +02:00
Matteo Pagliazzi
adce786ae2 feat(members): add ability to return all members 2016-05-25 12:36:52 +02:00
Blade Barringer
ac77ceb75f fix: Correct change password on client
* Add additional checks on server to prevent 500
* Add tests for param checks
2016-05-24 06:21:38 -05:00
Blade Barringer
2ab76db27c feat: Add make-admin debug route back in 2016-05-23 20:59:47 -05:00
Matteo Pagliazzi
28f2e9c356 API v3 [WIP] (#6144)
* Fixed more tests

* Added tags into user service

* Added api-v3 auth urls

* v3: fix package.json

* v3: fix package.json

* Fixed auth tests. Updated Authctrl response

* v3: remove newrelic config file in favour of env variables

* v3: upgrade some deps

* switch from Q to Bluebird

* v3 fix tests with deferred

* Removed extra consoles.log. Changed data.data to res.data

* v3 fix tests and use coroutines instead of regenerator

* v3: fix tests

* v3: do not await a non promise

* v3: q -> bluebird

* Changed id param for registration response

* Updated party query and create

* Ensured login callback happens after user sync

* Add challenges to groups. Fixed isMemberOfGuild check

* Updated party and group tests

* Fixed cron test

* return user.id and send analytics event before changing page

* fix trailing spaces

* disable redirects

* Api v3 party tavern fixes (#7191)

* Added check if user is in party before query

* Cached party query. Prevented party request when user is not in party. Updated Party create with no invites

* Update tavern ctrl to use new promise

* v3: misc fixes

* Api v3 task fixes (#7193)

* Update task view to use _id

* Added try catch to user service ops calls

* v3 client: saving after syncing is complete

* Fixed test broken by part sync change (#7195)

* v3: fix todo scoring and try to fix production testing problem

* revert changes to mongoose config

* mongoose: increase keepAlive

* test mongoose fix

* fix: Only apply captureStackTrace if it exists on the error object

* v3: fix reminders with no startDate

* mongoose: use options

* chore(): rename website/src -> website/server and website/public -> website/client (#7199)

* v3 fix GET /groups: return an error only if an invalid type is supplied not when there are 0 results (#7203)

* [API v3] Fix calls to user.ops and deleting tags (#7204)

* v3: fixes calls to user.ops from views and deleting tags

* v3: fix tests that use user._statsComputed

* Api v3 fixes continued (#7205)

* Added timzeone offset back

* Added APIToken back to settings page

* Fixed fetch recent messages for party

* Fixed returning group description

* Fixed check if user is member of challenge

* Fixed party members appearing in header

* Updated get myGroups param to include public groups. Fixed isMemberOf group

* Fixed hourglass purchase

* Fixed challenge addding tasks on first creating

* Updated tests to accomidate new changes

* fix: Correct checklist on client

Closes #7207

* fix: Pin eslint to 2.9

* minor improvements to cron code for clarity; fix inaccurate comments; add TODOs for rest-in-inn actions

* fix: Add missing type param to equip call

closes #7212

* rename and reword pubChalsMinPrize to reflect that it's only for Tavern challenges

* allows players to send gems to each other; other minor related changes - fixes https://github.com/HabitRPG/habitrpg/issues/7227

* fix tests for /members/transfer-gems

* fix: Set gems sent notification as translatable string

* chore: Remove unusued variable

* fix: Remove requirement on message paramter in transfer-gems

* add a missing variable declaration

* chore: clarify comments on cron code

* fix: Correct client request from habitrpg -> tavern

* update apidoc URL in package.json

Closes #7222

* Fixed start party by invites

* Updated spell casting to v3

* Fixed adding and removing tags on tasks

* Fixed page reload on settings change

* Fixed battle monsters with friends button

* Loaded completed todos when done is clicked

* chore: Reinstate floating version number for eslint

babel-eslint regression fixed

* Fixed reload tests

* change "an user" to "a user" in comments and text (no code changes) (#7257)

* fix: Alert user that drops were recieved

* remove userServices.js from karma.conf - it's been moved to website/client/js/services

* feat: Create debug update user route

* fix: Correct set cron debug function

* feat: Add make admin button to debug menu

* lint: Add missing semicolons in test

* fix: Temporarilly comment out udpate user debug route

* v3: fix _tmp for crit and streakBonus

* v3: execute all actions when leaving a solo party

* v3 client: fix group not found when leaving party

* v3 migration: fix challenge prize

* v3 cron: only save modified tasks

* v3: add CHALLENGE_TASK_NOT_FOUND to valid broken reasons

* v3: fix tasks chart

* v3 client: fix ability to leave challenge

* v3 client: fix filtering by tag and correctly show tag tooltip

* v3 common: fix tags tests

* v3 client: support unlinking not found challenges tasks

* v3: disable Bluebird warning for missing return, fixes #7269

* feat: Separate out update-user into set-cron and make-admin debug routes

* chore: Disable make admin debug route for v3 prod testing

* v3: misc fixes

* v3: misc fixes

* v3: fix adding multiple tasks

* Fixed join/leave button updates

* Queried only user groups to be available when creating challenges

* Fixed bulk add tasks to challenge

* Synced challenge tasks after leave and join.

* Fixed default selected group

* Fixed challenge member info. Fixed challenge winner selection

* Fixed deleting challenge tasks

* Fixed particiapting filter

* v3 client: fix casting spells

* v3: do not log sensitive data

* v3: always save user when casting spell

* v3: always save user when casting spell

* v3: more fixes for spells

* fix typos and missing information in apidocs - fixes https://github.com/HabitRPG/habitrpg/issues/7277 (#7282)

* v3: add TODO for client side spells

* feat: Add modify inventory debug menu

* Fixed viewing user progress on challenge

* Updated tests

* fix: Fix quest progress button

* fix incorrect Armoire test; remove unneeded param details from apidocs; disambiguate health potion

* v3: fix stealth casting

* v3: fix tasks saving and selection for rebirth reroll and reset (server-only)

* v3: fix auto allocation

* v3 client: misc fixes

* rename buyPotion and buy-potion to buyHealthPotion and buy-health-potion; fix apidoc param error

* Added delete for saved challenge task

* Fixed member modal on front page

* adjust text in apidocs for errors / clarity / consistency / standard terminology (no code changes) (#7298)

* fix bug in Rebirth test, add new tests, adjust apidocs (#7293)

* Updated task model to allow setting streak (#7306)

* fix: Correct missing * in apidoc comments

* Api v3 challenge fixes (#7287)

* Fixed join/leave button updates

* Queried only user groups to be available when creating challenges

* Fixed bulk add tasks to challenge

* Synced challenge tasks after leave and join.

* Fixed default selected group

* Fixed challenge member info. Fixed challenge winner selection

* Fixed deleting challenge tasks

* Fixed particiapting filter

* Fixed viewing user progress on challenge

* Updated tests

* Added delete for saved challenge task

* v3: fix sorting

* [API v3] add CRON_SAFE_MODE (#7286)

* add CRON_SAFE_MODE to example config file, fix some bugs, add an unrelated low-priority TODO

* create CRON_SAFE_MODE to disable parts of cron for use after extended outage - fixes https://github.com/HabitRPG/habitrpg/issues/7161

* fix a bug with CRON_SAFE_MODE, remove duplicated code, remove completed TODO comment

* fix check for CRON_SAFE_MODE

* v3 client: fix typo

* adjust debug menu Modify Inventory: hungrier pets, fewer Special items, "Hide" buttons

* completed To-Dos: return the 30 most recent instead of 30 oldest (#7318)

* v3 migration: fix createdAt date

* adjust locales text, key names, and files for Rebirth, Reset, and Fortify / ReRoll for consistency with existing strings (#7321)

* v3: fix unlinking multiple tasks

* v3 fix releasing pets

* v3: fix authenticating with apiUrl

* v3: fix typo

* v3 fix client tests for unlinking

* v3 client: do not show start quest button when quest is active

* v3 client: fix ability to send cards

* v3 client: fix misc challenge issues

* v3: fix notifications

* v3 client: more user friendly errors

* v3 client: only load completed todos once

* v3 client: fix tests

* v3: move TAVERN_ID to common code

* fix: Provide default type and text for new task creation in score route

* fix: Provide default history [] for habit in score route

* fix: Add _legacyId prop to tasks to support non-uuid identifiers

* chore: Change v3 migration to use _legacyId instead of legacyId

* fix: check for _legacyId in tasks if id does not exist

* refactor: Extract out finding task by id or _legacyId into a function

* Api v3 party quest fixes (#7341)

* Fix display of add challenge message when group challenges are empty

* Fixed forced quest start to update quest without reload

* Fixed needing to reload when accepting party invite

* Fix group leave and join reload

* Fixed leave current party and join another

* Updated party tests

* v3 client: remove console.log statement

* v3: misc fixes

* v3 client: fix predicatbale random

* v3: info about API v3

* v3: update footer with links to developer resources

* v3: support party invitation from email

* v3 client: fix chat flagging

* fix: Correct get tasks route to properly get todos (#7349)

* move locales strings from api-v3.json to other locales files (#7347)

* move locales strings from api-v3.json: authentication strings -> front.json

* move locales strings from api-v3.json: authentication strings -> tasks.json

* move locales strings from api-v3.json: authentication strings -> groups.json

* move locales strings from api-v3.json: authentication strings -> challenge.json

* move locales strings from api-v3.json: authentication strings -> groups.json (again)

* move locales strings from api-v3.json: authentication strings -> quests.json

* move locales strings from api-v3.json: authentication strings -> subscriber.json

* move locales strings from api-v3.json: authentication strings -> spells.json

* move locales strings from api-v3.json: authentication strings -> character.json

* move locales strings from api-v3.json: authentication strings -> groups.json (PMs)

* move locales strings from api-v3.json: authentication strings -> npc.json

* move locales strings from api-v3.json: authentication strings -> pets.json

* move locales strings from api-v3.json: authentication strings -> miscellaneous

* move locales strings from api-v3.json: authentication strings -> contrib.json and settings.json

* move locales strings from api-v3.json: delete unused string (invalidTasksOwner), delete api-v3.json, whitespace cleanup

* v3 client: fix sticky header

* v3: remove unused code

* v3 client: correctly redirect after inviting

* Removed v2 calls from views (#7351)

* v3: fix tests for challenge export

* v3: fallbackto authWithHeaders if wuthWithSession or authWithUrl fails

* Added force cache update when fetching new messages (#7360)

* v3: fetch whole user when booting from group tto avoid issues with pre save hook expecting all data

* v3: misc fixes for payments

* v3: limit fields of challenge tasks that can be updated

* fix(tests): never connect to NODE_DB_URI for tests

* Added new route for setting last cron and updated front end

* v3: fix iap url

* v3: fix build and ios IAP

* Changed route to user set custom day start

* v3: iap accessible under /api/v3, fixes to spells and groups invitations

* v3: correctly use v3 routes in client

* remove XP, GP when unticking a Daily with a completed checklist - fixes https://github.com/HabitRPG/habitrpg/issues/7246

* use natural language for error message about skills on challenge tasks (#7336), fix other gramatical error

* Updated ui when user rejects a guild invite (#7368)

* feat: complete custom day start route

Closes #7363

* fix: Correct spelling of healAll skill

fix: Correct sprite name of healAll skill

* fix: Change all instances of spookDust -> spookySparkles

* add dateCreated to all tasks; add empty challenge object to tasks that don't have one (#7386)

* add plumilla to artists for Tangle Tree in Bailey message

* Fixed quest drop modal (#7377)

* Fixed quest drop modal

* Fixed broken party test

* [API v3] Maintenance Mode (#7367)

* WIP(maintenance): maintenance

* WIP(maintenance): working locale features

* fix(maintenance): don't translate info page target

* WIP(maintenance): start adding info page

* fix(maintenance): linting

* feat: Add container to maintenance info page

* fix(maintenance): add config.json edits
Also DRY variables for main vs info pages

* fix(maintenance): linting

* refactor(maintenance): further slim down variables

* refactor: Remove unnecessary variables

* fix: Correct string interpolation in maintenace view

* feat: Dynamically add time to maintenance pages

* maintenance mode: do not connect to mongodb

* fix(maintenance): clean up timezones etc.

* fix(maintenance): remove unneeded sprite

* Tavern party challenges invites fix (#7394)

* Added challenges and invitations to party

* Loaded tavern challenges

* Updated group and quest services tests

* v3: implement automatic syncing if user is not up to date

* Removed unnecessary fields when updating groups and challenges (#7395)

* v3: do not saved populated user

* v3: correctly return user subset

* Chained party promises together (#7396)

* v3: $w -> splitWhitespace

* use bluebird

* use babel polyfill

* migration: fix items

* update links for v3

* Updated shortname validation to support multiple browsers

* Docs changes (#7401)

* chore: Clarify transfer-gems documentation

* chore: Clarify api status route documentation

* chore: Mark webhooks as BETA

* Added tags update route. Added sort to user service (#7381)

* Added tags update route. Added sort to user service

* Change update tasks route to reorder tasks

* Fixed linting issue

* Changed params for reorder tags route

* Fixed not found tag and added test

* Added password confirmation when deleteing account (#7402)

* fix production logging

* feat(commit): push

* empty commit

* feat(maintenance): post-downtime news & awards (#7406)

* fix exporting avatar

* second attempt at fixing exporting avatar

* fix production logging

* s3: convert moment to date instance

* fix avatar sharing and caching (30 minutes)

* fix: Correct missing parameter

Closes #7433

* fix: Validate challenge shortname on server

* adjust text strings - fixes https://github.com/HabitRPG/habitrpg/issues/5631 and also Short Name -> Tag Name
2016-05-23 13:58:31 +02:00
Blade Barringer
e70add1ac4 chore: lint files 2016-04-13 20:11:07 -05:00
Blade Barringer
fd10422e0c tests: Add preliminary tests around send message and send gift 2016-03-22 21:49:27 -05:00
Sabe Jones
cc53e6e9dc Merge pull request #6733 from vIiRuS/mobileStorage
Store data for next mobile update
2016-03-09 14:56:15 -06:00
Phillip Thelen
36790592c6 add tests for improvement categories 2016-03-06 17:56:51 +01:00
Alys
9517920de6 fix error in nodemon command for running API tests individually 2016-03-05 15:51:54 +10:00
Alys
f69a29c152 improve group invitation code and tests 2016-03-02 09:26:55 +10:00
Blade Barringer
4a3871f52f tests(api): Add ApiChallenge class 2016-01-17 11:41:29 -06:00
Blade Barringer
96f6bbfb0c tests(api): Add sync method to api objects 2016-01-16 21:50:54 -06:00
Blade Barringer
91ffe5c402 tests(api): Reorganize integration helper for v2 2016-01-16 17:28:36 -06:00
Blade Barringer
ef5064f351 Move generators to own file 2016-01-16 17:23:30 -06:00
Blade Barringer
874f319d95 fix: Corrects logic where it was possible to customize avatar
with gem purchasable items without purchasing them.

Closes #6427
Closes #6448

lint(common): Add unnecessary quotes to make object look less weird
2016-01-03 10:41:44 -06:00
Blade Barringer
dfa2228dcc tests(api): Convert v2 status test to use await syntax 2016-01-02 22:23:53 -06:00
Blade Barringer
116fffaf4f lint: Fix linting errors in api v2 tests 2016-01-02 22:19:47 -06:00
Blade Barringer
ff1e5ef221 lint: Use eslint --fix to automatically fix some issues in api v2 tests 2016-01-02 18:28:06 -06:00
Blade Barringer
66572ad9d5 tests(api): Update PUT user test to use await 2016-01-01 19:37:14 -06:00
Blade Barringer
195fdce9ce tests(api): Update GET groups and GET groups id tests to use await 2016-01-01 19:33:23 -06:00
Blade Barringer
9f9ba2797a tests(api): Update complex beforeEachs to use await 2016-01-01 13:31:11 -06:00
Blade Barringer
70b23d0629 tests(api): Convert simple user generation to use await 2016-01-01 13:17:25 -06:00
Blade Barringer
ed753f4921 tests(api): Remove extra async 2016-01-01 12:56:43 -06:00
Blade Barringer
69c5192f70 tests(api): Add async to every it, before and beforeEach in v2 tests 2016-01-01 10:33:26 -06:00
Blade Barringer
4bc96c2c99 tests(api): Update GET /user test to use async syntax 2015-12-31 12:11:40 -06:00
Blade Barringer
4563f0efb7 tests(api): Convert new group tests to use async and await (ES7) 2015-12-30 17:32:08 -06:00
Blade Barringer
4cf9518a5a tests(api): Convert tests to use new api user methods 2015-12-29 17:34:33 -06:00
Blade Barringer
1aaebef114 tests(docs): Document how to run tests against a locally running server 2015-12-21 18:08:01 -06:00
Blade Barringer
6539399667 tests: Move api integration test readme to api directory 2015-12-21 18:03:13 -06:00
Matteo Pagliazzi
c5b7873406 add support for habitica-android in x-client header 2015-12-09 11:02:26 +01:00
Blade Barringer
13da95b552 Add tests for clearflags route 2015-11-11 17:58:41 -06:00
Blade Barringer
117a254cc8 Patch exploit that would allow users to auto-delete messages 2015-11-11 06:46:11 -06:00
Blade Barringer
1fc21167dc Send back flag data if user had flagged the message. 2015-11-10 08:15:54 -06:00
Blade Barringer
1e4570ff88 Move all delete user tests to new structure 2015-11-05 08:17:06 -06:00
Blade Barringer
cde66d6167 Merge pull request #6183 from crookedneighbor/clientIdentifier
Client identifier
2015-11-04 20:03:31 -06:00
Blade Barringer
797287a75c Add and adjust tests for new register behavior. 2015-11-04 17:40:49 -06:00
Blade Barringer
269fd2a94f Add test for admin flagging a message 2015-11-04 08:00:35 -06:00
Blade Barringer
799190a898 Merge branch 'develop' into flag_messages_in_api 2015-11-04 07:56:34 -06:00
Blade Barringer
8c95de0835 Move api tests to v2 namespace 2015-11-03 08:31:20 -06:00
Blade Barringer
1a68b5e9ee Refactor and add tests to flagged messages. 2015-11-03 08:00:14 -06:00
Blade Barringer
6f3be77961 Add tests for flagged messages in get group object test 2015-11-02 07:46:21 -06:00
Blade Barringer
da06e0736a Adjust style of tests. 2015-10-31 21:37:44 -05:00
Blade Barringer
f84a10ee4e Simplify delete user test 2015-10-31 21:37:17 -05:00
Jeremy Abbott
19128cf8f2 Fnished user in solo group tests
Also minor code cleanup in random files.
2015-10-31 16:19:50 -05:00
Blade Barringer
421b402948 Add helper to check the existence of a document 2015-10-31 10:55:28 -05:00
Blade Barringer
ad6fbef85c Move chat tests to new infrastructure 2015-10-30 14:47:14 -05:00
Blade Barringer
6f18470b65 Update readme 2015-10-30 09:04:19 -05:00
Blade Barringer
aa111b3c1a Update tests to assert against translation strings 2015-10-30 09:01:57 -05:00
Blade Barringer
ee55c44548 Add text assertion to test 2015-10-29 08:42:37 -05:00
Blade Barringer
6ff904bd5a Merge branch 'develop' into czan-develop 2015-10-29 08:40:03 -05:00
Blade Barringer
5cc790093e Move join party tests to new structure. 2015-10-29 07:41:49 -05:00
Blade Barringer
55fcf678c3 Move push notification to new infrastructure. 2015-10-28 21:36:04 -05:00
Blade Barringer
265bb56db2 Move get user tests 2015-10-28 21:06:28 -05:00
Blade Barringer
e98484d0ec Move anonymous route test to new structure. 2015-10-28 21:00:28 -05:00
Blade Barringer
fd4fb836f0 Move task tests 2015-10-28 17:18:27 -05:00
Blade Barringer
4886b50aa3 Add testing for batch update. Handle unknown operations better. 2015-10-27 08:13:30 -05:00
Carlo Zancanaro
4d6bd38648 Add GET routes for /user/tags and /user/tags/{id}
An operation that is useful for tools to be able to do is to list a
user's tags without having to pull down the entire user object (which is
likely significantly larger than the tags). This commit adds a route to
GET /user/tags, to get a list of the user's tags, as well as a GET
/user/tags/{id} to get the details of a particular tag.

This commit also includes tests for the two new routes.
2015-10-27 13:49:17 +11:00
Blade Barringer
09596c657b Remove only form test 2015-10-26 17:34:29 -05:00
Blade Barringer
2790008937 Adjust error message to not point to a readme file that does not exist. 2015-10-26 17:27:08 -05:00
Blade Barringer
13bca6b9a9 Prevent class from being changed via PUT /user 2015-10-26 17:25:51 -05:00
Blade Barringer
c7b162271c Adjust context title. 2015-10-26 17:13:21 -05:00
Blade Barringer
13fa14270d Add additional check for stat change 2015-10-26 12:52:18 -05:00
Blade Barringer
f8d08b4195 Merge branch 'jeremyabbott-userputtests' into userput 2015-10-26 12:25:17 -05:00
Blade Barringer
6a6922bb3f Add tests for protected paths 2015-10-26 12:24:02 -05:00
Jeremy Abbott
e4269723e1 Creates initial PUT /user test
Adds missing semi-colon to DELETE-user.test.js
2015-10-26 10:54:37 -05:00
Blade Barringer
0eac953170 Adjust stying of put test 2015-10-26 08:04:30 -05:00
Blade Barringer
cf7be0b7a3 Merge branch 'develop' into jeremyabbott-userputtests 2015-10-26 08:00:30 -05:00
Blade Barringer
04fbdaa107 Reinstate error code in resolve promise for api tests. 2015-10-26 07:53:51 -05:00
Jeremy Abbott
eeb14075bb Creates initial PUT /user test 2015-10-25 22:58:10 -05:00
Jeremy Abbott
6b52a32265 Creates user-put file with stub test 2015-10-25 18:07:50 -05:00
Blade Barringer
01914523e1 Remove dependency on chai-shallow-deep-equal 2015-10-25 12:50:14 -05:00
Blade Barringer
b72c37301c Update api tests readme 2015-10-25 11:34:45 -05:00
Blade Barringer
8e282738f5 Convert pending api tests to use promise syntax 2015-10-25 11:21:19 -05:00
Blade Barringer
f06d3cdffe Convert remaining active api tests to use promises 2015-10-25 11:09:50 -05:00
Blade Barringer
12ce4b133d Update GET groups route test to use promises. 2015-10-25 10:57:42 -05:00
Blade Barringer
177c81da81 Use promise syntax for Get groups id route test. 2015-10-25 10:43:34 -05:00
Blade Barringer
5961e02f5f Use promise syntax in POST groups test. 2015-10-25 10:12:43 -05:00
Blade Barringer
a5c0bae273 Update POST group id tests. 2015-10-25 09:40:36 -05:00
Blade Barringer
96c77dad9c Promisify join group route test 2015-10-25 09:02:22 -05:00
Blade Barringer
d370219142 Use promise syntax for leave groups route test. 2015-10-25 08:59:43 -05:00
Blade Barringer
a52b30b33c Update group leaveMember test 2015-10-25 08:19:45 -05:00
Blade Barringer
27cb5881cd Adjust delete route test to use promises 2015-10-25 08:16:21 -05:00
Blade Barringer
69d48cb98e Adjust the get user integration test 2015-10-25 08:14:16 -05:00
Blade Barringer
600f56dae0 Convert status test to promise 2015-10-25 08:02:30 -05:00
Blade Barringer
661d070b56 Add additional tests for register route 2015-10-24 22:28:04 -05:00
Blade Barringer
b763aedd29 Change helper to reject only error message 2015-10-24 22:23:30 -05:00
Blade Barringer
26ccde6e10 Create guidelines for writing api tests 2015-10-23 17:31:29 -05:00
Blade Barringer
73b2208106 Port final groups test to new structure 2015-10-22 20:02:08 -05:00
Blade Barringer
3c8c4343ee Move group tests to new test structure 2015-10-22 18:04:16 -05:00
Blade Barringer
e3234a54ce Refactor get groups test to test all kinds of groups 2015-10-22 17:15:40 -05:00
Blade Barringer
9a79870b93 Change convention for naming tests 2015-10-22 12:53:48 -05:00
Blade Barringer
c4402b2634 Port removeMember tests to new test format 2015-10-22 12:48:45 -05:00
Blade Barringer
abf4b1c643 Fix bug where tests were failing erroneously 2015-10-22 12:46:54 -05:00
Blade Barringer
d28450d52a Port groups /leave tests to new integration tests. 2015-10-22 12:28:26 -05:00
Blade Barringer
c3aa70ecc3 Moved guild update tests from legacy file to new file 2015-10-21 18:02:02 -05:00
Blade Barringer
f4256f7bf6 Adjust context description 2015-10-21 17:59:44 -05:00
Blade Barringer
b2350f10f1 Create get groups test 2015-10-18 10:01:55 -05:00
Blade Barringer
bab093b7ab Write get group tests 2015-10-18 07:15:35 -05:00
Blade Barringer
9b2da51991 Create pending tests for unhandled behavior 2015-10-18 06:48:43 -05:00
Blade Barringer
82b133e8fc Add tests for creating groups 2015-10-18 06:38:22 -05:00
Blade Barringer
ab2b564a03 Update error check 2015-10-17 21:24:46 -05:00
Blade Barringer
7f5c556654 Add pending tests 2015-10-17 20:23:29 -05:00
Blade Barringer
680be3a641 Add delete user test 2015-10-17 20:18:44 -05:00
Blade Barringer
416f82ade7 Clean up user test 2015-10-17 20:18:37 -05:00
Blade Barringer
c51caa0664 Add generate new user helper 2015-10-17 18:27:19 -05:00
Blade Barringer
5291d1a4e9 Add test for registering a user 2015-10-17 18:13:38 -05:00
Blade Barringer
de6a853aaf Adjust api helper 2015-10-17 18:05:44 -05:00
Blade Barringer
0444a7d713 Move status test to own folder 2015-10-17 15:51:00 -05:00
Blade Barringer
ddf2ceeccd Change name of test 2015-10-17 15:05:32 -05:00
Blade Barringer
02e9775ba7 Set up new api test structure 2015-10-17 12:37:17 -05:00
Blade Barringer
9a14368170 Correct test commands 2015-10-17 12:22:04 -05:00
Blade Barringer
a61632fa92 Set up api tests 2015-10-16 21:56:46 -05:00
Blade Barringer
3c1fd385fa Rename existing api tests to api-legacy 2015-09-16 08:12:47 -05:00
TheHollidayInn
5c8c5a9ed3 Removed user's party invites when last user leaves party 2015-09-10 23:29:32 -05:00
TheHollidayInn
700a6ddd9e Remove users inviations when guild is deleted 2015-09-06 15:31:40 -05:00
TheHollidayInn
e68e29db8f Delete private guilds or parties when last member leaves. 2015-09-06 15:31:40 -05:00
Matteo Pagliazzi
bfd6d055b0 merge into develop 2015-09-06 21:21:39 +02:00
Matteo Pagliazzi
ec45a87dce fix tests 2015-09-05 15:44:45 +02:00
Blade Barringer
37b230b940 Add in @thehollidayinn's test from #5885 2015-09-05 15:44:44 +02:00
Blade Barringer
807e6eb7cf Merge branch 'develop' into sabrecat/party-page 2015-09-04 19:00:48 -05:00
Blade Barringer
0d78c01de3 Merge pull request #5877 from TheHollidayInn/guilds-user-becomes-lead-when-joins-empty-group
Groups now make joining user the leader when they are empty
2015-09-04 09:43:26 -05:00
TheHollidayInn
0adfcc3415 Groups now make joining user the leader when they are empty 2015-09-02 12:36:13 -05:00
Matteo Pagliazzi
7acec14e6b do not allow leaders to kick themselves from group 2015-09-01 16:33:24 +02:00
Blade Barringer
5b583f43d6 Fix api and karma test 2015-08-24 18:07:21 -05:00
Blade Barringer
0b7e43f156 Add route for leaving active quest 2015-08-23 20:29:57 -05:00
Blade Barringer
b2c4d5c012 Add test for items that are deleted when getting the user 2015-08-22 17:53:49 -05:00
Blade Barringer
9b73c5eab8 Add tests for non-owner permissions 2015-08-16 09:45:01 -05:00
Blade Barringer
ab9aab9262 Rework challenge integration test to be more autonomous 2015-08-16 09:44:38 -05:00
Blade Barringer
cdcc085530 Adjust test 2015-07-10 23:21:23 -05:00
TheHollidayInn
acb82f99ce Remove user's group msg notification when they are kicked from the group 2015-07-10 22:39:17 -05:00
Blade Barringer
19f8ca7980 Merge branch 'develop' into hairlessbear-quest_invite_modal_on_user_sync 2015-06-20 17:36:32 -05:00
Blade Barringer
2acf7eb71e Move score tests to separate file 2015-06-19 23:51:37 -05:00
Blade Barringer
ddc8508816 Merge branch 'develop' into TheHollidayInn-tasks-api-up-checkoff-todo 2015-06-19 23:00:18 -05:00
TheHollidayInn
925cc81425 Removed complete param from creating todos with up and down url and added test for overriding complete parameter 2015-06-18 23:10:50 -05:00
TheHollidayInn
3dc3891ec6 Fixed habit tests to create habits and check scoring 2015-06-16 20:19:02 -05:00
Phillip Thelen
39adff0e2c improve error reporting for iOS IAP 2015-06-15 13:09:22 +02:00
Blade Barringer
bb2f97e802 Added android tests for iap 2015-06-14 18:35:19 -05:00
Blade Barringer
1ea7193694 Add missing test 2015-06-14 18:11:07 -05:00
Blade Barringer
6318b0828f Add test for iOS in-app purchases 2015-06-14 18:04:47 -05:00
Blade Barringer
5385471cb2 Fix push notifications test 2015-06-14 17:00:13 -05:00
Blade Barringer
14fe29dd4a Merge branch 'develop' into hairlessbear-quest_invite_modal_on_user_sync 2015-06-14 16:33:38 -05:00
TheHollidayInn
8d20168b6b Added up and down test to complete and uncomplete a todo respectively. 2015-06-11 23:38:44 -05:00
Blade Barringer
8dde41d18a Wrie and refactor guild tests 2015-06-10 23:39:46 -05:00
TheHollidayInn
31f61c05f4 Added tests for using directional tasks endpoints 2015-06-10 23:10:37 -05:00
Blade Barringer
40f9ff93de Adjusted guilds test 2015-06-09 22:52:38 -05:00
Blade Barringer
553538f7ba Adjust party tests 2015-06-09 22:36:37 -05:00
Blade Barringer
39c75d5b07 Adjustments to chat tests 2015-06-09 18:24:56 -05:00
Blade Barringer
b53ff67c1f Merge branch 'develop' into TheHollidayInn-groups-api-tests 2015-06-09 18:19:35 -05:00
Blade Barringer
ec3b32fccb Add test for preventing task with id that already exists 2015-06-09 12:44:49 -05:00
TheHollidayInn
b5abfd828d Separated chat and party test into their own files 2015-06-08 21:37:46 -05:00
TheHollidayInn
dccbcb46d0 Fixed member error and fixed inconsistency in party query tests 2015-06-05 20:27:00 -05:00
Blade Barringer
64a61a26ca Add test for push notifications 2015-06-02 22:55:26 -05:00
hairlessbear
966f9d2aca Fixed tests using crookedneighbor's code 2015-05-27 12:06:19 -04:00
TheHollidayInn
527f041b67 Added leaving and removing tests 2015-05-26 23:14:35 -05:00
TheHollidayInn
9214861cbd Added group update tests 2015-05-26 22:32:50 -05:00
TheHollidayInn
424117dc80 Added join tests and edited tests based on @crookedneighbor 's note 2015-05-26 22:32:50 -05:00
TheHollidayInn
6ae1b644b7 Added tests for group create errors 2015-05-26 22:32:50 -05:00
TheHollidayInn
1a0c990f98 Added create, get, and list tests to groups 2015-05-26 22:32:50 -05:00
Blade Barringer
466221f848 Correct test syntax 2015-05-24 22:13:51 -05:00
Blade Barringer
30ef563534 Merge branch 'negue-anonymizedUser' into develop 2015-05-24 22:04:18 -05:00
Blade Barringer
0afd56e8ad Refine anonymous user test 2015-05-24 22:03:40 -05:00
Blade Barringer
abbfdaeda5 Adjust NotGonnaGitUs's PR
* move challenge test to separate file
* adjust wording of popover text
* prevent refunding gems for tavern challenges
* adjust ui of challenge creation page
* fix bug in cancel function
* adjust wording of delete confirmation message
2015-05-24 21:22:40 -05:00
Blade Barringer
56b6794c66 Correct test string 2015-05-14 22:09:36 -05:00
Blade Barringer
547d234b46 Add final test for push notifications 2015-05-14 21:32:28 -05:00
Blade Barringer
7a2e2fa227 Add tests for invites to guilds or parties 2015-05-14 17:29:33 -05:00
Blade Barringer
84aaeedfff Add challenges test 2015-05-14 07:32:16 -05:00
Blade Barringer
2fac464160 Remove extranious pushSpy declaration 2015-05-13 19:35:26 -05:00
Blade Barringer
023458b6e5 Add test for getting push notification when gifted a subscription 2015-05-13 19:31:26 -05:00
Blade Barringer
8a4abc632f Refactor push notifications test; Prevent push notification from being sent when buying gems for yourself as a gift 2015-05-12 20:18:06 -05:00
Blade Barringer
9a84503aed Merge branch 'develop' into negue-WIP-Push-notifications 2015-05-12 19:06:34 -05:00
Blade Barringer
292b8a6741 Correct comments 2015-05-12 18:58:56 -05:00
Blade Barringer
8f17519cd3 Reduce timeout time 2015-05-12 18:57:35 -05:00
Blade Barringer
e35b24582b Fix push notification tests 2015-05-12 18:26:18 -05:00
Negue
adef6bef7b tried to add a test for purchased gem gift 2015-05-12 21:36:22 +02:00
Blade Barringer
b635c62d16 Add contexts 2015-05-12 09:04:07 -05:00
Blade Barringer
ff41a2c240 Refactor group tests 2015-05-12 08:08:55 -05:00
Blade Barringer
faa897e4ae Re-enable skipped test 2015-05-11 17:29:46 -05:00
Blade Barringer
60857994c3 Add expectation that push notification gets called when sending gems 2015-05-11 17:27:58 -05:00
Blade Barringer
3c61b8dc4f Add todo about re-enabling test 2015-05-11 14:41:35 -05:00
Blade Barringer
b663ff7101 Skipping group tests while we sort out join issue 2015-05-11 14:40:45 -05:00
Matteo Pagliazzi
c3bb6b88fa fix(tests): temporarily skip test 2015-05-11 17:21:57 +02:00
Blade Barringer
3cda9ff820 Update push notification test to use chai expect 2015-05-11 08:19:49 -05:00
Blade Barringer
a7fa8dc9a4 Merge branch 'develop' into negue-WIP-Push-notifications 2015-05-11 08:18:11 -05:00
Blade Barringer
c444f54e42 Remove unnecessary global declarations 2015-05-11 08:17:46 -05:00
Blade Barringer
ed8a4ef651 Use chai expect instead of expect.js 2015-05-11 08:13:23 -05:00
Blade Barringer
a906c750eb Correct spy set up 2015-05-10 22:13:53 -05:00
Blade Barringer
d4a296870b Add test for push notification when gems are sent 2015-05-10 20:39:11 -05:00
Blade Barringer
c219df2a9d Set up pended tests for push notifications 2015-05-10 17:10:21 -05:00
Blade Barringer
bf4ecf244c organized push notifications api test 2015-05-10 16:36:10 -05:00
Blade Barringer
95a90723c8 Merge branch 'develop' into negue-WIP-Push-notifications 2015-05-10 16:27:58 -05:00
Negue
1cc07129f1 Merge branch 'develop' into pushNotifications2
Conflicts:
	test/api.mocha.coffee
2015-05-10 22:01:41 +02:00
Blade Barringer
8badc7d1a9 Add coupon api tests 2015-05-10 14:54:45 -05:00
Blade Barringer
4e2bfc0875 Merge branch 'develop' into negue-anonymizedUser 2015-05-09 10:44:41 -05:00
Blade Barringer
bb42acacdb Change format of testing commands in readme 2015-05-07 21:52:56 -05:00
Blade Barringer
d1d319f57e Clarify matter in readme 2015-05-07 21:50:22 -05:00
Blade Barringer
17c248e970 Add readme. Adjust api-helper.coffee 2015-05-07 21:33:59 -05:00
Blade Barringer
2ca5956cee Adjust namespace of api tests 2015-05-07 21:22:30 -05:00
Blade Barringer
9525c5c528 move guild tests into api groups test 2015-05-07 21:16:53 -05:00
Blade Barringer
180279f2f6 clean up cruft from api tests 2015-05-07 17:37:07 -05:00
Blade Barringer
c1051a9035 Separate api tess into separate files 2015-05-07 08:13:43 -05:00