Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import { describe, expect, it,} from '@monochromatic-dev/module-test/ts';
import { _formatPath, } from '@monochromatic-dev/module-toml-edit';
await describe({ name: _formatPath.name, children: [ it({ name: 'formats string and numeric segments without extra separators', fn: async () => { expect(_formatPath({ path: ['fruits', 0, 'name',], },),).toBe('fruits[0].name',); expect(_formatPath({ path: ['a', 'b',], },),).toBe('a.b',); expect(_formatPath({ path: ['fruits', 10,], },),).toBe('fruits[10]',); }, },), it({ name: 'formats empty and single-segment paths', fn: async () => { expect(_formatPath({ path: [], },),).toBe('',); expect(_formatPath({ path: ['root',], },),).toBe('root',); }, },), ],},);