@@ -36,7 +36,7 @@ func TestIndexLinks(t *testing.T) {
3636 res := rec .Result ()
3737
3838 assert .Equal (t , http .StatusOK , res .StatusCode )
39- document := domtest .Response (t , res )
39+ document := domtest .ParseResponseDocument (t , res )
4040
4141 contactsLinks := document .QuerySelectorAll ("ul li a[href]" )
4242 assert .Equal (t , 2 , contactsLinks .Length ())
@@ -77,7 +77,7 @@ func TestViewContact(t *testing.T) {
7777 res := rec .Result ()
7878
7979 assert .Equal (t , http .StatusOK , res .StatusCode )
80- _ = domtest .Response (t , res )
80+ _ = domtest .ParseResponseDocument (t , res )
8181}
8282
8383func TestViewContactInvalidID (t * testing.T ) {
@@ -118,7 +118,7 @@ func TestEditContact(t *testing.T) {
118118 res := rec .Result ()
119119
120120 assert .Equal (t , http .StatusOK , res .StatusCode )
121- _ = domtest .Response (t , res )
121+ _ = domtest .ParseResponseDocument (t , res )
122122}
123123
124124func TestViewContactNotFound (t * testing.T ) {
@@ -134,7 +134,7 @@ func TestViewContactNotFound(t *testing.T) {
134134 res := rec .Result ()
135135
136136 assert .Equal (t , http .StatusNotFound , res .StatusCode )
137- _ = domtest .Response (t , res )
137+ _ = domtest .ParseResponseDocument (t , res )
138138}
139139
140140func TestEditContactNotFound (t * testing.T ) {
@@ -150,7 +150,7 @@ func TestEditContactNotFound(t *testing.T) {
150150 res := rec .Result ()
151151
152152 assert .Equal (t , http .StatusNotFound , res .StatusCode )
153- _ = domtest .Response (t , res )
153+ _ = domtest .ParseResponseDocument (t , res )
154154}
155155
156156func TestSubmitContact (t * testing.T ) {
@@ -183,7 +183,7 @@ func TestSubmitContact(t *testing.T) {
183183 assert .Equal (t , "orange" , query .LastName )
184184 assert .Equal (t , "cara.orange@example.com" , query .Email )
185185
186- _ = domtest .Response (t , res )
186+ _ = domtest .ParseResponseDocument (t , res )
187187}
188188
189189func TestSubmitContactError (t * testing.T ) {
@@ -206,7 +206,7 @@ func TestSubmitContactError(t *testing.T) {
206206 assert .Zero (t , db .ContactWithIDCallCount ())
207207
208208 assert .Equal (t , http .StatusInternalServerError , res .StatusCode )
209- _ = domtest .Response (t , res )
209+ _ = domtest .ParseResponseDocument (t , res )
210210}
211211
212212func TestSubmitContactUpdateFails (t * testing.T ) {
@@ -230,7 +230,7 @@ func TestSubmitContactUpdateFails(t *testing.T) {
230230 assert .Zero (t , db .ContactWithIDCallCount ())
231231
232232 assert .Equal (t , http .StatusInternalServerError , res .StatusCode )
233- _ = domtest .Response (t , res )
233+ _ = domtest .ParseResponseDocument (t , res )
234234}
235235
236236func TestSubmitContactGetFails (t * testing.T ) {
@@ -252,7 +252,7 @@ func TestSubmitContactGetFails(t *testing.T) {
252252 res := rec .Result ()
253253
254254 assert .Equal (t , http .StatusInternalServerError , res .StatusCode )
255- _ = domtest .Response (t , res )
255+ _ = domtest .ParseResponseDocument (t , res )
256256}
257257
258258func TestSubmitContactParseFails (t * testing.T ) {
@@ -272,7 +272,7 @@ func TestSubmitContactParseFails(t *testing.T) {
272272 assert .Zero (t , db .UpdateContactCallCount ())
273273
274274 assert .Equal (t , http .StatusBadRequest , res .StatusCode )
275- _ = domtest .Response (t , res )
275+ _ = domtest .ParseResponseDocument (t , res )
276276}
277277
278278func Test_write_full_page_missing_page (t * testing.T ) {
0 commit comments