chore(lint): reduce warning debt across core adapters and model clients
This commit is contained in:
@@ -62,8 +62,11 @@ describe('SkillInstaller', () => {
|
||||
const skill = installer.install(sourceDir);
|
||||
|
||||
expect(skill).not.toBeNull();
|
||||
expect(skill!.manifest.name).toBe('my-skill');
|
||||
expect(skill!.instructions).toBe('# My Skill\nDo the thing.');
|
||||
if (!skill) {
|
||||
throw new Error('Expected installed skill');
|
||||
}
|
||||
expect(skill.manifest.name).toBe('my-skill');
|
||||
expect(skill.instructions).toBe('# My Skill\nDo the thing.');
|
||||
expect(existsSync(join(managedDir, 'my-skill', 'SKILL.md'))).toBe(true);
|
||||
});
|
||||
|
||||
@@ -79,7 +82,10 @@ describe('SkillInstaller', () => {
|
||||
const skill = installer.install(sourceDir);
|
||||
|
||||
expect(skill).not.toBeNull();
|
||||
expect(skill!.manifest.tier).toBe('managed');
|
||||
if (!skill) {
|
||||
throw new Error('Expected installed skill');
|
||||
}
|
||||
expect(skill.manifest.tier).toBe('managed');
|
||||
});
|
||||
|
||||
it('uses manifest.json name field for the installed directory name', () => {
|
||||
@@ -131,8 +137,11 @@ describe('SkillInstaller', () => {
|
||||
const skill = installer.install(sourceV2);
|
||||
|
||||
expect(skill).not.toBeNull();
|
||||
expect(skill!.manifest.version).toBe('2.0.0');
|
||||
expect(skill!.instructions).toBe('# V2');
|
||||
if (!skill) {
|
||||
throw new Error('Expected installed skill');
|
||||
}
|
||||
expect(skill.manifest.version).toBe('2.0.0');
|
||||
expect(skill.instructions).toBe('# V2');
|
||||
});
|
||||
|
||||
it('throws when source directory does not exist', () => {
|
||||
|
||||
Reference in New Issue
Block a user