Skip to content

Commit

Permalink
Update http_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Sep 30, 2024
1 parent 205d2de commit 8ba9e1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/app/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ func TestHandlerServeAppWorkerJSWithLocalDir(t *testing.T) {
body := w.Body.String()
require.Equal(t, http.StatusOK, w.Code)
require.Equal(t, "application/javascript", w.Header().Get("Content-Type"))
require.Contains(t, body, `self.addEventListener("install", (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", (event) => {`)
require.Contains(t, body, `self.addEventListener("install", async (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", async (event) => {`)
require.Contains(t, body, `self.addEventListener("fetch", (event) => {`)
require.Contains(t, body, `"/web/hello.css"`)
require.Contains(t, body, `"/web/hello.js"`)
Expand Down Expand Up @@ -294,8 +294,8 @@ func TestHandlerServeAppWorkerJSWithRemoteBucket(t *testing.T) {
body := w.Body.String()
require.Equal(t, http.StatusOK, w.Code)
require.Equal(t, "application/javascript", w.Header().Get("Content-Type"))
require.Contains(t, body, `self.addEventListener("install", (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", (event) => {`)
require.Contains(t, body, `self.addEventListener("install", async (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", async (event) => {`)
require.Contains(t, body, `self.addEventListener("fetch", (event) => {`)
require.Contains(t, body, `"https://storage.googleapis.com/go-app/web/hello.css"`)
require.Contains(t, body, `"https://storage.googleapis.com/go-app/web/hello.js"`)
Expand Down Expand Up @@ -325,8 +325,8 @@ func TestHandlerServeAppWorkerJSWithGitHubPages(t *testing.T) {
body := w.Body.String()
require.Equal(t, http.StatusOK, w.Code)
require.Equal(t, "application/javascript", w.Header().Get("Content-Type"))
require.Contains(t, body, `self.addEventListener("install", (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", (event) => {`)
require.Contains(t, body, `self.addEventListener("install", async (event) => {`)
require.Contains(t, body, `self.addEventListener("activate", async (event) => {`)
require.Contains(t, body, `self.addEventListener("fetch", (event) => {`)
require.Contains(t, body, `"/go-app/web/hello.css"`)
require.Contains(t, body, `"/go-app/web/hello.js"`)
Expand Down

0 comments on commit 8ba9e1e

Please sign in to comment.