@@ -16,18 +16,21 @@ describe('xterm-addon-ligatures', () => {
1616
1717 before ( ( ) => {
1818 sinon . stub ( fontFinder , 'list' ) . returns ( Promise . resolve ( {
19+ // eslint-disable-next-line @typescript-eslint/naming-convention
1920 'Fira Code' : [ {
2021 path : path . join ( __dirname , '../fonts/firaCode.otf' ) ,
2122 style : fontFinder . Style . Regular ,
2223 type : fontFinder . Type . Monospace ,
2324 weight : 400
2425 } ] ,
26+ // eslint-disable-next-line @typescript-eslint/naming-convention
2527 'Iosevka' : [ {
2628 path : path . join ( __dirname , '../fonts/iosevka.ttf' ) ,
2729 style : fontFinder . Style . Regular ,
2830 type : fontFinder . Type . Monospace ,
2931 weight : 400
3032 } ] ,
33+ // eslint-disable-next-line @typescript-eslint/naming-convention
3134 'Nonexistant Font' : [ {
3235 path : path . join ( __dirname , '../fonts/nonexistant.ttf' ) ,
3336 style : fontFinder . Style . Regular ,
@@ -185,32 +188,32 @@ describe('xterm-addon-ligatures', () => {
185188} ) ;
186189
187190class MockTerminal {
188- static applyAddon ( addon : any ) : void {
191+ public static applyAddon ( addon : any ) : void {
189192 addon . apply ( MockTerminal ) ;
190193 }
191194
192- private _options : { [ name : string ] : string | number ; } = {
195+ private _options : { [ name : string ] : string | number } = {
193196 fontFamily : 'Fira Code, monospace' ,
194197 rows : 50
195198 } ;
196- joiner ?: ( text : string ) => [ number , number ] [ ] ;
197- refresh : ( start : number , end : number ) => void ;
199+ public joiner ?: ( text : string ) => [ number , number ] [ ] ;
200+ public refresh : ( start : number , end : number ) => void ;
198201
199202 constructor ( onRefresh : ( start : number , end : number ) => void ) {
200203 this . refresh = onRefresh ;
201204 }
202205
203- registerCharacterJoiner ( handler : ( text : string ) => [ number , number ] [ ] ) : number {
206+ public registerCharacterJoiner ( handler : ( text : string ) => [ number , number ] [ ] ) : number {
204207 this . joiner = handler ;
205208 return 1 ;
206209 }
207- deregisterCharacterJoiner ( id : number ) : void {
210+ public deregisterCharacterJoiner ( id : number ) : void {
208211 this . joiner = undefined ;
209212 }
210- setOption ( name : string , value : string | number ) : void {
213+ public setOption ( name : string , value : string | number ) : void {
211214 this . _options [ name ] = value ;
212215 }
213- getOption ( name : string ) : string | number {
216+ public getOption ( name : string ) : string | number {
214217 return this . _options [ name ] ;
215218 }
216219}
0 commit comments