Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

Use assert.Empty

This commit is contained in:
JakobDev 2024-10-14 20:15:40 +02:00
parent 1d961495f3
commit c3cc4d82ec
No known key found for this signature in database
GPG key ID: 39DEF62C3ED6DC4C

View file

@ -38,5 +38,5 @@ func TestMilestonesCount(t *testing.T) {
closedCount := htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Text() closedCount := htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Text()
assert.Contains(t, closedCount, "1\u00a0Closed") assert.Contains(t, closedCount, "1\u00a0Closed")
assert.Len(t, htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Nodes, 0) assert.Empty(t, htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Nodes)
} }