Skip to content

test: Get-Categories.Tests.ps1 Context block missing BDD language #138

Description

@ndomako10

Finding

The single `Context` block in `Tests/Get-Categories.Tests.ps1` (line 33) is named `'reading from Categories.json'` instead of using the required `given` / `when` / `with` prefix mandated by CLAUDE.md. This makes the test output read as an implementation log rather than a behavioural specification.

Impact

Test output does not read as a specification, making it harder for reviewers to understand intent without reading the implementation.

Fix

Rename the Context block to `'given a valid Categories.json file'` (and add sibling contexts for the absent/malformed cases that are currently grouped inside it).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testTest additions or changes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions