Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jul 9, 2022
1 parent a36ee37 commit 74ef137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ suite('IPyWidget Script Manager', function () {
});
suiteTeardown(() => closeNotebooksAndCleanUpAfterTests(disposables));
test('Returns the right base Url', async function () {
const baseUrl = scriptManager.getBaseUrl!();
const baseUrl = await scriptManager.getBaseUrl!();
console.error(baseUrl);
assert.isOk(baseUrl, 'BaseUrl should be defined');

Expand Down Expand Up @@ -143,7 +143,7 @@ suite('IPyWidget Script Manager', function () {
assert.deepEqual(newFiles, files);
});
test('Get a list of Widgets and script paths', async () => {
const baseUrl = scriptManager.getBaseUrl!()!;
const baseUrl = await scriptManager.getBaseUrl!()!;
const moduleMappings = await scriptManager.getWidgetModuleMappings();

assert.isObject(moduleMappings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ suite('DataScience - ipywidget - Local Widget Script Source', () => {
when(scriptManager.getBaseUrl).thenReturn();

assert.isOk(scriptManager.getBaseUrl);
const baseUrl = scriptSourceProvider.getBaseUrl!();
const baseUrl = await scriptSourceProvider.getBaseUrl!();

assert.isUndefined(baseUrl);
});
Expand Down

0 comments on commit 74ef137

Please sign in to comment.