export class WindowMock { public navigator : any = { language : 'en-US' , userAgent : 'testing' } ; public location : any = { } ; public alert ( msg ) { return ; } public confirm ( msg ) { return ; } } export class WindowMockFrench extends WindowMock { constructor ( ) { super ( ) ; this . navigator . language = 'fr-US' ; } }