18 lines
665 B
JavaScript
18 lines
665 B
JavaScript
import assert from 'node:assert/strict'
|
|
import { readFileSync } from 'node:fs'
|
|
import { dirname, join } from 'node:path'
|
|
import test from 'node:test'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
const skillPath = join(here, '..', 'skills', 'role', 'SKILL.md')
|
|
|
|
test('role skill is model-invocable and names the DSH role paths', () => {
|
|
const text = readFileSync(skillPath, 'utf8')
|
|
assert.match(text, /^---\nname: role\n/)
|
|
assert.match(text, /\ndescription: .+/)
|
|
assert.match(text, /~\/\.dsh\/roles/)
|
|
assert.match(text, /\.claude\/roles/)
|
|
assert.match(text, /модель её не вызывает/)
|
|
})
|