Skip to content

Commit 822e707

Browse files
fix: fix incorrect incorrect local links to the dependency injection section (#764)
1 parent 9f0d3e7 commit 822e707

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

html-templates.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ We'll leave this as an exercise for you, the reader. You should be able to find
667667

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

670-
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.
670+
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.
671671

672672
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.
673673

os-exec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
A few things
1616

1717
- When something is difficult to test, it's often due to the separation of concerns not being quite right
18-
- 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.
18+
- 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.
1919

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

0 commit comments

Comments
 (0)