initial commit

This commit is contained in:
Krzysztof
2025-08-01 18:01:55 +02:00
commit 9af1af7f92
73 changed files with 6531 additions and 0 deletions

26
test/sponsor_test.go Normal file
View File

@@ -0,0 +1,26 @@
package test
import (
"net/http"
"testing"
)
func TestSponsor(t *testing.T) {
t.Run("sponsors are lazy loaded", func(t *testing.T) {
tc := NewTestCase(t)
defer tc.Close()
tc.Get("/sponsors").
AssertStatusCode(http.StatusOK).
AssertElementVisible(`div[hx-get="/sponsors"]`)
})
t.Run("sponsors are loaded via api", func(t *testing.T) {
tc := NewTestCase(t)
defer tc.Close()
tc.WithHeader("HX-Request", "true").
Get("/sponsors").
AssertSeeText("AIR Labs")
})
}