chore: improve test coverage for upload relationship (#475)
This commit is contained in:
@@ -2,20 +2,16 @@ import { CollectionConfig } from '../../src/collections/config/types';
|
||||
|
||||
const Images: CollectionConfig = {
|
||||
slug: 'images',
|
||||
admin: {
|
||||
description: 'Used to test upload relationship queries',
|
||||
},
|
||||
labels: {
|
||||
singular: 'Image',
|
||||
plural: 'Images',
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'upload1',
|
||||
label: 'Upload 1',
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
},
|
||||
{
|
||||
name: 'upload2',
|
||||
label: 'Upload 2',
|
||||
name: 'upload',
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
},
|
||||
|
||||
@@ -18,6 +18,7 @@ import Localized from './collections/Localized';
|
||||
import LocalizedArray from './collections/LocalizedArray';
|
||||
import LocalOperations from './collections/LocalOperations';
|
||||
import Media from './collections/Media';
|
||||
import Images from './collections/Images';
|
||||
import NestedArrays from './collections/NestedArrays';
|
||||
import Preview from './collections/Preview';
|
||||
import PublicUsers from './collections/PublicUsers';
|
||||
@@ -105,6 +106,7 @@ export default buildConfig({
|
||||
LocalizedArray,
|
||||
LocalOperations,
|
||||
Media,
|
||||
Images,
|
||||
NestedArrays,
|
||||
Preview,
|
||||
PublicUsers,
|
||||
|
||||
Reference in New Issue
Block a user