habitica-self-host/test/api/v3/unit/libs
Sabe Jones 826d7b85d7 Subscriptions Fixes (#8105)
* fix(subscriptions): round up months

* fix(subscriptions): resub improvements
Don't allow negative extraMonths; flatten new Dates to YYYYMMDD

* fix(subscriptions): remove resub Gems exploit
Also standardizes some uses of new Date() to remove potential race condition oddities.

* fix(subscriptions): bump consecutive months...
...even if the user didn't log in then, if subscription has been continuous through that period

* test(subscriptions): cover fix cases
Also refactor: use constant for YYYY-MM format

* refactor(subscriptions): don't stringify moments
2016-10-07 15:08:30 -05:00
..
analyticsService.test.js added balance to analytics (#8086) 2016-09-30 11:52:14 -05:00
baseModel.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
buildManifest.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
collectionManipulators.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
cron.test.js Subscriptions Fixes (#8105) 2016-10-07 15:08:30 -05:00
email.test.js Remove unused v2 code from /website/common/script (#8034) 2016-09-22 21:23:46 -05:00
encryption.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
errors.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
i18n.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
logger.js chore(test): increase test coverage around logger lib 2016-09-02 11:10:47 -05:00
password.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
payments.test.js Subscriptions Fixes (#8105) 2016-10-07 15:08:30 -05:00
preening.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
pushNotifications.js fix: Update notifications lib to make it testable 2016-09-12 16:59:52 -05:00
setupNconf.test.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
slack.js chore: Send author's email when sending flag notification to slack 2016-09-30 07:43:15 -05:00
taskManager.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
webhooks.test.js Webhook improvements (#7879) 2016-10-02 09:16:22 -05:00