node tests: Clear muted users before each test.

This commit is contained in:
Steve Howell
2021-05-13 18:34:43 +00:00
committed by Steve Howell
parent efed2fc8bc
commit 78c2279c93
2 changed files with 3 additions and 0 deletions

View File

@@ -307,6 +307,8 @@ function test(label, f) {
user_groups.add(backend); user_groups.add(backend);
user_groups.add(call_center); user_groups.add(call_center);
muting.set_muted_users([]);
f(override); f(override);
}); });
} }

View File

@@ -23,6 +23,7 @@ function test(label, f) {
run_test(label, (override) => { run_test(label, (override) => {
pmc.clear_for_testing(); pmc.clear_for_testing();
muting.set_muted_topics([]); muting.set_muted_topics([]);
muting.set_muted_users([]);
people.initialize_current_user(15); people.initialize_current_user(15);
f(override); f(override);
}); });