Skip to content

Commit

Permalink
test(handlers/static): 修正测试错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Oct 16, 2024
1 parent eb39c5a commit 8ac4b21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handlers/static/static_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func TestServeFileHandler(t *testing.T) {
servertest.Get(a, "http://localhost:8080/not/").
Do(nil).
Status(http.StatusOK).
StringBody(`<pre>
StringBody(`<!doctype html>
<meta name="viewport" content="width=device-width">
<pre>
<a href="default.html">default.html</a>
<a href="file.txt">file.txt</a>
<a href="index.html">index.html</a>
Expand Down

0 comments on commit 8ac4b21

Please sign in to comment.