You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should show count for a single blocked server',()=>{
772
+
vi.mocked(getCodeAssistServer).mockReturnValue({
773
+
projectId: 'test-project-123',
774
+
}asCodeAssistServer);
775
+
776
+
constmessage=getAdminBlockedMcpServersMessage(
777
+
['server-1'],
778
+
mockConfig,
779
+
);
780
+
781
+
expect(message).toBe(
782
+
'1 MCP server is not allowlisted by your administrator. To enable it, please request an update to the settings at: https://goo.gle/manage-gemini-cli?project=test-project-123',
783
+
);
784
+
});
785
+
786
+
it('should show count for multiple blocked servers',()=>{
787
+
vi.mocked(getCodeAssistServer).mockReturnValue({
788
+
projectId: 'test-project-123',
789
+
}asCodeAssistServer);
790
+
791
+
constmessage=getAdminBlockedMcpServersMessage(
792
+
['server-1','server-2','server-3'],
793
+
mockConfig,
794
+
);
795
+
796
+
expect(message).toBe(
797
+
'3 MCP servers are not allowlisted by your administrator. To enable them, please request an update to the settings at: https://goo.gle/manage-gemini-cli?project=test-project-123',
798
+
);
799
+
});
800
+
801
+
it('should format message correctly with no project ID',()=>{
'2 MCP servers are not allowlisted by your administrator. To enable them, please request an update to the settings at: https://goo.gle/manage-gemini-cli',
0 commit comments