Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cli/remote_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func TestFetchIncludeFromSource_SectionExtraction(t *testing.T) {
},
{
name: "section at end of path with ref",
includePath: "owner/repo/file.md@v1.0.0#section",
includePath: "shared/file.md@v1.0.0#section",
expectSection: "#section", // Section is extracted from the end regardless of @ref position
},
{
Expand All @@ -244,7 +244,7 @@ func TestFetchIncludeFromSource_SectionExtraction(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// We expect errors since these are remote paths, but section should still be extracted
// We expect resolution errors in these unit tests, but section should still be extracted
_, section, _ := FetchIncludeFromSource(tt.includePath, nil, false)
assert.Equal(t, tt.expectSection, section, "section should be correctly extracted")
})
Expand Down
Loading