Skip to content

Commit 3de5b26

Browse files
added comment describing test in 'should return an error when creating a deployment that already exists'
1 parent 5ae9405 commit 3de5b26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/tools/atlas-local/createDeployment.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ describeWithAtlasLocal("atlas-local-create-deployment", (integration) => {
8282
name: "atlas-local-create-deployment",
8383
arguments: { deploymentName },
8484
});
85+
86+
// Check that the response is an error
8587
expect(response.isError).toBe(true);
8688
const elements = getResponseElements(response.content);
89+
// There should be one element, the error message
8790
expect(elements).toHaveLength(1);
8891
expect(elements[0]?.text).toContain("Container already exists: " + deploymentName);
8992
});

0 commit comments

Comments
 (0)