test: use return type of t.mock.method #32

Merged
Ghost merged 0 commits from refs/pull/32/head into main 2025-11-02 10:58:36 +00:00
Ghost commented 2025-11-02 10:56:08 +00:00 (Migrated from codeberg.org)

Just does two small chores:

  • I hadn't realized that t.mock.method already returns a Mock<T> object, so I don't have to use JSDoc type annotations to specify the type. So much cleaner!
  • Add quotes to the YAML example in the README as I'll be using quotes from now on in YAML files and encouraging this to avoid "getting yamled".
Just does two small chores: * I hadn't realized that `t.mock.method` already returns a `Mock<T>` object, so I don't have to use JSDoc type annotations to specify the type. So much cleaner! * Add quotes to the YAML example in the README as I'll be using quotes from now on in YAML files and encouraging this to avoid ["getting yamled"](https://github.com/kivikakk/comrak/commit/0b9eba5d7e9f7fdcf9eed9bbb68ad15bc0ce8545).
Ghost commented 2025-11-02 10:58:36 +00:00 (Migrated from codeberg.org)

mentioned in commit c0b9227dfb

mentioned in commit c0b9227dfbf1f0be22e2951070dc2d2b27cde596
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/matrix-stream-alerts!32
No description provided.