Skip to content

Commit 3debcba

Browse files
committed
Update html-templates.md: provide install command
Provide the command to install a dependency to the project
1 parent 012942d commit 3debcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ But really, we don't actually care about whitespace. Maintaining this test will
365365
366366
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.
367367

368-
Add a dependency to `"github.com/approvals/go-approval-tests"` to your project and edit the test to the following
368+
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
369369

370370
```go
371371
func TestRender(t *testing.T) {

0 commit comments

Comments
 (0)