test: drop assertOrganizationAIConfigured capability assertion

Per review feedback — exclude the test-side regression assertion for the
capability argument. Production-code change in the previous commit (ENG-1001)
is the actual fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dhruwang
2026-05-20 17:14:15 +05:30
parent 3c1c651828
commit 0430836ca2
@@ -206,9 +206,5 @@ describe("chart Cube actions", () => {
userId: "user-1",
source: "charts.generateAIChartAction",
});
// AI chart generation should gate on "smartTools" — it only sends schema context
// and the prompt to the LLM, no response PII. Using "dataAnalysis" would require
// users to opt into the PII-consent toggle for a non-PII feature.
expect(mocks.assertOrganizationAIConfigured).toHaveBeenCalledWith("organization-1", "smartTools");
});
});