Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Nov 20, 2024
1 parent 4d6d802 commit 5b759b5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ describe('useRecoveryToasts', () => {

result.current.makeSuccessToast()
expect(mockMakeToast).toHaveBeenCalledWith(
'Retrying step 1 succeeded.',
'test command',
'success',
expect.objectContaining({
closeButton: true,
disableTimeout: true,
displayType: 'desktop',
heading: expect.any(String),
heading: 'Retrying step 1 succeeded.',
})
)
})
Expand Down Expand Up @@ -209,8 +209,8 @@ describe('useRecoveryFullCommandText', () => {
const { result } = renderHook(() =>
useRecoveryFullCommandText({
robotType: FLEX_ROBOT_TYPE,
stepNumber: 0,
commandTextData: { commands: [TEST_COMMAND] } as any,
stepNumber: 1,
commandTextData: { commands: [TEST_COMMAND, {}] } as any,
allRunDefs: [],
})
)
Expand Down Expand Up @@ -259,7 +259,7 @@ describe('useRecoveryFullCommandText', () => {
const { result } = renderHook(() =>
useRecoveryFullCommandText({
robotType: FLEX_ROBOT_TYPE,
stepNumber: 0,
stepNumber: 1,
commandTextData: {
commands: [TC_COMMAND],
} as any,
Expand All @@ -279,9 +279,9 @@ describe('useRecoveryFullCommandText', () => {
const { result } = renderHook(() =>
useRecoveryFullCommandText({
robotType: FLEX_ROBOT_TYPE,
stepNumber: 0,
stepNumber: 1,
commandTextData: {
commands: [TC_COMMAND],
commands: [TC_COMMAND, {}],
} as any,
allRunDefs: [],
})
Expand Down

0 comments on commit 5b759b5

Please sign in to comment.