Skip to content

Commit 469bea0

Browse files
author
Paul van Brenk
committed
more pr feedback
1 parent 927def4 commit 469bea0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Nodejs/Product/Nodejs/NodejsConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public static bool ContainsNodeModulesOrBowerComponentsFolder(string path)
8080

8181
private const string TestRootDataValueGuidString = "{FF41BE7F-6D8C-4D27-91D4-51E4233BC7E4}";
8282
public readonly static Guid TestRootDataValueGuid = new Guid(TestRootDataValueGuidString);
83+
84+
public const string TestRootDataValueName = nameof(TestRootDataValueName);
8385
}
8486

8587
internal static class NodeProjectProperty

Nodejs/Product/Nodejs/Workspace/PackageJsonScannerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected override Task<List<FileDataValue>> ComputeFileDataValuesAsync(string f
9191
var testRoot = packageJson.TestRoot;
9292
if (!string.IsNullOrEmpty(testRoot))
9393
{
94-
fileDataValues.Add(new FileDataValue(NodejsConstants.TestRootDataValueGuid, "TestRoot", testRoot));
94+
fileDataValues.Add(new FileDataValue(NodejsConstants.TestRootDataValueGuid, NodejsConstants.TestRootDataValueName, testRoot));
9595
}
9696

9797
return Task.FromResult(fileDataValues);

Nodejs/Product/Nodejs/Workspace/PackageJsonTestContainerDiscoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private async Task AttemptUpdateAsync()
7474
foreach (var dataValue in filesDataValues)
7575
{
7676
var rootFilePath = workspace.MakeRooted(dataValue.Key);
77-
var testRoot = dataValue.Value.Where(f => f.Name == "TestRoot").FirstOrDefault()?.Value;
77+
var testRoot = dataValue.Value.Where(f => f.Name == NodejsConstants.TestRootDataValueName).FirstOrDefault()?.Value;
7878

7979
if (!string.IsNullOrEmpty(testRoot))
8080
{

Nodejs/Product/TestAdapter/TestAdapter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<Compile Include="JavaScriptTestDiscoverer.cs" />
7272
<Compile Include="JavaScriptTestDiscoverer.TestFileEntry.cs" />
7373
<Compile Include="TestExecutorWorker.cs" />
74-
<Compile Include="TestFrameworks\FrameworkDiscover.cs" />
74+
<Compile Include="TestFrameworks\FrameworkDiscoverer.cs" />
7575
<Compile Include="JavaScriptTestCaseProperties.cs" />
7676
<Compile Include="TestFrameworks\NodejsTestInfo.cs" />
7777
<Compile Include="TestFrameworks\TestFramework.cs" />

0 commit comments

Comments
 (0)