add tests for createXYZ functions and skip most of them...

This commit is contained in:
Johannes Rieken
2021-02-01 14:52:37 +01:00
parent 3d2ca29012
commit a0c75f6053
2 changed files with 53 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ export function withLogDisabled(runnable: () => Promise<any>): () => Promise<voi
}
export function assertNoRpc() {
assertNoRpcFromEntry([vscode, 'vscode']);
}
export function assertNoRpcFromEntry(entry: [obj: any, name: string]) {
const symProxy = Symbol.for('rpcProxy');
const symProtocol = Symbol.for('rpcProtocol');
@@ -106,7 +110,7 @@ export function assertNoRpc() {
}
try {
walk(vscode, 'vscode', new Set());
walk(entry[0], entry[1], new Set());
} catch (err) {
assert.fail(err);
}