Skip to content

Commit

Permalink
feat(tabPanel: QUnit): Add tests for stylingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
marker-dao committed Sep 5, 2023
1 parent dd6116a commit f76a562
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ QUnit.module('options', {
assert.strictEqual(this.tabWidgetInstance.option('iconPosition'), 'top', 'option <iconPosition> of nested tabs widget successfully changed');
});

QUnit.test('stylingMode option should be passed to tabs correctly', function(assert) {
assert.strictEqual(this.tabWidgetInstance.option('stylingMode'), 'primary', 'option <stylingMode> successfully passed to nested tabs widget');

this.tabPanelInstance.option('stylingMode', 'secondary');

assert.strictEqual(this.tabWidgetInstance.option('stylingMode'), 'secondary', 'option <stylingMode> of nested tabs widget successfully changed');
});

QUnit.test('dataSource option test', function(assert) {
assert.expect(2);

Expand Down

0 comments on commit f76a562

Please sign in to comment.