Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Mar 7, 2024
1 parent e5cc1ae commit a6c49a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit-tests/aws/cloud-formation-wrapper.test.ts
Expand Up @@ -107,6 +107,7 @@ describe("Cloud Formation wrapper checks", () => {
} catch (err) {
errored = true;
expect(err.message).to.contains("Failed to find logicalResourceId");
expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added");
}
expect(errored).to.equal(true);

Expand Down Expand Up @@ -160,6 +161,7 @@ describe("Cloud Formation wrapper checks", () => {
} catch (err) {
errored = true;
expect(err.message).to.contains("Failed to find logicalResourceId");
expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added");
}
expect(errored).to.equal(true);

Expand All @@ -185,6 +187,7 @@ describe("Cloud Formation wrapper checks", () => {
} catch (err) {
errored = true;
expect(err.message).to.contains("Failed to find logicalResourceId");
expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added");
}
expect(errored).to.equal(true);
expect(consoleOutput[0]).to.contains("Unsupported apiGateway");
Expand Down Expand Up @@ -389,6 +392,7 @@ describe("Cloud Formation wrapper checks", () => {
} catch (err) {
errored = true;
expect(err.message).to.contains("Failed to find logicalResourceId");
expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added");
}
expect(errored).to.equal(true);
expect(consoleOutput[0]).to.contains("[WARNING] Failed to find CloudFormation resources with an error");
Expand Down

0 comments on commit a6c49a7

Please sign in to comment.