Skip to content

Commit

Permalink
fix(tabs: QUnit): Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marker-dao committed Sep 7, 2023
1 parent 6d5b3d9 commit aeafbb1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,13 @@ QUnit.module('General', () => {

assert.strictEqual(instance.option('stylingMode'), STYLING_MODE.primary);
assert.strictEqual($element.hasClass(TABS_STYLING_MODE_CLASS.primary), true);
assert.strictEqual($element.hasClass(TABS_STYLING_MODE_CLASS.secondary), false);

instance.option({ stylingMode: 'secondary' });

assert.strictEqual(instance.option('stylingMode'), STYLING_MODE.secondary);
assert.strictEqual($element.hasClass(TABS_STYLING_MODE_CLASS.secondary), true);
assert.strictEqual($element.hasClass(TABS_STYLING_MODE_CLASS.primary), false);
});
});

Expand Down

0 comments on commit aeafbb1

Please sign in to comment.