Skip to content

Commit 297b66b

Browse files
author
Elad Ben-Israel
committed
fix assert test
1 parent 3912e28 commit 297b66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/assert/lib/expect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function isStackClassInstance(x: api.SynthesizedStack | cdk.Stack): x is cdk.Sta
4141

4242
function collectStackMetadata(root: cdk.ConstructNode): api.StackMetadata {
4343
const result: api.StackMetadata = {};
44-
for (const construct of root.findAll(cdk.ConstructOrder.DepthFirst)) {
44+
for (const construct of root.findAll(cdk.ConstructOrder.PreOrder)) {
4545
const path = `/${root.id}/${construct.node.path}`;
4646
for (const entry of construct.node.metadata) {
4747
result[path] = result[path] || [];

0 commit comments

Comments
 (0)