Skip to content

Commit

Permalink
Update outdated function name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErlingHauan committed Oct 7, 2024
1 parent 99cef1d commit 5fe11bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ describe('EditNumberValue', () => {
// The component is updated for each keystroke, so we expect the mock to be called twice -
// I think it should prevent this behavior with this new issue: https://github.com/Altinn/altinn-studio/issues/11989
expect(mockHandleComponentChange).toHaveBeenCalledTimes(2);
expect(appContextMock.refetchLayouts).toHaveBeenCalledTimes(2);
expect(appContextMock.refetchLayouts).toHaveBeenCalledWith('test-layout-set', true);
expect(appContextMock.updateLayoutsForPreview).toHaveBeenCalledTimes(2);
expect(appContextMock.updateLayoutsForPreview).toHaveBeenCalledWith('test-layout-set', true);

mockHandleComponentChange.mockClear();
await user.clear(input);
Expand Down

0 comments on commit 5fe11bc

Please sign in to comment.