Remove template test workaround because it's no longer needed

This commit is contained in:
Steve Sanderson 2017-07-27 15:16:52 +01:00
parent 5af7786c45
commit f08bdbdf89

View file

@ -42,8 +42,7 @@ namespace Microsoft.DotNet.New.Tests
bool skipSpaWebpackSteps) bool skipSpaWebpackSteps)
{ {
string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName; string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName;
//This works around the SPA templates not currently supporting the "--no-restore" switch string noRestoreDirective = "--no-restore";
string noRestoreDirective = skipSpaWebpackSteps ? "" : "--no-restore";
new TestCommand("dotnet") { WorkingDirectory = rootPath } new TestCommand("dotnet") { WorkingDirectory = rootPath }
.Execute($"new {projectType} -lang {language} -o {rootPath} --debug:ephemeral-hive {noRestoreDirective}") .Execute($"new {projectType} -lang {language} -o {rootPath} --debug:ephemeral-hive {noRestoreDirective}")