mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Add backend unit tests
This commit is contained in:
13
backend/internal/api/context/context_test.go
Normal file
13
backend/internal/api/context/context_test.go
Normal file
@ -0,0 +1,13 @@
|
||||
package context
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGetString(t *testing.T) {
|
||||
t.Run("basic test", func(t *testing.T) {
|
||||
assert.Equal(t, "context value: Body", BodyCtxKey.String())
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user