mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix env var collection api tests
This commit is contained in:
@@ -850,17 +850,17 @@ import { assertNoRpc, poll } from '../utils';
|
||||
collection.prepend('C', '~c2~');
|
||||
|
||||
// Verify get
|
||||
deepStrictEqual(collection.get('A'), { value: '~a2~', type: EnvironmentVariableMutatorType.Replace, scope: undefined });
|
||||
deepStrictEqual(collection.get('B'), { value: '~b2~', type: EnvironmentVariableMutatorType.Append, scope: undefined });
|
||||
deepStrictEqual(collection.get('C'), { value: '~c2~', type: EnvironmentVariableMutatorType.Prepend, scope: undefined });
|
||||
deepStrictEqual(collection.get('A'), { value: '~a2~', type: EnvironmentVariableMutatorType.Replace, scope: undefined, options: undefined });
|
||||
deepStrictEqual(collection.get('B'), { value: '~b2~', type: EnvironmentVariableMutatorType.Append, scope: undefined, options: undefined });
|
||||
deepStrictEqual(collection.get('C'), { value: '~c2~', type: EnvironmentVariableMutatorType.Prepend, scope: undefined, options: undefined });
|
||||
|
||||
// Verify forEach
|
||||
const entries: [string, EnvironmentVariableMutator][] = [];
|
||||
collection.forEach((v, m) => entries.push([v, m]));
|
||||
deepStrictEqual(entries, [
|
||||
['A', { value: '~a2~', type: EnvironmentVariableMutatorType.Replace, scope: undefined }],
|
||||
['B', { value: '~b2~', type: EnvironmentVariableMutatorType.Append, scope: undefined }],
|
||||
['C', { value: '~c2~', type: EnvironmentVariableMutatorType.Prepend, scope: undefined }]
|
||||
['A', { value: '~a2~', type: EnvironmentVariableMutatorType.Replace, scope: undefined, options: undefined }],
|
||||
['B', { value: '~b2~', type: EnvironmentVariableMutatorType.Append, scope: undefined, options: undefined }],
|
||||
['C', { value: '~c2~', type: EnvironmentVariableMutatorType.Prepend, scope: undefined, options: undefined }]
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user