f1a3bd5001
* 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
How to run tests:
npm testis equivalent togulp test:api-v3which will run, in order,gulp lint,gulp test:api-v3:unitandgulp test:api-v3:integration. If one of these fails, the wholenpm testcommand blocks and fails. Each of these commands can also be run as a standalone command.- To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run
npm startin one andnpm test:api-v3:integration:separate-serverin the other