Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen committed Oct 8, 2024
1 parent f6d4878 commit 2312e2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/wrangler/src/__tests__/pages/project-delete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ describe("pages project delete", () => {
`);
});

it("should error if no project name is specified", async () => {
await expect(
runWrangler("pages project delete")
).rejects.toThrowErrorMatchingInlineSnapshot(
`[Error: Missing required argument: project-name]`
);
});

it("should not delete a project if confirmation refused", async () => {
mockConfirm({
text: `Are you sure you want to delete "some-project-name-2"? This action cannot be undone.`,
Expand Down

0 comments on commit 2312e2a

Please sign in to comment.