Skip to content

Commit 32fb4f0

Browse files
cotticursoragent
andcommitted
test: simplify Paths reference to satisfy lint (IDE0002)
Import Elastic.Documentation.Configuration and use the unqualified Paths reference in the CDN inference test instead of the fully-qualified name. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent bf630a0 commit 32fb4f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Elastic.Markdown.Tests/Directives/ChangelogBasicTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.IO.Abstractions.TestingHelpers;
66
using AwesomeAssertions;
7+
using Elastic.Documentation.Configuration;
78
using Elastic.Documentation.Configuration.ReleaseNotes;
89
using Elastic.Documentation.ReleaseNotes;
910
using Elastic.Markdown.Myst.Directives.Changelog;
@@ -393,7 +394,7 @@ public class ChangelogCdnInferredProductTests(ITestOutputHelper output) : Direct
393394
// A .git marker makes FindGitRoot resolve a checkout directory, which lets the mock-aware
394395
// GitCheckoutInformationFactory report the repository name (docs-builder) for inference.
395396
protected override void AddToFileSystem(MockFileSystem fileSystem) =>
396-
fileSystem.AddDirectory(Path.Combine(Elastic.Documentation.Configuration.Paths.WorkingDirectoryRoot.FullName, ".git"));
397+
fileSystem.AddDirectory(Path.Combine(Paths.WorkingDirectoryRoot.FullName, ".git"));
397398

398399
public override async ValueTask InitializeAsync()
399400
{

0 commit comments

Comments
 (0)