Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3debcba

Browse files
committed
Update html-templates.md: provide install command
Provide the command to install a dependency to the project
1 parent012942d commit3debcba

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
funcTestRender(t *testing.T) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp