Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

test(docs): guard the Go SDK non-affiliation notice

Yudhi Armyndharis22193f1e43af
diff --git a/src/common/docs-governance.spec.ts b/src/common/docs-governance.spec.ts
index 990ad257c..cd04f11e2 100644
--- a/src/common/docs-governance.spec.ts
+++ b/src/common/docs-governance.spec.ts
@@ -174,6 +174,10 @@ describe('governance docs match the repository', () => {
/^Official .+ SDK for OpenWA, the open-source WhatsApp API Gateway \(not affiliated with WhatsApp or Meta\)$/,
);
}
+ // Go has no registry manifest: pkg.go.dev shows the package comment's first sentence instead.
+ expect(read('sdk/go/client.go')).toMatch(
+ /^\/\/ Package openwa is the official Go client for OpenWA, the open-source WhatsApp API Gateway \(not\n\/\/ affiliated with WhatsApp or Meta\)\./,
+ );
});
// The risk guide counts this published notice as the legal risk's mitigation.