mirror of https://github.com/zulip/zulip.git
55b2b1c25d
Translation handlebars helpers were not getting changed when we mock static/js/i18n.ts and then unmock it in a different test. We mock i18n.ts for every test except node_tests/i18n.js. So, running any code that calls the registered handlebar helpers related to translations before running i18n test will run the helper functions registered with mocked i18n module. The subsequent tests too would use those functions registered with mocked i18n module. This causes the i18n test to fail as we expect the registered helpers to use actual i18n.ts instead of a mock if we have code that would call the registered translation helpers in tests that run before i18n. |
||
---|---|---|
.. | ||
handlebars.js | ||
i18n.js | ||
index.js | ||
markdown_assert.js | ||
mdiff.js | ||
namespace.js | ||
real_jquery.js | ||
stub.js | ||
test.js | ||
zblueslip.js | ||
zjquery.js | ||
zjquery_element.js | ||
zjquery_event.js | ||
zpage_params.js |