Files
kandev/apps/backend/internal/backendapp/boot_state_user_settings_test.go
T
2026-07-15 19:34:18 +01:00

19 lines
464 B
Go

package backendapp
import (
"testing"
userdto "github.com/kandev/kandev/internal/user/dto"
)
func TestMapUserSettingsStateIncludesArchiveConfirmation(t *testing.T) {
state := mapUserSettingsState(userdto.UserSettingsResponse{
Settings: userdto.UserSettingsDTO{ConfirmTaskArchive: true},
}, "workspace-1")
got, ok := state["confirmTaskArchive"].(bool)
if !ok || !got {
t.Fatalf("confirmTaskArchive = %#v, want true", state["confirmTaskArchive"])
}
}