Skip to content

Commit 0dca5e1

Browse files
authored
sandbox - move tests to node layer (microsoft#154779)
1 parent 402d94a commit 0dca5e1

29 files changed

+6
-6
lines changed

src/tsec.exemptions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"vs/workbench/api/worker/extHostExtensionService.ts",
88
"vs/base/worker/workerMain",
99
"vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts",
10-
"vs/workbench/services/keybinding/test/electron-browser/keyboardMapperTestUtils.ts"
10+
"vs/workbench/services/keybinding/test/node/keyboardMapperTestUtils.ts"
1111
],
1212
"ban-trustedtypes-createpolicy": [
1313
"vs/base/browser/dom.ts",

src/vs/workbench/services/keybinding/test/electron-browser/keyboardMapperTestUtils.ts renamed to src/vs/workbench/services/keybinding/test/node/keyboardMapperTestUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function assertResolveUserBinding(mapper: IKeyboardMapper, parts: (Simple
5151
}
5252

5353
export function readRawMapping<T>(file: string): Promise<T> {
54-
return Promises.readFile(getPathFromAmdModule(require, `vs/workbench/services/keybinding/test/electron-browser/${file}.js`)).then((buff) => {
54+
return Promises.readFile(getPathFromAmdModule(require, `vs/workbench/services/keybinding/test/node/${file}.js`)).then((buff) => {
5555
const contents = buff.toString();
5656
const func = new Function('define', contents);
5757
let rawMappings: T | null = null;
@@ -63,7 +63,7 @@ export function readRawMapping<T>(file: string): Promise<T> {
6363
}
6464

6565
export function assertMapping(writeFileIfDifferent: boolean, mapper: IKeyboardMapper, file: string): Promise<void> {
66-
const filePath = path.normalize(getPathFromAmdModule(require, `vs/workbench/services/keybinding/test/electron-browser/${file}`));
66+
const filePath = path.normalize(getPathFromAmdModule(require, `vs/workbench/services/keybinding/test/node/${file}`));
6767

6868
return Promises.readFile(filePath).then((buff) => {
6969
const expected = buff.toString().replace(/\r\n/g, '\n');

0 commit comments

Comments
 (0)