Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfreder committed Nov 25, 2024
1 parent 73e0812 commit 84c0e18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/test/shared/sam/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ describe('SAM runBuild', () => {
}
})

it('should throw ToolkitError when sync command fail', async () => {
it('should throw ToolkitError when build command fail', async () => {
getTestWindow().onDidShowMessage((m) => m.items.find((i) => i.title === 'View Logs In Terminal')?.select())

const prompterTester = PrompterTester.init()
.handleQuickPick('Specify parameter source for build', async (quickPick) => {
await quickPick.untilReady()
Expand Down Expand Up @@ -544,6 +546,8 @@ describe('SAM runBuild', () => {
} catch (error: any) {
assert(error instanceof ToolkitError)
assert.strictEqual(error.message, 'Failed to build SAM template')
assert(error.details?.['terminal'] as unknown as vscode.Terminal)
assert.strictEqual((error.details?.['terminal'] as unknown as vscode.Terminal).name, 'SAM build')
}
prompterTester.assertCallAll()
})
Expand Down

0 comments on commit 84c0e18

Please sign in to comment.