Skip to content

Commit

Permalink
docs(example): use more appropiate vocab
Browse files Browse the repository at this point in the history
  • Loading branch information
adairo committed Dec 3, 2024
1 parent eca0e6c commit 86e9cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class UserRepository {
}
}

// As we want to test the `findOrThrow` method, we don't actually want to access the database
// As we want to test the `findOrThrow` method, we don't actually need to access the database
Deno.test("findOrThrow method throws when the user was not found", () => {
// Stub the `getUserById` function to return `undefined` when called.
using dbStub = stub(database, "getUserById", returnsNext([undefined]));
Expand Down

0 comments on commit 86e9cab

Please sign in to comment.