Skip to content

Commit

Permalink
test: reset bus before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Aug 19, 2024
1 parent b00f765 commit ba603de
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getDataTestSelector, installNewXPlugin } from '../../../__tests__/utils
import { XPlugin } from '../../../plugins/x-plugin';
import BaseColumnPickerDropdown from '../base-column-picker-dropdown.vue';
import { XDummyBus } from '../../../__tests__/bus.dummy';
const bus = new XDummyBus();
let bus = new XDummyBus();

function render({
selectedColumns,
Expand Down Expand Up @@ -69,6 +69,10 @@ function render({
}

describe('testing BaseColumnPickerDropdown component', () => {
beforeEach(() => {
bus = new XDummyBus();
});

it('emits ColumnsNumberProvided event with the column number on init', () => {
render();

Expand Down

0 comments on commit ba603de

Please sign in to comment.