Skip to content

Commit

Permalink
fixed tests that were failing in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Oct 23, 2018
1 parent 9343a9f commit d91c780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/specs/metadata/metadata.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Dereference save metadata', function () {
expect(metadata).to.be.an('object');
expect(metadata.$ref).to.eq('#/definitions/internal');
expect(metadata.pathFromRoot).to.eq('#/properties/a');
expect(metadata.path.endsWith('spec.yaml#/properties/a')).to.be.true;
expect(metadata.path).to.contain('spec.yaml#/properties/a');
});
});

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

0 comments on commit d91c780

Please sign in to comment.