@@ -95,17 +95,17 @@ describe("`SkillsSection`", () => {
9595 it ( "can sort skills by `repoCount`" , ( ) => {
9696 const wrapper = shallow < SkillsSection > ( < SkillsSection { ...props } /> ) ;
9797
98- wrapper . instance ( ) . handleSort ( getFakeEventWithValue ( "Repo Count" ) ) ;
98+ ( wrapper . instance ( ) as SkillsSection ) . handleSort ( getFakeEventWithValue ( "Repo Count" ) ) ;
9999
100- const comparator : SkillSortComparator = wrapper . state ( "sortComparator" ) ;
100+ const comparator : SkillSortComparator = ( wrapper . state ( "sortComparator" ) as SkillSortComparator ) ;
101101
102102 expect ( comparator ) . toEqual ( repoCountComparator ) ;
103103 } ) ;
104104
105105 it ( "can sort skills by `name`" , ( ) => {
106106 const wrapper = shallow < SkillsSection > ( < SkillsSection { ...props } /> ) ;
107107
108- wrapper . instance ( ) . handleSort ( getFakeEventWithValue ( "Skill Name" ) ) ;
108+ ( wrapper . instance ( ) as SkillsSection ) . handleSort ( getFakeEventWithValue ( "Skill Name" ) ) ;
109109
110110 const comparator : SkillSortComparator = wrapper . state ( "sortComparator" ) ;
111111
@@ -116,8 +116,8 @@ describe("`SkillsSection`", () => {
116116 const wrapper = shallow < SkillsSection > ( < SkillsSection { ...props } /> ) ;
117117
118118 // sort away from initial sort, to sort back again
119- wrapper . instance ( ) . handleSort ( getFakeEventWithValue ( "Name" ) ) ;
120- wrapper . instance ( ) . handleSort ( getFakeEventWithValue ( "Recency" ) ) ;
119+ ( wrapper . instance ( ) as SkillsSection ) . handleSort ( getFakeEventWithValue ( "Name" ) ) ;
120+ ( wrapper . instance ( ) as SkillsSection ) . handleSort ( getFakeEventWithValue ( "Recency" ) ) ;
121121
122122 const comparator : SkillSortComparator = wrapper . state ( "sortComparator" ) ;
123123
0 commit comments