Skip to content

Commit

Permalink
Fix failing ipywidget tests (microsoft#11132)
Browse files Browse the repository at this point in the history
For #11099
  • Loading branch information
DonJayamanne committed Apr 13, 2020
1 parent 612bf1c commit b556423
Showing 1 changed file with 9 additions and 9 deletions.
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

0 comments on commit b556423

Please sign in to comment.