Skip to content

Commit

Permalink
test(client): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 23, 2024
1 parent e40e9de commit 81cf4e7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,19 @@ describe('<TabContextAction>', function() {

function createTabAction(options = {}) {
const {
getTabIcon,
onSelect,
subscribe,
getTabIcon = noop,
onSelect = noop,
subscribe = createSubscribe,
tabs = DEFAULT_TABS,
triggerAction
triggerAction = noop
} = options;

const tree = mount(
<TabContextAction
getTabIcon={ getTabIcon || noop }
onSelect={ onSelect || noop }
subscribe={ subscribe || createSubscribe() }
triggerAction={ triggerAction || noop } />
getTabIcon={ getTabIcon }
onSelect={ onSelect }
subscribe={ subscribe }
triggerAction={ triggerAction } />
);

const instance = tree.instance();
Expand Down Expand Up @@ -323,4 +323,4 @@ function nodesAsTextList(items) {

function asTextList(items) {
return items.map(i => i.text);
}
}

0 comments on commit 81cf4e7

Please sign in to comment.