chore: fixes test suites that use clearAndSeedEverything (#4080)
This commit is contained in:
37
test/fields/collections/Array/shared.ts
Normal file
37
test/fields/collections/Array/shared.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { ArrayField } from '../../payload-types'
|
||||
|
||||
export const arrayDoc: Partial<ArrayField> = {
|
||||
items: [
|
||||
{
|
||||
text: 'first row',
|
||||
},
|
||||
{
|
||||
text: 'second row',
|
||||
},
|
||||
{
|
||||
text: 'third row',
|
||||
},
|
||||
{
|
||||
text: 'fourth row',
|
||||
},
|
||||
{
|
||||
text: 'fifth row',
|
||||
},
|
||||
{
|
||||
text: 'sixth row',
|
||||
},
|
||||
],
|
||||
collapsedArray: [
|
||||
{
|
||||
text: 'initialize collapsed',
|
||||
},
|
||||
],
|
||||
arrayWithMinRows: [
|
||||
{
|
||||
text: 'first row',
|
||||
},
|
||||
{
|
||||
text: 'second row',
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user