Skip to content

Commit d91c780

Browse files
fixed tests that were failing in IE11
1 parent 9343a9f commit d91c780

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/specs/metadata/metadata.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Dereference save metadata', function () {
1010
expect(metadata).to.be.an('object');
1111
expect(metadata.$ref).to.eq('#/definitions/internal');
1212
expect(metadata.pathFromRoot).to.eq('#/properties/a');
13-
expect(metadata.path.endsWith('spec.yaml#/properties/a')).to.be.true;
13+
expect(metadata.path).to.contain('spec.yaml#/properties/a');
1414
});
1515
});
1616

@@ -23,7 +23,7 @@ describe('Dereference save metadata', function () {
2323
expect(metadata).to.be.an('object');
2424
expect(metadata.$ref).to.eq('external.yaml');
2525
expect(metadata.pathFromRoot).to.eq('#/properties/b');
26-
expect(metadata.path.endsWith('spec.yaml#/properties/b')).to.be.true;
26+
expect(metadata.path).to.contain('spec.yaml#/properties/b');
2727
});
2828
});
2929
});

0 commit comments

Comments
 (0)