Aktualisiere Version auf 1.1.2, füge Unterstützung für die Auflösung interner WSS-IDs über die TaxonomyHiddenList hinzu und verbessere die Handhabung von Kategoriewerten im Accordion-WebPart
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { getAccordionCategoryValues } from '../src/webparts/accordion/AccordionCategoryValues';
|
||||
import {
|
||||
getAccordionCategoryValues,
|
||||
replaceAccordionCategoryIds
|
||||
} from '../src/webparts/accordion/AccordionCategoryValues';
|
||||
|
||||
let passed: number = 0;
|
||||
function assertValues(actual: string[], expected: string[], message: string): void {
|
||||
@@ -25,5 +28,7 @@ assertValues(getAccordionCategoryValues({ results: ['General', 'General', 'News'
|
||||
['General', 'News'], 'Choice values were not retained and de-duplicated.');
|
||||
assertValues(getAccordionCategoryValues('Policies; Benefits', true),
|
||||
['Policies', 'Benefits'], 'FieldValuesAsText taxonomy labels were not split.');
|
||||
assertValues(replaceAccordionCategoryIds(['1', '2'], { '1': 'Policies', '2': 'Benefits' }),
|
||||
['Policies', 'Benefits'], 'WSS IDs were not replaced with TaxonomyHiddenList labels.');
|
||||
|
||||
console.log('Accordion category value tests passed:', passed);
|
||||
|
||||
Reference in New Issue
Block a user