Skip to content

Commit b556423

Browse files
authored
Fix failing ipywidget tests (#11132)
For #11099
1 parent 612bf1c commit b556423

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/datascience/ipywidgets/localWidgetScriptSourceProvider.unit.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => {
112112
metadata: { interpreter: { sysPrefix, path: 'pythonPath' } }
113113
} as any);
114114
when(fs.search(anything(), anything())).thenResolve([
115-
'widget1/index.js',
116-
'widget2/index.js',
117-
'widget3/index.js'
115+
path.join('widget1', 'index.js'),
116+
path.join('widget2', 'index.js'),
117+
path.join('widget3', 'index.js')
118118
]);
119119

120120
const value = await scriptSourceProvider.getWidgetScriptSource('widget2', '1');
@@ -138,9 +138,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => {
138138
metadata: { interpreter: { sysPrefix, path: 'pythonPath' } }
139139
} as any);
140140
when(fs.search(anything(), anything())).thenResolve([
141-
'widget1/index.js',
142-
'widget2/index.js',
143-
'widget3/index.js'
141+
path.join('widget1', 'index.js'),
142+
path.join('widget2', 'index.js'),
143+
path.join('widget3', 'index.js')
144144
]);
145145

146146
const value = await scriptSourceProvider.getWidgetScriptSource('widget1', '1');
@@ -162,9 +162,9 @@ suite('Data Science - ipywidget - Local Widget Script Source', () => {
162162
metadata: { interpreter: { sysPrefix, path: 'pythonPath' } }
163163
} as any);
164164
when(fs.search(anything(), anything())).thenResolve([
165-
'widget1/index.js',
166-
'widget2/index.js',
167-
'widget3/index.js'
165+
path.join('widget1', 'index.js'),
166+
path.join('widget2', 'index.js'),
167+
path.join('widget3', 'index.js')
168168
]);
169169

170170
const value = await scriptSourceProvider.getWidgetScriptSource('widgetNotFound', '1');

0 commit comments

Comments
 (0)