import * as assert from "assert" ; import vscodeUtils from '../../src/vscodeUtilities' ; import * as vscode from "vscode" ; suite ( "Utility Tests" , ( ) => { test ( "new python doc" , function ( done ) { vscodeUtils . newUnsavedPythonDoc ( "test" ) . then ( ( editor ) => { assert . equal ( editor . document . isClosed , false ) ; assert . equal ( editor . document . getText ( ) , "test" ) ; vscode . commands . executeCommand ( "workbench.action.closeActiveEditor" ) . then ( ( ) => { done ( ) ; } ) ; } ) ; } ) ; } ) ;