habitica-self-host/test/helpers
Jaka Kranjc f1a3bd5001 transferGems: use receiver language translation for PM strings #7722 (#8173)
* transferGems: use receiver language translation for PM strings #7722

* chore(test): DRY up transfer gems test

* chore(test): Allow check for language in translation assertion

* chore(test): Add test that member locales are used in transfer gems msg

* sendMessage: optionally take also the message in sender's language

when present, it is stored in the sender's inbox instead of the version
in the target language.

* transferGems: prepare pm in both languages #7722

* sendMessage: take an object for the second parameter instead

* payments: made two more gift strings translatable

* buyGems: send both translations for gifted gems

* buyGems: send push notifications in target user's locale

* createSubscription: send both translations for gifted subs

* createSubscription: send push notifications in target user's locale

* transferGems: send push notifications in target user's locale

* tests: adjust payment tests for translation changes

* added function doc for sendMessage

* tests: added bilingual test for buyGems
2016-12-15 18:36:54 -06:00
..
api-integration Setup up non-API tests to not need server and mongo running 2016-10-22 08:14:00 -05:00
api-unit.helper.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
api-v3-integration.helper.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
common.helper.js Webhook improvements (#7879) 2016-10-02 09:16:22 -05:00
content.helper.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
globals.helper.js Setup up non-API tests to not need server and mongo running 2016-10-22 08:14:00 -05:00
mongo.js feat(analytics): AB testing 2016-09-12 22:13:25 -05:00
sleep.js Webhook improvements (#7879) 2016-10-02 09:16:22 -05:00
start-server.js Setup up non-API tests to not need server and mongo running 2016-10-22 08:14:00 -05:00
translate.js transferGems: use receiver language translation for PM strings #7722 (#8173) 2016-12-15 18:36:54 -06:00