Skip to content

Commit c4f4b2b

Browse files
fix: align test assertions with warningItem prop (was installCount)
1 parent 8420572 commit c4f4b2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/app/src/cli/prompts/deploy-release.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ describe('deployOrReleaseConfirmationPrompt', () => {
227227
// Then
228228
expect(renderDangerousConfirmationPromptSpyOn).toHaveBeenCalledWith(
229229
expect.objectContaining({
230-
installCount: 1243,
230+
warningItem: expect.arrayContaining([{error: '1243'}]),
231231
}),
232232
)
233233
expect(result).toBe(true)
234234
})
235235

236-
test('and no force with deleted extensions but installCount 0 should not pass installCount to danger prompt', async () => {
236+
test('and no force with deleted extensions but installCount 0 should not pass warningItem to danger prompt', async () => {
237237
// Given
238238
const breakdownInfo = buildCompleteBreakdownInfo()
239239
const renderDangerousConfirmationPromptSpyOn = vi
@@ -254,7 +254,7 @@ describe('deployOrReleaseConfirmationPrompt', () => {
254254
// Then
255255
expect(renderDangerousConfirmationPromptSpyOn).toHaveBeenCalledWith(
256256
expect.not.objectContaining({
257-
installCount: expect.anything(),
257+
warningItem: expect.anything(),
258258
}),
259259
)
260260
expect(result).toBe(true)

0 commit comments

Comments
 (0)