Skip to content

Commit 16e8322

Browse files
committed
chore: event listener instance
1 parent d8052a2 commit 16e8322

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/jest/view/container.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { flushPromises } from '../testUtil';
1111
import { Status } from '../../../src/types';
1212
import * as TableActions from '../../../src/view/actions';
1313
import Tabular from '../../../src/tabular';
14+
import { EventEmitter } from '../../../src/util/eventEmitter';
1415

1516
expect.extend(toHaveNoViolations);
1617

@@ -314,11 +315,13 @@ describe('Container component', () => {
314315
});
315316

316317
it('should remove the EventEmitter listeners', async () => {
317-
config.update({
318+
const config = new Config().update({
319+
data: [],
318320
search: true,
319321
pagination: true,
320322
columns: ['Name', 'Phone Number'],
321323
sort: true,
324+
eventEmitter: new EventEmitter<any>(),
322325
});
323326

324327
const container = mount(

0 commit comments

Comments
 (0)