Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed Jan 9, 2025
1 parent 8c57c40 commit e963eb4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"children": {
"types": {
"schema": {
"directoryName": "externalServiceRegistrations",
"directoryName": " ",
"id": "schema",
"isAddressable": false,
"name": "Schema",
Expand Down
4 changes: 2 additions & 2 deletions src/registry/presets/presetMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as decomposePermissionSetBeta from './decomposePermissionSetBeta.json';
import * as decomposePermissionSetBeta2 from './decomposePermissionSetBeta2.json';
import * as decomposeSharingRulesBeta from './decomposeSharingRulesBeta.json';
import * as decomposeWorkflowBeta from './decomposeWorkflowBeta.json';
import * as decomposeExternalServiceRegistration from './decomposeExternalServiceRegistration.json';
import * as decomposeExternalServiceRegistrationBeta from './decomposeExternalServiceRegistrationBeta.json';

export const presetMap = new Map<string, MetadataRegistry>([
['decomposeCustomLabelsBeta2', decomposeCustomLabelsBeta2 as MetadataRegistry],
Expand All @@ -23,5 +23,5 @@ export const presetMap = new Map<string, MetadataRegistry>([
['decomposePermissionSetBeta2', decomposePermissionSetBeta2 as MetadataRegistry],
['decomposeSharingRulesBeta', decomposeSharingRulesBeta as MetadataRegistry],
['decomposeWorkflowBeta', decomposeWorkflowBeta as MetadataRegistry],
['decomposeExternalServiceRegistration', decomposeExternalServiceRegistration as MetadataRegistry],
['decomposeExternalServiceRegistrationBeta', decomposeExternalServiceRegistrationBeta as MetadataRegistry],
]);
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import { expect } from 'chai';
import { RegistryAccess } from '../../../src';
import { getEffectiveRegistry } from '../../../src/registry/variants';
import { presetMap } from '../../../src';
import { MD_FORMAT_ESR, SOURCE_FORMAT_ESR } from '../../mock/type-constants/decomposeExternalServiceRegistration';
import {
MD_FORMAT_ESR,
SOURCE_FORMAT_ESR,
} from '../../mock/type-constants/decomposeExternalServiceRegistrationConstants';
import { DecomposeExternalServiceRegistrationTransformer } from '../../../src/convert/transformers/decomposeExternalServiceRegistrationTransformer';

describe('DecomposeExternalServiceRegistrationTransformer', () => {
const preset = presetMap.get('decomposeExternalServiceRegistration');
const preset = presetMap.get('decomposeExternalServiceRegistrationBeta');
const regAcc = new RegistryAccess(getEffectiveRegistry({ presets: [preset!] }));

describe('toSourceFormat', () => {
Expand Down
1 change: 1 addition & 0 deletions test/mock/type-constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import * as nestedTypes from './territoryConstant';
import * as lwcBundle from './lwcBundleConstant';
import * as digitalExperienceBundle from './digitalExperienceBundleConstants';
import * as decomposedPermissionSet from './decomposedPermissionSetConstant';
import * as decomposeExternalServiceRegistration from './decomposeExternalServiceRegistrationConstants';

export {
xmlInFolder,
Expand Down

0 comments on commit e963eb4

Please sign in to comment.