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 composerClearance from '../clearance';
describe('composerClearance', () => {
test('reserves the footer band on the welcome screen, doubled while the composer floats', () => {
expect(composerClearance({ isLandingPage: true, footerBelow: true, floating: true })).toBe(
'transition-all duration-200 sm:mb-28',
);
expect(composerClearance({ isLandingPage: true, footerBelow: true, floating: false })).toBe(
'sm:mb-10',
);
});
test('drops the footer band on a welcome screen with no footer beneath it', () => {
expect(composerClearance({ isLandingPage: true, footerBelow: false, floating: true })).toBe(
'sm:mb-4',
);
expect(composerClearance({ isLandingPage: true, footerBelow: false, floating: false })).toBe(
'sm:mb-4',
);
});
test('reserves the band in a conversation only for a configured footer', () => {
expect(composerClearance({ isLandingPage: false, footerBelow: true, floating: false })).toBe(
'sm:mb-10',
);
expect(composerClearance({ isLandingPage: false, footerBelow: false, floating: false })).toBe(
'sm:mb-4',
);
});
});