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.
1234567891011121314151617181920212223242526272829303132333435import { describe, expect, it,} from '@monochromatic-dev/module-test/ts';
import { _isStrictPrefix, } from '@monochromatic-dev/module-toml-edit';
await describe({ name: _isStrictPrefix.name, children: [ it({ name: 'accepts a matching shorter path', fn: async () => { expect(_isStrictPrefix({ candidate: ['a', 0,], path: ['a', 0, 'x',], },),).toBe(true,); expect(_isStrictPrefix({ candidate: [], path: ['a',], },),).toBe(true,); }, },), it({ name: 'rejects equal and longer paths', fn: async () => { expect(_isStrictPrefix({ candidate: ['a',], path: ['a',], },),).toBe(false,); expect(_isStrictPrefix({ candidate: [], path: [], },),).toBe(false,); expect(_isStrictPrefix({ candidate: ['a', 'b',], path: ['a',], },),).toBe(false,); }, },), it({ name: 'rejects a partially matching candidate', fn: async () => { expect(_isStrictPrefix({ candidate: ['a', 'x',], path: ['a', 'b', 'c',], },),).toBe(false,); }, },), ],},);