Skip to content
Prev Previous commit
Next Next commit
Fix failing ipywidget tests (#11132)
For #11099
  • Loading branch information
DonJayamanne committed Apr 13, 2020
commit 41d2d8738d9e8c9f4aba3953d4fa067f3ad3b5ae
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand All @@ -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');
Expand Down