From b55642347d4d44ac8a1a53b9d4b80026ac39b76d Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Mon, 13 Apr 2020 13:28:05 -0700 Subject: [PATCH] Fix failing ipywidget tests (#11132) For #11099 --- ...ocalWidgetScriptSourceProvider.unit.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/datascience/ipywidgets/localWidgetScriptSourceProvider.unit.test.ts b/src/test/datascience/ipywidgets/localWidgetScriptSourceProvider.unit.test.ts index 50856a6020ce..9448b1a1447f 100644 --- a/src/test/datascience/ipywidgets/localWidgetScriptSourceProvider.unit.test.ts +++ b/src/test/datascience/ipywidgets/localWidgetScriptSourceProvider.unit.test.ts @@ -112,9 +112,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => { metadata: { interpreter: { sysPrefix, path: 'pythonPath' } } } as any); when(fs.search(anything(), anything())).thenResolve([ - 'widget1/index.js', - 'widget2/index.js', - 'widget3/index.js' + path.join('widget1', 'index.js'), + path.join('widget2', 'index.js'), + path.join('widget3', 'index.js') ]); const value = await scriptSourceProvider.getWidgetScriptSource('widget2', '1'); @@ -138,9 +138,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => { metadata: { interpreter: { sysPrefix, path: 'pythonPath' } } } as any); when(fs.search(anything(), anything())).thenResolve([ - 'widget1/index.js', - 'widget2/index.js', - 'widget3/index.js' + path.join('widget1', 'index.js'), + path.join('widget2', 'index.js'), + path.join('widget3', 'index.js') ]); const value = await scriptSourceProvider.getWidgetScriptSource('widget1', '1'); @@ -162,9 +162,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => { metadata: { interpreter: { sysPrefix, path: 'pythonPath' } } } as any); when(fs.search(anything(), anything())).thenResolve([ - 'widget1/index.js', - 'widget2/index.js', - 'widget3/index.js' + path.join('widget1', 'index.js'), + path.join('widget2', 'index.js'), + path.join('widget3', 'index.js') ]); const value = await scriptSourceProvider.getWidgetScriptSource('widgetNotFound', '1');