Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwcyu committed Dec 30, 2024
1 parent 3f019e0 commit 8f9d556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DatasourceWithAsyncBackend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ describe('DatasourceWithAsyncBackend', () => {
expect(ds.doSingle).toHaveBeenCalledWith(defaultQuery2, defaultRequest);
});

it('uses the datasource id for the request id', () => {
it('uses the datasource uid for the request uid', () => {
const ds = setupDatasourceWithAsyncBackend();
expect(getRequestLooperMock).not.toHaveBeenCalled();
ds.doSingle(defaultQuery, defaultRequest);
expect(getRequestLooperMock).toHaveBeenCalledTimes(1);
const expectedRequest = {
...defaultRequest,
targets: [defaultQuery],
requestId: '12_100',
requestId: 'test_100',
};
expect(getRequestLooperMock).toHaveBeenCalledWith(expectedRequest, expect.anything());
});
Expand Down

0 comments on commit 8f9d556

Please sign in to comment.