From ae48c4110a3dadbe2d0dbba304bcd1a6e3f73dab Mon Sep 17 00:00:00 2001 From: "Yuanqi(Ella) Zhu" Date: Mon, 15 Apr 2024 19:12:40 +0000 Subject: [PATCH] fix test Signed-off-by: Yuanqi(Ella) Zhu --- .../components/data_source_view/data_source_view.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data_source_management/public/components/data_source_view/data_source_view.test.tsx b/src/plugins/data_source_management/public/components/data_source_view/data_source_view.test.tsx index 761a7cede20a..a518fee29b78 100644 --- a/src/plugins/data_source_management/public/components/data_source_view/data_source_view.test.tsx +++ b/src/plugins/data_source_management/public/components/data_source_view/data_source_view.test.tsx @@ -85,7 +85,7 @@ describe('DataSourceView', () => { expect(toasts.addWarning).toBeCalledTimes(0); expect(utils.getDataSourceById).toBeCalledTimes(1); }); - it('should call getDataSourceById when only pass id no label', async () => { + it('should call getDataSourceById when only pass id with no label', async () => { spyOn(utils, 'getDataSourceById').and.returnValue([{ id: 'test1', label: 'test1' }]); component = shallow(