Skip to content

Commit

Permalink
fix tests to match new encoding schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarbartopti committed May 20, 2024
1 parent 013e519 commit b45a1c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec/modules/optimeraRtdProvider_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Optimera RTD score file URL is properly set for v0', () => {
optimeraRTD.init(conf.dataProviders[0]);
optimeraRTD.setScores();
expect(optimeraRTD.apiVersion).to.equal('v0');
expect(optimeraRTD.scoresURL).to.equal('https://dyv1bugovvq1g.cloudfront.net/9999/localhost:9876/context.html.js');
expect(optimeraRTD.scoresURL).to.equal('https://dyv1bugovvq1g.cloudfront.net/9999/localhost%3A9876/context.html.js');
});

it('should properly set the score file URL without apiVersion set', () => {
Expand All @@ -54,7 +54,7 @@ describe('Optimera RTD score file URL is properly set for v0', () => {
optimeraRTD.init(conf.dataProviders[0]);
optimeraRTD.setScores();
expect(optimeraRTD.apiVersion).to.equal('v0');
expect(optimeraRTD.scoresURL).to.equal('https://dyv1bugovvq1g.cloudfront.net/9999/localhost:9876/context.html.js');
expect(optimeraRTD.scoresURL).to.equal('https://dyv1bugovvq1g.cloudfront.net/9999/localhost%3A9876/context.html.js');
});

it('should properly set the score file URL with an api version other than v0 or v1', () => {
Expand Down

0 comments on commit b45a1c2

Please sign in to comment.