Skip to content

Commit

Permalink
Fix cs issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Oct 15, 2024
1 parent f3f0cee commit 0e0d340
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib/Actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,18 @@ describe(
const baseItem = {
field: 'value'
};
const callback = (item?: object | undefined): boolean => {
const callback = (item?: unknown): void => {
called = true;
// @ts-ignore
item.field = 'newValue';
return called;
};
const action = new CallbackAction('', null, callback);

expect(action.call(baseItem)).toBe(true);
expect(called).toBe(false);

action.call(baseItem)

expect(called).toBe(true);
expect(baseItem.field).toBe('newValue');
});
},
Expand Down

0 comments on commit 0e0d340

Please sign in to comment.