The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { getSystemPageLayoutWidgetUniversalIdentifier } from '@/application/deterministic-identifier/get-system-page-layout-widget-universal-identifier.util';
const APP = '11111111-1111-4111-8111-111111111111';
const TAB = '77777777-7777-4777-8777-777777777777';
describe('getSystemPageLayoutWidgetUniversalIdentifier', () => {
it('derives a deterministic id from the widget title within its tab', () => {
expect(
getSystemPageLayoutWidgetUniversalIdentifier({
objectMetadataApplicationUniversalIdentifier: APP,
pageLayoutTabUniversalIdentifier: TAB,
title: 'Fields',
}),
).toBe('09cc205a-0cdf-52f0-9917-3ac5a75e69c5');
});
});