Skip to content

Commit 295a8ed

Browse files
committed
add test assertion
1 parent 3498594 commit 295a8ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/src/setFeature.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ describe(setFeature.name, () => {
66
it("creates the context object path if needed", () => {
77
const context: HandlerExecutionContext = {};
88
setFeature(context, "RETRY_MODE_STANDARD", "E");
9+
expect(context).toEqual({
10+
__smithy_context: {
11+
features: {
12+
RETRY_MODE_STANDARD: "E",
13+
},
14+
},
15+
});
916
});
1017
});

0 commit comments

Comments
 (0)