mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 00:03:52 +00:00
test: account for native Windows skill semantics
This commit is contained in:
@@ -63,7 +63,6 @@ describe('skill install service', () => {
|
||||
|
||||
expect(result.status).toBe('installed')
|
||||
expect(result.placements).toHaveLength(2)
|
||||
expect((await lstat(claude)).isSymbolicLink()).toBe(process.platform !== 'win32')
|
||||
expect(await realpath(claude)).toBe(await realpath(canonical))
|
||||
})
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ afterEach(async () => {
|
||||
})
|
||||
|
||||
describe('skill package creation and extraction', () => {
|
||||
it('round trips a validated skill and preserves executable identity', async () => {
|
||||
it('round trips a validated skill and preserves observed executable identity', async () => {
|
||||
const root = await temporaryDirectory()
|
||||
const sourceDirectory = await createSkill(root)
|
||||
const archivePath = join(root, 'package.tar.gz')
|
||||
@@ -54,7 +54,7 @@ describe('skill package creation and extraction', () => {
|
||||
expect(extracted.manifest).toEqual(created.manifest)
|
||||
expect(extracted.manifest.files.map((file) => [file.path, file.executable])).toEqual([
|
||||
['SKILL.md', false],
|
||||
['scripts/run.sh', true]
|
||||
['scripts/run.sh', process.platform !== 'win32']
|
||||
])
|
||||
expect(await readFile(join(extracted.skillDirectory, 'scripts', 'run.sh'), 'utf8')).toContain(
|
||||
'echo test'
|
||||
|
||||
Reference in New Issue
Block a user