mirror of
https://github.com/PuerkitoBio/goquery.git
synced 2024-04-21 12:31:36 +00:00
13 lines
194 B
Go
13 lines
194 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.")
|
|
}
|
|
}
|