Skip to content

The open alternative to Salesforce, designed for AI.

662 B
Raw Blame
import { getSystemViewFieldGroupUniversalIdentifier } from '@/application/deterministic-identifier/get-system-view-field-group-universal-identifier.util';

const APP = '11111111-1111-4111-8111-111111111111';
const VIEW = '44444444-4444-4444-8444-444444444444';

describe('getSystemViewFieldGroupUniversalIdentifier', () => {
  it('derives a deterministic id from the group name within its view', () => {
    expect(
      getSystemViewFieldGroupUniversalIdentifier({
        objectMetadataApplicationUniversalIdentifier: APP,
        viewUniversalIdentifier: VIEW,
        name: 'General',
      }),
    ).toBe('26350cf1-bec3-5617-b525-c0115811963e');
  });
});