diff --git a/packages/spacecat-shared-rum-api-client/test/rum-api-client.test.js b/packages/spacecat-shared-rum-api-client/test/rum-api-client.test.js index 0d496660..08f89bd6 100644 --- a/packages/spacecat-shared-rum-api-client/test/rum-api-client.test.js +++ b/packages/spacecat-shared-rum-api-client/test/rum-api-client.test.js @@ -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 () => {