Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

539 B
Raw Blame
// @vitest-environment node

import { describe, expect, it } from 'vitest';
import { slugifyUniverseName, universeMarkdownFilename } from './universeMarkdownFilename.js';
import { UNIVERSE_MARKDOWN_FILENAME_CASES } from './universeMarkdownFilename.cases.js';

describe('universeMarkdownFilename', () => {
  it.each(UNIVERSE_MARKDOWN_FILENAME_CASES)('matches the server-safe contract for %j', (name, slug, filename) => {
    expect(slugifyUniverseName(name)).toBe(slug);
    expect(universeMarkdownFilename(name)).toBe(filename);
  });
});