























@@ -60,6 +60,16 @@ function requireFirstCommandRegistration(
6060return registration;
6161}
626263+function joinContextFragments(...fragments: Array<string | undefined>): string {
64+const present: string[] = [];
65+for (const fragment of fragments) {
66+if (fragment) {
67+present.push(fragment);
68+}
69+}
70+return present.join("\n\n");
71+}
72+6373describe("host-hook fixture plugin contract", () => {
6474afterEach(() => {
6575setActivePluginRegistry(createEmptyPluginRegistry());
@@ -960,9 +970,11 @@ describe("host-hook fixture plugin contract", () => {
960970);
961971962972expect(
963-[queuedContext.prependContext, queuedContext.appendContext, hookContext?.prependContext]
964-.filter(Boolean)
965-.join("\n\n"),
973+joinContextFragments(
974+queuedContext.prependContext,
975+queuedContext.appendContext,
976+hookContext?.prependContext,
977+),
966978).toContain("approval workflow resumed");
967979expect(hookContext?.prependContext).toBe("fixture turn context");
968980});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。