moved stuff around

This commit is contained in:
2024-07-02 08:04:21 -05:00
parent f38a9f9df5
commit eaf229abde
11 changed files with 422 additions and 155 deletions
+26
View File
@@ -0,0 +1,26 @@
package scraper
import (
_ "embed"
"testing"
)
//go:embed testdata/one-fight-night-23.html
var ONEEventHTML []byte
//go:embed testdata/one-events.html
var ONEEventListHTML []byte
func TestONEEventList(t *testing.T) {
PrintJSON(ParseONEEventList(ONEEventListHTML))
}
func TestONEEvent(t *testing.T) {
PrintJSON(ParseONEEvent("some_url", ONEEventHTML))
}
func testScrapeONE(t *testing.T) {
ScrapeONE(func(e *Event) {
PrintJSON(e)
})
}