Skip to content

Commit de5c5b4

Browse files
committed
test(cli): improve alias validation (#2164)
1 parent a15150a commit de5c5b4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/cli/src/services/__tests__/linter.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,6 @@ describe('Linter service', () => {
229229
run(`lint ${validCustomOas3SpecPath} -r ${invalidNestedRulesetPath}`),
230230
).rejects.toThrowAggregateError(
231231
new AggregateError([
232-
new RulesetValidationError('must be equal to one of the allowed values', [
233-
'rules',
234-
'rule-with-invalid-enum',
235-
]),
236232
new RulesetValidationError('the rule must have at least "given" and "then" properties', [
237233
'rules',
238234
'rule-without-given-nor-them',
@@ -242,10 +238,6 @@ describe('Linter service', () => {
242238
'rule-with-invalid-enum',
243239
'type',
244240
]),
245-
new RulesetValidationError('must be equal to one of the allowed values', [
246-
'rules',
247-
'rule-without-given-nor-them',
248-
]),
249241
new RulesetValidationError(
250242
'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"',
251243
['rules', 'rule-with-invalid-enum', 'severity'],
@@ -265,10 +257,6 @@ describe('Linter service', () => {
265257
it('outputs "invalid ruleset" error', () => {
266258
return expect(run(`lint ${validOas3SpecPath} -r ${invalidRulesetPath}`)).rejects.toThrowAggregateError(
267259
new AggregateError([
268-
new RulesetValidationError('must be equal to one of the allowed values', [
269-
'rules',
270-
'rule-with-invalid-enum',
271-
]),
272260
new RulesetValidationError('the rule must have at least "given" and "then" properties', [
273261
'rules',
274262
'rule-without-given-nor-them',
@@ -278,10 +266,6 @@ describe('Linter service', () => {
278266
'rule-with-invalid-enum',
279267
'type',
280268
]),
281-
new RulesetValidationError('must be equal to one of the allowed values', [
282-
'rules',
283-
'rule-without-given-nor-them',
284-
]),
285269
new RulesetValidationError(
286270
'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"',
287271
['rules', 'rule-with-invalid-enum', 'severity'],

0 commit comments

Comments
 (0)