Skip to content

Commit

Permalink
chore: use x-bus composable in base-grid test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar committed Apr 3, 2024
1 parent 463d50b commit 7d0062b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/x-components/tests/unit/base-grid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ListItem } from '../../src/utils';
import { NextQueriesGroup } from '../../src/x-modules/next-queries/types';
import { e2eAdapter } from '../../src/adapter/e2e-adapter';
import { XDummyBus } from '../../src/__tests__/bus.dummy';
import { useXBus } from '../../src/composables/use-x-bus';
import { loadCss } from './css.utils';

/**
Expand Down Expand Up @@ -60,7 +61,7 @@ function renderBaseGrid({
props: ['items', 'columns'],
template,
beforeCreate() {
XPlugin.bus.on('RenderedColumnsNumberChanged').subscribe(renderedColumnsNumberChangedSpy);
useXBus().on('RenderedColumnsNumberChanged').subscribe(renderedColumnsNumberChangedSpy);
}
},
{
Expand Down

0 comments on commit 7d0062b

Please sign in to comment.