Skip to content

Commit a000227

Browse files
authored
feat: add summarization audit type (#987)
Please ensure your pull request adheres to the following guidelines: - [ ] make sure to link the related issues in this description - [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes ## Related Issues Thanks for contributing!
1 parent e38fe02 commit a000227

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/spacecat-shared-data-access/src/models/audit/audit.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class Audit extends BaseModel {
6161
READABILITY: 'readability',
6262
PRERENDER: 'prerender',
6363
PRODUCT_METATAGS: 'product-metatags',
64+
SUMMARIZATION: 'summarization',
6465
};
6566

6667
static AUDIT_TYPE_PROPERTIES = {

packages/spacecat-shared-data-access/test/unit/models/audit/audit.model.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ describe('AuditModel', () => {
188188
READABILITY: 'readability',
189189
PRERENDER: 'prerender',
190190
PRODUCT_METATAGS: 'product-metatags',
191+
SUMMARIZATION: 'summarization',
191192
};
192193

193194
it('should have all audit types present in AUDIT_TYPES', () => {
194195
expect(auditTypes).to.eql(expectedAuditTypes);
195-
expect(Object.keys(auditTypes)).to.have.lengthOf(37);
196+
expect(Object.keys(auditTypes)).to.have.lengthOf(38);
196197
});
197198

198199
it('should not have unexpected audit types in AUDIT_TYPES', () => {

0 commit comments

Comments
 (0)