We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9343a9f commit d91c780Copy full SHA for d91c780
1 file changed
test/specs/metadata/metadata.spec.js
@@ -10,7 +10,7 @@ describe('Dereference save metadata', function () {
10
expect(metadata).to.be.an('object');
11
expect(metadata.$ref).to.eq('#/definitions/internal');
12
expect(metadata.pathFromRoot).to.eq('#/properties/a');
13
- expect(metadata.path.endsWith('spec.yaml#/properties/a')).to.be.true;
+ expect(metadata.path).to.contain('spec.yaml#/properties/a');
14
});
15
16
@@ -23,7 +23,7 @@ describe('Dereference save metadata', function () {
23
24
expect(metadata.$ref).to.eq('external.yaml');
25
expect(metadata.pathFromRoot).to.eq('#/properties/b');
26
- expect(metadata.path.endsWith('spec.yaml#/properties/b')).to.be.true;
+ expect(metadata.path).to.contain('spec.yaml#/properties/b');
27
28
29
0 commit comments