feat: settings page, sidebar and drawer destination "Settings" (icon settings, after Integration), route /settings (verified), showing only the running build's Version
This commit is contained in:
1 parent
b146dfead7
commit
162fea4afb
26 files changed
+805
-45
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"RenewCMS/internal/infrastructure/useCases"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetSettingsUseCase(t *testing.T) {
|
||||
for _, version := range []string{"v2.2.0-beta", "dev"} {
|
||||
t.Run("The use case returns the version it was built with: "+version, func(t *testing.T) {
|
||||
useCase := useCases.NewGetSettingsUseCase(version)
|
||||
|
||||
got := useCase.GetSettings()
|
||||
|
||||
if got.Version != version {
|
||||
t.Errorf("expected version %s, got %q", version, got.Version)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user