You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: html-templates.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -365,7 +365,7 @@ But really, we don't actually care about whitespace. Maintaining this test will
365
365
366
366
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.
367
367
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