提交 0cdbe60f 编写于 作者: D Dirk Baeumer

Reenable unit test

上级 0f3c3837
......@@ -637,14 +637,17 @@ namespace ShellConfiguration {
export function is(value: any): value is ShellConfiguration {
let candidate: ShellConfiguration = value;
return candidate && (Types.isString(candidate.executable) || (candidate.args === void 0 || Types.isStringArray(candidate.args)));
return candidate && (Types.isString(candidate.executable) || Types.isStringArray(candidate.args));
}
export function from(this: void, config: ShellConfiguration, context: ParseContext): Tasks.ShellConfiguration {
if (!is(config)) {
return undefined;
}
let result: ShellConfiguration = { executable: config.executable };
let result: ShellConfiguration = {};
if (config.executable !== void 0) {
result.executable = config.executable;
}
if (config.args !== void 0) {
result.args = config.args.slice();
}
......
......@@ -1324,7 +1324,6 @@ suite('Tasks version 0.1.0', () => {
testConfiguration(external, builder);
});
/*
test('tasks: with command and args', () => {
let external: ExternalTaskRunnerConfiguration = {
version: '0.1.0',
......@@ -1348,7 +1347,6 @@ suite('Tasks version 0.1.0', () => {
runtime(Tasks.RuntimeType.Shell).args(['arg']).options({ cwd: 'cwd', env: { env: 'env' } });
testConfiguration(external, builder);
});
*/
test('tasks: with command os specific', () => {
let name: string = Platform.isWindows ? 'tsc.win' : 'tsc';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册