Skip to content

Commit b2c7d28

Browse files
committed
test(acp): handle nullable native item references
1 parent 8821467 commit b2c7d28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ describe("AcpRegistryAdapterV2", () => {
11291129
assert.equal(new Set(items.map((item) => item.id)).size, 3);
11301130
for (const id of ["different-blocks", "second-id", "unmatched"]) {
11311131
assert.isTrue(
1132-
items.some((item) => item.nativeItemRef?.nativeId.endsWith(`:user:message:${id}`)),
1132+
items.some((item) => item.nativeItemRef?.nativeId?.endsWith(`:user:message:${id}`)),
11331133
`${id} remains visible`,
11341134
);
11351135
}

0 commit comments

Comments
 (0)