From 3debcba29a3e7a7840b4dc6a1cbcb42e517ebcdb Mon Sep 17 00:00:00 2001 From: frozar Date: Sat, 25 Jan 2025 14:10:21 +0400 Subject: [PATCH] Update html-templates.md: provide install command Provide the command to install a dependency to the project --- html-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-templates.md b/html-templates.md index c65bcb0e..1ff2fee1 100644 --- a/html-templates.md +++ b/html-templates.md @@ -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) {