Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
  • Loading branch information
JeffreyDallas committed Mar 22, 2024
1 parent ffdac9c commit c1d5d05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/e2e/commands/cluster.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ describe('ClusterCommand', () => {

it('should cleanup existing deployment', async () => {
if (await chartManager.isChartInstalled(constants.FULLSTACK_SETUP_NAMESPACE, constants.FULLSTACK_CLUSTER_SETUP_CHART)) {
await clusterCmd.reset(argv)
expect.assertions(1)
try {
await expect(clusterCmd.reset(argv)).resolves.toBeTruthy()
} catch (e) {
clusterCmd.logger.showUserError(e)
expect(e).toBeNull()
}
}
}, 60000)

Expand Down

0 comments on commit c1d5d05

Please sign in to comment.