feat: Update version to 1.3.1 and ensure title trimming in DynamicPollWebPart
This commit is contained in:
@@ -16,7 +16,7 @@ var component = read('src/webparts/dynamicPoll/components/DynamicPoll.tsx');
|
||||
var collection = read('src/webparts/dynamicPoll/components/DynamicPollCollection.tsx');
|
||||
var styles = read('src/webparts/dynamicPoll/components/DynamicPoll.module.scss');
|
||||
|
||||
assert(packageJson.version === '1.3.0' && solution.version === '1.3.0.0', 'Version mismatch.');
|
||||
assert(packageJson.version === '1.3.1' && solution.version === '1.3.1.0', 'Version mismatch.');
|
||||
assert(solution.includeClientSideAssets === true && solution.skipFeatureDeployment === true, 'Central deployment missing.');
|
||||
assert(packageJson.name === 'dynamic-poll-web-part' && solution.name === 'dynamic-poll-web-part' &&
|
||||
solution.title === 'dynamic-poll-web-part', 'Dynamic Poll package naming is inconsistent.');
|
||||
@@ -31,6 +31,8 @@ assert(webPart.indexOf("PropertyPaneDropdown('pollKeyField'") >= 0 &&
|
||||
assert(webPart.indexOf("PropertyPaneTextField('title'") >= 0 &&
|
||||
collection.indexOf('styles.webPartHeading') >= 0,
|
||||
'Configurable web part title is missing.');
|
||||
assert(webPart.indexOf("String(this.properties.title || '').trim()") >= 0,
|
||||
'An empty web part title must remain hidden.');
|
||||
assert(webPart.indexOf("PropertyPaneDropdown('displayMode'") >= 0 &&
|
||||
webPart.indexOf('DynamicPollCollection') >= 0, 'Multiple-poll display mode is missing.');
|
||||
assert(service.indexOf('getSnapshots') >= 0 && service.indexOf('getActivePolls') >= 0,
|
||||
|
||||
Reference in New Issue
Block a user