mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
node tests: Just set i18n every time.
Explicitly stubbing i18n in 48 different files is mostly busy work at this point, and it doesn't provide much signal, since often it's invoked only to satisfy transitive dependencies.
This commit is contained in:
@@ -59,10 +59,8 @@ const denmark_stream = {
|
||||
// prefer to test with a clean slate.
|
||||
|
||||
set_global('page_params', {});
|
||||
set_global('i18n', global.stub_i18n);
|
||||
|
||||
zrequire('stream_data');
|
||||
set_global('i18n', global.stub_i18n);
|
||||
|
||||
run_test('stream_data', () => {
|
||||
assert.equal(stream_data.get_sub_by_name('Denmark'), undefined);
|
||||
|
||||
Reference in New Issue
Block a user