Skip to content

Commit

Permalink
fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jul 31, 2024
1 parent 71b26b4 commit 4723b91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,20 +224,6 @@ describe('RangesliderControlApi', () => {
});

describe('step state', () => {
test('default value provided when state.step is undefined', async () => {
const { api } = await factory.buildControl(
{
dataViewId: 'myDataViewId',
fieldName: 'myFieldName',
},
buildApiMock,
uuid,
controlGroupApi
);
const serializedState = api.serializeState() as SerializedPanelState<RangesliderControlState>;
expect(serializedState.rawState.step).toBe(1);
});

test('retains value from initial state', async () => {
const { api } = await factory.buildControl(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ describe('react embeddable renderer', () => {
expect.any(Function),
expect.any(String),
expect.any(Object),
expect.any(Function)
expect.any(Function),
{ bork: 'blorp?' },
);
});
});
Expand All @@ -120,7 +121,8 @@ describe('react embeddable renderer', () => {
expect.any(Function),
'12345',
expect.any(Object),
expect.any(Function)
expect.any(Function),
{ bork: 'blorp?' },
);
});
});
Expand All @@ -142,7 +144,8 @@ describe('react embeddable renderer', () => {
expect.any(Function),
expect.any(String),
parentApi,
expect.any(Function)
expect.any(Function),
{ bork: 'blorp?' },
);
});
});
Expand Down

0 comments on commit 4723b91

Please sign in to comment.