Skip to content

Commit

Permalink
test(stack): add test for only passing one of stack or stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Geller committed Feb 11, 2021
1 parent 3196d28 commit 8a0ee36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/constructs/core/stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ describe("The GuStack construct", () => {

expect(json.Parameters).toBeUndefined();
});

it("can accept only one of stack or stage", function () {
const stack = simpleGuStackForTesting({ stage: "some-stage" });
expect(stack.stage).toEqual("some-stage");
});

it("should have stack and stage parameters", () => {
const stack = simpleGuStackForTesting();

Expand Down

0 comments on commit 8a0ee36

Please sign in to comment.