Files
payload/test/fields/collections/Array/shared.ts
Patrik cb5d005e68 test: passing array fields test suite (#5383)
* test: array tests passing except bulk update

* test: passing array fields test suite
2024-03-20 12:00:56 -04:00

67 lines
945 B
TypeScript

import type { ArrayField } from '../../payload-types.js'
export const arrayDoc: Partial<ArrayField> = {
arrayWithMinRows: [
{
text: 'first row',
},
{
text: 'second row',
},
],
collapsedArray: [
{
text: 'initialize collapsed',
},
],
items: [
{
text: 'first row',
},
{
text: 'second row',
},
{
text: 'third row',
},
{
text: 'fourth row',
},
{
text: 'fifth row',
},
{
text: 'sixth row',
},
],
title: 'array doc 1',
}
export const anotherArrayDoc: Partial<ArrayField> = {
arrayWithMinRows: [
{
text: 'first row',
},
{
text: 'second row',
},
],
collapsedArray: [
{
text: 'initialize collapsed',
},
],
items: [
{
text: 'first row',
},
{
text: 'second row',
},
{
text: 'third row',
},
],
title: 'array doc 2',
}