Skip to content

Commit

Permalink
Merge pull request #532 from hoanhtien/FixImportWizardTests
Browse files Browse the repository at this point in the history
Fix import wizard tests.
  • Loading branch information
mousetraps committed Oct 14, 2015
2 parents 36eca2f + ea7a590 commit b801b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Nodejs/Product/Nodejs/Project/ImportWizard/ImportSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ public Task<string> CreateRequestedProjectAsync() {
using (var writer = GetDefaultWriter(projectPath)) {
WriteProjectXml(writer, projectPath, sourcePath, filters, startupFile, excludeNodeModules, out projectGuid);
}
// Log telemetry
NodejsPackage.Instance.TelemetryLogger.ReportEvent(TelemetryEvents.ProjectImported, TelemetryProperties.ProjectGuid, projectGuid.ToString("B"));
if (NodejsPackage.Instance != null) {
NodejsPackage.Instance.TelemetryLogger.ReportEvent(TelemetryEvents.ProjectImported, TelemetryProperties.ProjectGuid, projectGuid.ToString("B"));
}
success = true;
return projectPath;
} finally {
Expand Down
2 changes: 1 addition & 1 deletion Nodejs/Tests/Core/ImportWizardTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void ImportWizardTypeScript() {
AssertUtil.ContainsExactly(proj.Descendants(proj.GetName("TypeScriptCompile")).Select(x => x.Attribute("Include").Value),
"server.ts");

Assert.AreEqual("server.js", proj.Descendant("StartupFile").Value);
Assert.AreEqual("server.ts", proj.Descendant("StartupFile").Value);
}

/// <summary>
Expand Down

0 comments on commit b801b60

Please sign in to comment.