mirror of
https://github.com/avelino/awesome-go.git
synced 2025-02-07 04:58:41 +00:00
parent
fefc91af56
commit
15d266dab0
@ -23,7 +23,7 @@ func TestDuplicatedLinks(t *testing.T) {
|
|||||||
query := startQuery()
|
query := startQuery()
|
||||||
links := make(map[string]bool, 0)
|
links := make(map[string]bool, 0)
|
||||||
|
|
||||||
query.Find("body a").Each(func(_ int, s *goquery.Selection) {
|
query.Find("body li > a:first-child").Each(func(_ int, s *goquery.Selection) {
|
||||||
t.Run(s.Text(), func(t *testing.T) {
|
t.Run(s.Text(), func(t *testing.T) {
|
||||||
href, ok := s.Attr("href")
|
href, ok := s.Attr("href")
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user