The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
import { DEMO_ACCOUNT_EMAILS, isDemoAccountEmail } from './demo-account';
import { describe, expect, it } from 'vitest';
describe('isDemoAccountEmail', () => {
it('knows the current and the pre-rename demo address', () => {
expect(DEMO_ACCOUNT_EMAILS).toEqual(['[email protected]', '[email protected]']);
expect(isDemoAccountEmail('[email protected]')).toBe(true);
expect(isDemoAccountEmail('[email protected]')).toBe(true);
});
it('is false for every other address and for none at all', () => {
expect(isDemoAccountEmail('[email protected]')).toBe(false);
expect(isDemoAccountEmail('[email protected]')).toBe(false);
expect(isDemoAccountEmail('')).toBe(false);
expect(isDemoAccountEmail(null)).toBe(false);
expect(isDemoAccountEmail(undefined)).toBe(false);
});
});