Some checks failed
Auto-update PR branches / Update open PR branches (push) Has been cancelled
CI / Frontend Static Quality Checks (push) Has been cancelled
CI / Frontend Tests & Coverage (push) Has been cancelled
CI / Rust Tests & Quality Checks (push) Has been cancelled
CI / Linux build verification (push) Has been cancelled
Release (Alpha) / Compute alpha version (push) Has been cancelled
Release (Alpha) / Build release artifacts (push) Has been cancelled
Release (Alpha) / GitHub Release (alpha) (push) Has been cancelled
Release (Alpha) / Update docs and release pages (push) Has been cancelled
Deploy docs / Build VitePress site (push) Has been cancelled
Deploy docs / Deploy to GitHub Pages (push) Has been cancelled
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
import assert from 'node:assert/strict'
|
|
import test from 'node:test'
|
|
|
|
import { normalizeDocPath, sectionForFile } from './build-agent-docs.mjs'
|
|
|
|
test('normalizes Windows doc paths before section grouping', () => {
|
|
const docPath = normalizeDocPath('concepts\\ai.md')
|
|
|
|
assert.equal(docPath, 'concepts/ai.md')
|
|
assert.equal(sectionForFile(docPath), 'concepts')
|
|
})
|