aboutsummaryrefslogtreecommitdiff
path: root/web/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/server_test.go')
-rw-r--r--web/server_test.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/web/server_test.go b/web/server_test.go
index c468e4b..24ff581 100644
--- a/web/server_test.go
+++ b/web/server_test.go
@@ -169,7 +169,6 @@ func TestHandlerRendersRideDetailWithEmbeddedRoute(t *testing.T) {
assert.Contains(t, body, `class="ride-detail-main"`)
assert.Contains(t, body, `<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>`)
assert.Contains(t, body, `<script type="module" src="/static/ride-detail.js"></script>`)
- assert.NotContains(t, body, `<script src="/static/official-climb-profile-logic.js"`)
assert.NotContains(t, body, `<script src="/static/official-climb-profile.js"`)
staticRequest := httptest.NewRequest(http.MethodGet, "/static/ride-detail.js", nil)
@@ -197,14 +196,6 @@ func TestHandlerRendersRideDetailWithEmbeddedRoute(t *testing.T) {
assert.Equal(t, "text/javascript; charset=utf-8", profileStaticResponse.Header().Get("Content-Type"))
assert.NotEmpty(t, profileScript)
- logicStaticRequest := httptest.NewRequest(http.MethodGet, "/static/official-climb-profile-logic.js", nil)
- logicStaticResponse := httptest.NewRecorder()
- server.Handler().ServeHTTP(logicStaticResponse, logicStaticRequest)
-
- assert.Equal(t, http.StatusOK, logicStaticResponse.Code)
- assert.Equal(t, "text/javascript; charset=utf-8", logicStaticResponse.Header().Get("Content-Type"))
- assert.NotEmpty(t, logicStaticResponse.Body.String())
-
syncStaticRequest := httptest.NewRequest(http.MethodGet, "/static/sync.js", nil)
syncStaticResponse := httptest.NewRecorder()
server.Handler().ServeHTTP(syncStaticResponse, syncStaticRequest)