Skip to content
Permalink
Browse files

signupのテスト

  • Loading branch information...
shibayu36 committed Jun 6, 2019
1 parent 2bbe06a commit cef0d7e690cd924ccb84c5a5d3e012f99abdb4d2
Showing with 10 additions and 0 deletions.
  1. +10 −0 web/server_test.go
@@ -43,3 +43,13 @@ func TestServer_Index(t *testing.T) {
assert.Equal(t, http.StatusOK, resp.StatusCode)
assert.Contains(t, respBody, `<h1>ダイアリー</h1>`)
}

func TestServer_Signup(t *testing.T) {
_, ts := newAppServer()
defer ts.Close()

resp, respBody := client.Get(ts.URL + "/signup").Do()

assert.Equal(t, http.StatusOK, resp.StatusCode)
assert.Contains(t, respBody, `<h1>ユーザー登録</h1>`)
}

0 comments on commit cef0d7e

Please sign in to comment.
You can’t perform that action at this time.