Skip to content

Commit 23f64d3

Browse files
committed
chore: placate SQ
1 parent 6107867 commit 23f64d3

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/cdkConstructs/tests/constructs/RestApiGateway/StateMachineEndpoint.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ describe("StateMachineEndpoint construct", () => {
7272
IntegrationHttpMethod: "POST",
7373
IntegrationResponses: Match.arrayWith([
7474
Match.objectLike({StatusCode: "200"}),
75-
Match.objectLike({StatusCode: "400", SelectionPattern: "^4\\d{2}.*"}),
76-
Match.objectLike({StatusCode: "500", SelectionPattern: "^5\\d{2}.*"})
75+
Match.objectLike({StatusCode: "400", SelectionPattern: String.raw`^4\d{2}.*`}),
76+
Match.objectLike({StatusCode: "500", SelectionPattern: String.raw`^5\d{2}.*`})
7777
])
7878
})
7979
})

packages/cdkConstructs/tests/constructs/stateMachineConstruct.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ describe("ExpressStateMachine construct", () => {
111111

112112
describe("ExpressStateMachine with Splunk disabled", () => {
113113
let template: Template
114+
let construct: ExpressStateMachine
114115

115116
beforeAll(() => {
116117
const app = new App()
117118
const stack = new Stack(app, "StateMachineNoSplunkStack")
118119
const dummyState = new Pass(stack, "DummyState")
119120

120-
new ExpressStateMachine(stack, "TestStateMachine", {
121+
construct = new ExpressStateMachine(stack, "TestStateMachine", {
121122
stackName: "test-stack",
122123
stateMachineName: "test-state-machine",
123124
definition: dummyState,
@@ -132,6 +133,11 @@ describe("ExpressStateMachine with Splunk disabled", () => {
132133
const filters = template.findResources("AWS::Logs::SubscriptionFilter")
133134
expect(Object.keys(filters).length).toBe(0)
134135
})
136+
137+
test("exposes executionPolicy and stateMachine as public properties", () => {
138+
expect(construct.executionPolicy).toBeDefined()
139+
expect(construct.stateMachine).toBeDefined()
140+
})
135141
})
136142

137143
describe("CatchAllErrorPass construct", () => {

0 commit comments

Comments
 (0)