fix integration test
This commit is contained in:
parent
819cb01e0e
commit
0e05a1f21a
|
@ -70,7 +70,7 @@ suite('Notebook Editor', function () {
|
||||||
|
|
||||||
test('Opening a notebook should fire activeNotebook event changed only once', async function () {
|
test('Opening a notebook should fire activeNotebook event changed only once', async function () {
|
||||||
const openedEditor = utils.asPromise(vscode.window.onDidChangeActiveNotebookEditor);
|
const openedEditor = utils.asPromise(vscode.window.onDidChangeActiveNotebookEditor);
|
||||||
const resource = await utils.createRandomFile(undefined, undefined, '.vsctestnb');
|
const resource = await utils.createRandomFile(undefined, undefined, '.nbdtest');
|
||||||
const editor = await vscode.window.showNotebookDocument(resource);
|
const editor = await vscode.window.showNotebookDocument(resource);
|
||||||
assert.ok(await openedEditor);
|
assert.ok(await openedEditor);
|
||||||
assert.strictEqual(editor.document.uri.toString(), resource.toString());
|
assert.strictEqual(editor.document.uri.toString(), resource.toString());
|
||||||
|
|
Loading…
Reference in a new issue