mirror of https://github.com/zulip/zulip.git
tests: Iterate over tabs with Object.values.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
8bb515dbd9
commit
3b4dc2d8d8
|
@ -150,9 +150,9 @@ run_test('test tab clicks', () => {
|
|||
|
||||
$('#bots_lists_navbar .active').removeClass = (cls) => {
|
||||
assert.equal(cls, 'active');
|
||||
_.each(tabs, (tab) => {
|
||||
for (const tab of Object.values(tabs)) {
|
||||
tab.removeClass('active');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const forms = {
|
||||
|
|
Loading…
Reference in New Issue