Skip to content

Commit

Permalink
Fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Huy Nguyen <[email protected]>
  • Loading branch information
huyaboo committed Apr 15, 2024
1 parent 28edd7f commit b4411b3
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 b4411b3

Please sign in to comment.