@@ -348,7 +348,9 @@ describe("SkillManager", () => {
348348 const skills = await skillManager . listSkills ( ) ;
349349
350350 expect ( skills ) . toEqual ( [ ] ) ;
351+ // UI utility outputs symbol and message as separate parameters
351352 expect ( console . log ) . toHaveBeenCalledWith (
353+ expect . stringContaining ( "⚠" ) ,
352354 expect . stringContaining ( "No .ai-devkit.json found" ) ,
353355 ) ;
354356 } ) ;
@@ -514,7 +516,9 @@ describe("SkillManager", () => {
514516 await skillManager . removeSkill ( mockSkillName ) ;
515517
516518 expect ( mockedFs . remove ) . toHaveBeenCalled ( ) ;
519+ // UI utility outputs symbol and message as separate parameters
517520 expect ( console . log ) . toHaveBeenCalledWith (
521+ expect . stringContaining ( "✔" ) ,
518522 expect . stringContaining ( "Successfully removed" ) ,
519523 ) ;
520524 } ) ;
@@ -525,7 +529,9 @@ describe("SkillManager", () => {
525529 await skillManager . removeSkill ( mockSkillName ) ;
526530
527531 expect ( mockedFs . remove ) . not . toHaveBeenCalled ( ) ;
532+ // UI utility outputs symbol and message as separate parameters
528533 expect ( console . log ) . toHaveBeenCalledWith (
534+ expect . stringContaining ( "⚠" ) ,
529535 expect . stringContaining ( "not found" ) ,
530536 ) ;
531537 } ) ;
@@ -535,18 +541,23 @@ describe("SkillManager", () => {
535541
536542 await skillManager . removeSkill ( mockSkillName ) ;
537543
544+ // UI utility outputs symbol and message as separate parameters
538545 expect ( console . log ) . toHaveBeenCalledWith (
546+ expect . stringContaining ( "ℹ" ) ,
539547 expect . stringContaining ( "ai-devkit skill list" ) ,
540548 ) ;
541549 } ) ;
542550
543551 it ( "should note that cache is preserved" , async ( ) => {
544552 await skillManager . removeSkill ( mockSkillName ) ;
545553
554+ // UI utility outputs symbol and message as separate parameters
546555 expect ( console . log ) . toHaveBeenCalledWith (
556+ expect . stringContaining ( "ℹ" ) ,
547557 expect . stringContaining ( "Cache" ) ,
548558 ) ;
549559 expect ( console . log ) . toHaveBeenCalledWith (
560+ expect . stringContaining ( "ℹ" ) ,
550561 expect . stringContaining ( "preserved" ) ,
551562 ) ;
552563 } ) ;
@@ -589,7 +600,9 @@ describe("SkillManager", () => {
589600 failed : 0 ,
590601 results : [ ] ,
591602 } ) ;
603+ // UI utility outputs symbol and message as separate parameters
592604 expect ( console . log ) . toHaveBeenCalledWith (
605+ expect . stringContaining ( "⚠" ) ,
593606 expect . stringContaining ( "No skills cache found" ) ,
594607 ) ;
595608 } ) ;
@@ -748,11 +761,11 @@ describe("SkillManager", () => {
748761
749762 await skillManager . updateSkills ( ) ;
750763
764+ // Summary now uses ui.summary() which formats differently
765+ // It outputs "✓ 1 updated" as a single colored string
766+ expect ( console . log ) . toHaveBeenCalled ( ) ;
751767 expect ( console . log ) . toHaveBeenCalledWith (
752- expect . stringContaining ( "anthropics/skills" ) ,
753- ) ;
754- expect ( console . log ) . toHaveBeenCalledWith (
755- expect . stringContaining ( "✓ Updated" ) ,
768+ expect . stringContaining ( "updated" ) ,
756769 ) ;
757770 } ) ;
758771
0 commit comments