Skip to content

Commit

Permalink
fix: fix incorrect incorrect local links to the dependency injection …
Browse files Browse the repository at this point in the history
…section (#764)
  • Loading branch information
dario-piotrowicz authored May 13, 2024
1 parent 9f0d3e7 commit 822e707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ We'll leave this as an exercise for you, the reader. You should be able to find

**Note**. Be careful not to worry too much about explicitly testing how a 3rd party library behaves in unit tests.

Writing tests against code you don't control is wasteful and adds maintenance overhead. Sometimes you may wish to use [dependency injection](/dependency-injection.md) to control a dependency and mock its behaviour for a test.
Writing tests against code you don't control is wasteful and adds maintenance overhead. Sometimes you may wish to use [dependency injection](./dependency-injection.md) to control a dependency and mock its behaviour for a test.

In this case though, I view converting the markdown into HTML as implementation detail of rendering, and our approval tests should give us enough confidence.

Expand Down
2 changes: 1 addition & 1 deletion os-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
A few things

- When something is difficult to test, it's often due to the separation of concerns not being quite right
- Don't add "test modes" into your code, instead use [Dependency Injection](/dependency-injection.md) so that you can model your dependencies and separate concerns.
- Don't add "test modes" into your code, instead use [Dependency Injection](./dependency-injection.md) so that you can model your dependencies and separate concerns.

I have taken the liberty of guessing what the code might look like

Expand Down

0 comments on commit 822e707

Please sign in to comment.