Skip to content

Add unit tests for ui/markdown.js and an npm test script #6

Description

@false200

What is this about?

Problem

Cipher has no automated tests. ui/markdown.js is pure functions — perfect first test target. package.json has no test script.

Where to look

  • ui/markdown.jsrenderAssistantMarkdown, escapeHtml
  • New file: scripts/test-markdown.mjs
  • package.json — add "test": "node scripts/test-markdown.mjs"

Acceptance criteria

  • Tests cover headings, lists, inline code, fenced code blocks, HTML escaping
  • npm test passes locally
  • CONTRIBUTING.md mentions how to run tests

Skills needed

Node.js only — no Electron window needed. Great first open-source test PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions