mirror of
https://github.com/PuerkitoBio/goquery
synced 2025-09-26 21:01:21 +08:00
13 lines
196 B
Go
13 lines
196 B
Go
package goquery
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestHasClass(t *testing.T) {
|
|
sel := Doc().Find("div")
|
|
if !sel.HasClass("span12") {
|
|
t.Error("Expected at least one div to have class span12.")
|
|
}
|
|
}
|