Skip to content

Commit

Permalink
Fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com>
  • Loading branch information
huyaboo committed Apr 12, 2024
1 parent eb50cd4 commit a82cb3c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('fetchDataSourceIdByName()', () => {
index: null,
timefield: null,
kibana: null,
opensearchDashboards: null,
interval: null,
};
const client = savedObjectsClientMock.create();
Expand Down Expand Up @@ -104,7 +105,9 @@ describe('fetchDataSourceIdByName()', () => {
it('should throw errors when MDS is disabled', async () => {
await expect(
fetchDataSourceIdByName({ ...config, data_source_name: 'Some Data Source' }, client)
).rejects.toThrowError('data_source_name cannot be used because data_source.enabled is false');
).rejects.toThrowError(
'To query from multiple data sources, first enable the data sources feature'
);
});

it.each([
Expand Down

0 comments on commit a82cb3c

Please sign in to comment.