@@ -7,22 +7,33 @@ import * as assert from 'assert';
77import { isWindows } from 'vs/base/common/platform' ;
88
99suite ( 'Windows Native Helpers' , ( ) => {
10- test ( 'windows-mutex' , async ( ) => {
11- if ( ! isWindows ) {
12- return ;
13- }
10+ if ( ! isWindows ) {
11+ return ;
12+ }
1413
14+ test ( 'windows-mutex' , async ( ) => {
1515 const mutex = await import ( 'windows-mutex' ) ;
16- assert . ok ( mutex , 'Unable to load windows-mutex dependency.' ) ;
16+ assert . ok ( mutex && typeof mutex . isActive === 'function' , 'Unable to load windows-mutex dependency.' ) ;
1717 assert . ok ( typeof mutex . isActive === 'function' , 'Unable to load windows-mutex dependency.' ) ;
1818 } ) ;
1919
2020 test ( 'windows-foreground-love' , async ( ) => {
21- if ( ! isWindows ) {
22- return ;
23- }
24-
2521 const foregroundLove = await import ( 'windows-foreground-love' ) ;
26- assert . ok ( foregroundLove , 'Unable to load windows-foreground-love dependency.' ) ;
22+ assert . ok ( foregroundLove && typeof foregroundLove . allowSetForegroundWindow === 'function' , 'Unable to load windows-foreground-love dependency.' ) ;
23+ } ) ;
24+
25+ test ( 'windows-process-tree' , async ( ) => {
26+ const processTree = await import ( 'windows-process-tree' ) ;
27+ assert . ok ( processTree && typeof processTree . getProcessTree === 'function' , 'Unable to load windows-process-tree dependency.' ) ;
28+ } ) ;
29+
30+ test ( 'vscode-windows-ca-certs' , async ( ) => {
31+ const windowsCerts = await import ( 'vscode-windows-ca-certs' ) ;
32+ assert . ok ( windowsCerts , 'Unable to load vscode-windows-ca-certs dependency.' ) ;
33+ } ) ;
34+
35+ test ( 'vscode-windows-registry' , async ( ) => {
36+ const windowsRegistry = await import ( 'vscode-windows-registry' ) ;
37+ assert . ok ( windowsRegistry && typeof windowsRegistry . GetStringRegKey === 'function' , 'Unable to load vscode-windows-registry dependency.' ) ;
2738 } ) ;
28- } ) ;
39+ } ) ;
0 commit comments