Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import { hasConfiguredFooter } from './footer';
describe('hasConfiguredFooter', () => {
it('is true for a footer the deployment configured itself', () => {
expect(hasConfiguredFooter({ customFooter: 'Operator policy' })).toBe(true);
expect(hasConfiguredFooter({ customFooter: '[Docs](https://example.com)' })).toBe(true);
});
it('is false for a deployment that configured none of it', () => {
expect(hasConfiguredFooter()).toBe(false);
expect(hasConfiguredFooter(null)).toBe(false);
expect(hasConfiguredFooter({})).toBe(false);
/** An operator who set the footer to nothing suppressed the welcome
* screen's disclaimer; a conversation renders nothing for it, so it must
* not reserve the band a bar would need. */
expect(hasConfiguredFooter({ customFooter: '' })).toBe(false);
/** The bar trims each part, so whitespace is the same nothing. */
expect(hasConfiguredFooter({ customFooter: ' ' })).toBe(false);
});
});