MCPcopy
hub / github.com/Fission-AI/OpenSpec / normalizePaths

Function normalizePaths

test/commands/artifact-workflow.test.ts:36–38  ·  view source on GitHub ↗

* Normalizes path separators to forward slashes for cross-platform assertions.

(str: string)

Source from the content-addressed store, hash-verified

34 * Normalizes path separators to forward slashes for cross-platform assertions.
35 */
36 function normalizePaths(str: string): string {
37 return str.replace(/\\/g, '/');
38 }
39
40 /**
41 * Creates a test change with the specified artifacts completed.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected