Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit a6aff3b

Browse files
author
P Coolen
committed
Add test for Custom Description
1 parent 99a1719 commit a6aff3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/serverless-component/__tests__/custom-inputs.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe("Custom inputs", () => {
6868
componentOutputs = await component.default({
6969
policy: "arn:aws:iam::aws:policy/CustomRole",
7070
domain: inputDomains,
71+
description: "Custom description",
7172
memory: 512
7273
});
7374
});
@@ -93,7 +94,7 @@ describe("Custom inputs", () => {
9394
it("uses custom policy document provided", () => {
9495
expect(mockLambda).toBeCalledWith(
9596
expect.objectContaining({
96-
description: expect.stringContaining("Default Lambda@Edge"),
97+
description: expect.stringContaining("Custom description"),
9798
role: expect.objectContaining({
9899
policy: {
99100
arn: "arn:aws:iam::aws:policy/CustomRole"

0 commit comments

Comments
 (0)