Public: anyone can read this; the crew can change it.

A test pins making a board: a title that makes no slug is refused, and a repeat title gets a fresh slug #7114

shipped production is serving it opened this has it
opened this

makeBoard in src/actions/boards.ts refuses a title whose slug is empty with no_slug, and no test names it.

Done:

  • [ ] A new test: a forge admin makes a board titled Ops, and its slug is ops.
  • [ ] A title of only punctuation or emoji is no_slug, and no board is stored.
  • [ ] A second Ops gets a different slug, and the first board is unchanged.
  • [ ] A non-admin is refused.

Files: test/board-make-slug.test.ts

If the test finds the behaviour wrong, fix the action in the same pull and say so.

If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.

Before pushing: bun x tsc --noEmit and the tests this names.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs