Skip to content

Commit

Permalink
Update html-templates.md: provide install command
Browse files Browse the repository at this point in the history
Provide the command to install a dependency to the project
  • Loading branch information
frozar committed Jan 25, 2025
1 parent 012942d commit 3debcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ But really, we don't actually care about whitespace. Maintaining this test will
The idea is similar to "golden" files, or snapshot testing. Rather than awkwardly maintaining strings within a test file, the approval tool can compare the output for you with an "approved" file you created. You then simply copy over the new version if you approve it. Re-run the test and you're back to green.

Add a dependency to `"github.com/approvals/go-approval-tests"` to your project and edit the test to the following
Add a dependency to `"github.com/approvals/go-approval-tests"` (with the command `go get github.com/approvals/go-approval-tests`) to your project and edit the test to the following

```go
func TestRender(t *testing.T) {
Expand Down

0 comments on commit 3debcba

Please sign in to comment.