Skip to content

Commit d372519

Browse files
Kanishkaclaude
andcommitted
fix: add NO_REASON back to SKIP_REASONS enum
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7832238 commit d372519

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class Suggestion extends BaseModel {
5151
ALREADY_IMPLEMENTED: 'ALREADY_IMPLEMENTED',
5252
INACCURATE_OR_INCOMPLETE: 'INACCURATE_OR_INCOMPLETE',
5353
TOO_RISKY: 'TOO_RISKY',
54+
NO_REASON: 'NO_REASON',
5455
OTHER: 'OTHER',
5556
};
5657

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ describe('SuggestionModel', () => {
139139
expect(Suggestion.SKIP_REASONS.ALREADY_IMPLEMENTED).to.equal('ALREADY_IMPLEMENTED');
140140
expect(Suggestion.SKIP_REASONS.INACCURATE_OR_INCOMPLETE).to.equal('INACCURATE_OR_INCOMPLETE');
141141
expect(Suggestion.SKIP_REASONS.TOO_RISKY).to.equal('TOO_RISKY');
142+
expect(Suggestion.SKIP_REASONS.NO_REASON).to.equal('NO_REASON');
142143
expect(Suggestion.SKIP_REASONS.OTHER).to.equal('OTHER');
143-
expect(Object.keys(Suggestion.SKIP_REASONS)).to.have.lengthOf(4);
144+
expect(Object.keys(Suggestion.SKIP_REASONS)).to.have.lengthOf(5);
144145
});
145146
});
146147

0 commit comments

Comments
 (0)