@@ -229,10 +229,6 @@ describe('Linter service', () => {
229
229
run ( `lint ${ validCustomOas3SpecPath } -r ${ invalidNestedRulesetPath } ` ) ,
230
230
) . rejects . toThrowAggregateError (
231
231
new AggregateError ( [
232
- new RulesetValidationError ( 'must be equal to one of the allowed values' , [
233
- 'rules' ,
234
- 'rule-with-invalid-enum' ,
235
- ] ) ,
236
232
new RulesetValidationError ( 'the rule must have at least "given" and "then" properties' , [
237
233
'rules' ,
238
234
'rule-without-given-nor-them' ,
@@ -242,10 +238,6 @@ describe('Linter service', () => {
242
238
'rule-with-invalid-enum' ,
243
239
'type' ,
244
240
] ) ,
245
- new RulesetValidationError ( 'must be equal to one of the allowed values' , [
246
- 'rules' ,
247
- 'rule-without-given-nor-them' ,
248
- ] ) ,
249
241
new RulesetValidationError (
250
242
'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"' ,
251
243
[ 'rules' , 'rule-with-invalid-enum' , 'severity' ] ,
@@ -265,10 +257,6 @@ describe('Linter service', () => {
265
257
it ( 'outputs "invalid ruleset" error' , ( ) => {
266
258
return expect ( run ( `lint ${ validOas3SpecPath } -r ${ invalidRulesetPath } ` ) ) . rejects . toThrowAggregateError (
267
259
new AggregateError ( [
268
- new RulesetValidationError ( 'must be equal to one of the allowed values' , [
269
- 'rules' ,
270
- 'rule-with-invalid-enum' ,
271
- ] ) ,
272
260
new RulesetValidationError ( 'the rule must have at least "given" and "then" properties' , [
273
261
'rules' ,
274
262
'rule-without-given-nor-them' ,
@@ -278,10 +266,6 @@ describe('Linter service', () => {
278
266
'rule-with-invalid-enum' ,
279
267
'type' ,
280
268
] ) ,
281
- new RulesetValidationError ( 'must be equal to one of the allowed values' , [
282
- 'rules' ,
283
- 'rule-without-given-nor-them' ,
284
- ] ) ,
285
269
new RulesetValidationError (
286
270
'the value has to be one of: 0, 1, 2, 3 or "error", "warn", "info", "hint", "off"' ,
287
271
[ 'rules' , 'rule-with-invalid-enum' , 'severity' ] ,
0 commit comments