Skip to content

Commit d55017b

Browse files
committed
chore: bump github.com/crhntr/dom to v0.5.4
1 parent c68acd6 commit d55017b

3 files changed

Lines changed: 17 additions & 13 deletions

File tree

click-to-edit/main_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8383
func 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

124124
func 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

140140
func 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

156156
func 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

189189
func 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

212212
func 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

236236
func 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

258258
func 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

278278
func Test_write_full_page_missing_page(t *testing.T) {

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/crhntr/go-htmx-examples
22

3-
go 1.23
3+
go 1.24.0
44

55
require (
6-
github.com/crhntr/dom v0.1.0-dev.7
6+
github.com/crhntr/dom v0.5.4
77
github.com/crhntr/httplog v1.3.0
88
github.com/crhntr/sse v0.1.0
99
github.com/mattn/go-sqlite3 v1.14.32
@@ -14,6 +14,6 @@ require (
1414
github.com/davecgh/go-spew v1.1.1 // indirect
1515
github.com/pmezard/go-difflib v1.0.0 // indirect
1616
github.com/stretchr/testify v1.10.0 // indirect
17-
golang.org/x/net v0.33.0 // indirect
17+
golang.org/x/net v0.47.0 // indirect
1818
gopkg.in/yaml.v3 v3.0.1 // indirect
1919
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kk
22
github.com/andybalholm/cascadia v1.3.3/go.mod h1:xNd9bqTn98Ln4DwST8/nG+H0yuB8Hmgu1YHNnWw0GeA=
33
github.com/crhntr/dom v0.1.0-dev.7 h1:KFrjwW8hV3liPAhYbtZTuGcHuVvFpk9rwZTcc3uwgL8=
44
github.com/crhntr/dom v0.1.0-dev.7/go.mod h1:vhJEL2iLbRD+Isp2skmSE2qhSPp0E8AT1dv0KkW4XA8=
5+
github.com/crhntr/dom v0.5.4 h1:eXKB1E6pjdwi7W1zj/Vkr+AAD00tuvkUBJAtkyGdjTs=
6+
github.com/crhntr/dom v0.5.4/go.mod h1:8+qaWA/FxLEN5ogqrIgB+ibM/bCCZLJfDCwfbuocoUU=
57
github.com/crhntr/httplog v1.0.0 h1:CtnQoqe8RKPR1My8bXRJ2tWcJVBa1QfesFeNoI8hfa8=
68
github.com/crhntr/httplog v1.0.0/go.mod h1:nVjp8iphIwbLetOZPkHGgSUqNsbz1ZvU68JZXBzJfjU=
79
github.com/crhntr/httplog v1.3.0 h1:KNdz4jjdirsiB6et3IXF6AjVU2qDLgA2luaE0JfKt/A=
@@ -41,6 +43,8 @@ golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
4143
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
4244
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
4345
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
46+
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
47+
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
4448
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
4549
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
4650
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

0 commit comments

Comments
 (0)