import { describe, expect, it } from 'vitest';

import { isSkillPathText } from './skill-file-representation';

describe('skill file representation', () => {
  it('keeps scripts textual and assets binary regardless of extension', () => {
    expect(isSkillPathText('scripts/run.bin')).toBe(true);
    expect(isSkillPathText('assets/readme.txt')).toBe(false);
  });

  it('classifies other resources by their known text extension', () => {
    expect(isSkillPathText('references/data.json')).toBe(true);
    expect(isSkillPathText('references/page.htm')).toBe(true);
    expect(isSkillPathText('examples/archive.bin')).toBe(false);
  });
});
