package server_test import ( "net/http" "regexp" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "sneak.berlin/go/webhooker/templates" ) // TestBaseTemplateScriptsAreServed walks every /s/ script the base // template loads on each page and fetches it through the real router. // Alpine.js is extracted from its tarball in 3p/ at build time, so the // file is not in the tree: this is the check that the page still gets // the JavaScript it asks for. func TestBaseTemplateScriptsAreServed(t *testing.T) { t.Parallel() // scriptSrc matches the src of every