@memberjunction/ng-versions 5.42.0 → 5.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- describe('MicroViewData type', () => {
3
- it('should be constructable with required fields', () => {
4
- const data = {
5
- EntityName: 'MJ: Users',
6
- EntityID: 'entity-1',
7
- RecordID: 'rec-1',
8
- RecordChangeID: 'change-1',
9
- FullRecordJSON: { Name: 'John', Email: 'john@test.com' },
10
- FieldDiffs: null
11
- };
12
- expect(data.EntityName).toBe('MJ: Users');
13
- expect(data.RecordID).toBe('rec-1');
14
- expect(data.FullRecordJSON).toEqual({ Name: 'John', Email: 'john@test.com' });
15
- });
16
- it('should accept null FullRecordJSON', () => {
17
- const data = {
18
- EntityName: 'MJ: Users',
19
- EntityID: 'entity-1',
20
- RecordID: 'rec-1',
21
- RecordChangeID: 'change-1',
22
- FullRecordJSON: null,
23
- FieldDiffs: []
24
- };
25
- expect(data.FullRecordJSON).toBeNull();
26
- });
27
- });
28
- describe('FieldChangeView type', () => {
29
- it('should represent a modified field', () => {
30
- const change = {
31
- FieldName: 'Email',
32
- OldValue: 'old@test.com',
33
- NewValue: 'new@test.com',
34
- ChangeType: 'Modified'
35
- };
36
- expect(change.ChangeType).toBe('Modified');
37
- });
38
- it('should represent an added field', () => {
39
- const change = {
40
- FieldName: 'Phone',
41
- OldValue: '',
42
- NewValue: '+1-555-0123',
43
- ChangeType: 'Added'
44
- };
45
- expect(change.ChangeType).toBe('Added');
46
- });
47
- it('should represent a removed field', () => {
48
- const change = {
49
- FieldName: 'Notes',
50
- OldValue: 'Some notes',
51
- NewValue: '',
52
- ChangeType: 'Removed'
53
- };
54
- expect(change.ChangeType).toBe('Removed');
55
- });
56
- });
57
- //# sourceMappingURL=types.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.test.js","sourceRoot":"","sources":["../../src/__tests__/types.test.ts"],"names":[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B,QAAQ,EAAE,cAAc;YACxB,UAAU,EAAE,UAAU;SACvB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,MAAM,GAAoB;YAC9B,SAAS,EAAE,OAAO;YAClB,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,aAAa;YACvB,UAAU,EAAE,OAAO;SACpB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,MAAM,GAAoB;YAC9B,SAAS,EAAE,OAAO;YAClB,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,SAAS;SACtB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it, expect } from 'vitest';\nimport type { MicroViewData, FieldChangeView } from '../lib/types';\n\ndescribe('MicroViewData type', () => {\n it('should be constructable with required fields', () => {\n const data: MicroViewData = {\n EntityName: 'MJ: Users',\n EntityID: 'entity-1',\n RecordID: 'rec-1',\n RecordChangeID: 'change-1',\n FullRecordJSON: { Name: 'John', Email: 'john@test.com' },\n FieldDiffs: null\n };\n expect(data.EntityName).toBe('MJ: Users');\n expect(data.RecordID).toBe('rec-1');\n expect(data.FullRecordJSON).toEqual({ Name: 'John', Email: 'john@test.com' });\n });\n\n it('should accept null FullRecordJSON', () => {\n const data: MicroViewData = {\n EntityName: 'MJ: Users',\n EntityID: 'entity-1',\n RecordID: 'rec-1',\n RecordChangeID: 'change-1',\n FullRecordJSON: null,\n FieldDiffs: []\n };\n expect(data.FullRecordJSON).toBeNull();\n });\n});\n\ndescribe('FieldChangeView type', () => {\n it('should represent a modified field', () => {\n const change: FieldChangeView = {\n FieldName: 'Email',\n OldValue: 'old@test.com',\n NewValue: 'new@test.com',\n ChangeType: 'Modified'\n };\n expect(change.ChangeType).toBe('Modified');\n });\n\n it('should represent an added field', () => {\n const change: FieldChangeView = {\n FieldName: 'Phone',\n OldValue: '',\n NewValue: '+1-555-0123',\n ChangeType: 'Added'\n };\n expect(change.ChangeType).toBe('Added');\n });\n\n it('should represent a removed field', () => {\n const change: FieldChangeView = {\n FieldName: 'Notes',\n OldValue: 'Some notes',\n NewValue: '',\n ChangeType: 'Removed'\n };\n expect(change.ChangeType).toBe('Removed');\n });\n});\n"]}