Skip to content

Commit dd1ea54

Browse files
authored
tests: speed up test by removing slow external call (#2186)
1 parent a66e679 commit dd1ea54

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

packages/core/src/rules/__tests__/spec-ruleset.test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,6 @@ describe('spec ruleset', () => {
5959
"severity": "error",
6060
"suggest": [],
6161
},
62-
{
63-
"location": [
64-
{
65-
"pointer": "#/paths/~1pets?id/get/requestBody/content/application~1json/examples/foo/value",
66-
"reportOnKey": true,
67-
"source": "../../../../../resources/petstore-with-errors.yaml",
68-
},
69-
],
70-
"message": "Example object can have either \`value\` or \`externalValue\` fields.",
71-
"ruleId": "no-example-value-and-externalValue",
72-
"severity": "error",
73-
"suggest": [],
74-
},
7562
{
7663
"from": undefined,
7764
"location": [

resources/petstore-with-errors.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ paths:
2929
example:
3030
summary: A foo example
3131
value: { 'foo': 'bar' }
32-
externalValue: 'http://example.org/foo.json'
3332
examples:
3433
foo:
3534
summary: A foo example
3635
value: { 'foo': 'bar' }
37-
externalValue: 'http://example.org/foo.json'
3836
tags:
3937
- pets
4038
parameters:

0 commit comments

Comments
 (0)