From 460ca99fe1864a77534b322b69ec270fb8016f9b Mon Sep 17 00:00:00 2001 From: Dan Ribbens Date: Wed, 27 Mar 2024 16:47:22 -0400 Subject: [PATCH] chore: alpha fix test defaultvalues (#5500) --- test/auth/config.ts | 2 +- test/auth/custom-strategy/config.ts | 2 +- test/auth/removed-token/config.ts | 2 +- test/hooks/collections/Users/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/auth/config.ts b/test/auth/config.ts index 14a8916af..a9a066d50 100644 --- a/test/auth/config.ts +++ b/test/auth/config.ts @@ -17,10 +17,10 @@ export default buildConfigWithDefaults({ }, collections: [ { + slug, admin: { useAsTitle: 'custom', }, - slug, auth: { cookies: { domain: undefined, diff --git a/test/auth/custom-strategy/config.ts b/test/auth/custom-strategy/config.ts index 050c74943..049c6c820 100644 --- a/test/auth/custom-strategy/config.ts +++ b/test/auth/custom-strategy/config.ts @@ -68,7 +68,7 @@ export default buildConfigWithDefaults({ { name: 'roles', type: 'select', - defaultValue: 'user', + defaultValue: ['user'], hasMany: true, label: 'Role', options: ['admin', 'editor', 'moderator', 'user', 'viewer'], diff --git a/test/auth/removed-token/config.ts b/test/auth/removed-token/config.ts index d270aad0e..2fe3fdc1e 100644 --- a/test/auth/removed-token/config.ts +++ b/test/auth/removed-token/config.ts @@ -16,7 +16,7 @@ export default buildConfigWithDefaults({ { name: 'roles', type: 'select', - defaultValue: 'user', + defaultValue: ['user'], hasMany: true, label: 'Role', options: ['admin', 'editor', 'moderator', 'user', 'viewer'], diff --git a/test/hooks/collections/Users/index.ts b/test/hooks/collections/Users/index.ts index d0f96d555..75786e58a 100644 --- a/test/hooks/collections/Users/index.ts +++ b/test/hooks/collections/Users/index.ts @@ -33,7 +33,7 @@ const Users: CollectionConfig = { { name: 'roles', type: 'select', - defaultValue: 'user', + defaultValue: ['user'], hasMany: true, label: 'Role', options: ['admin', 'user'],