chore: add integration test
Check that the correct value ends up in `window.config`.
This commit is contained in:
parent
1a466def75
commit
9a8bdc6cbd
1 changed files with 20 additions and 0 deletions
20
tests/integration/window_config_test.go
Normal file
20
tests/integration/window_config_test.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2025 The Forgejo Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
package integration
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"forgejo.org/tests"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestWindowConfig(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
resp := MakeRequest(t, NewRequest(t, "GET", "/"), http.StatusOK)
|
||||
assert.Contains(t, resp.Body.String(), `customEmojis: new Set(["git","gitea","codeberg","gitlab","github","gogs","forgejo"]),`)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue