Use assert.Empty
This commit is contained in:
parent
1d961495f3
commit
c3cc4d82ec
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue