Skip to content

Commit

Permalink
feat: add rum api calls to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Dec 14, 2023
1 parent bd24e16 commit d0b6ee3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ describe('rum api client', () => {
domainkey: 'hebele',
checkpoint: 404,
})
.reply(200, JSON.stringify({ results: { data: [] } }));
.reply(200, JSON.stringify({ results: { data: [{ url: 'http://spacecar.com', views: 100 }] } }));
const rumApiClient = RUMAPIClient.createFrom({ env: { RUM_API_KEY: 'hebele' } });
await expect(rumApiClient.get404Checkpoints())
.to.be.fulfilled;
.to.eventually.eql([{ url: 'http://spacecar.com', views: 100 }]);
});

it('returns data when getDomainList api is successful for all', async () => {
Expand Down

0 comments on commit d0b6ee3

Please sign in to comment.