tests: Iterate over tabs with Object.values.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-06 01:23:02 +00:00 committed by Tim Abbott
parent 8bb515dbd9
commit 3b4dc2d8d8
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {