isLabelSyncedWithName should be nullable for fieldMetadata, as it is for objectMetadata. + Adding missing validation on label and name sync in fieldMetadataService for creation and update + adding metadata tests
13 lines
503 B
TypeScript
13 lines
503 B
TypeScript
import { makeGraphqlAPIRequest } from 'test/integration/graphql/utils/make-graphql-api-request.util';
|
|
import { deleteOneObjectMetadataItemFactory } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata-factory.util';
|
|
|
|
export const deleteOneObjectMetadataItem = async (
|
|
objectMetadataItemId: string,
|
|
) => {
|
|
const graphqlOperation = deleteOneObjectMetadataItemFactory({
|
|
idToDelete: objectMetadataItemId,
|
|
});
|
|
|
|
await makeGraphqlAPIRequest(graphqlOperation);
|
|
};
|