Merge pull request #9000 from backstage/rugvip/noignore

remove usage of @ts-ignore
This commit is contained in:
Patrik Oldsberg
2022-01-18 18:46:28 +01:00
committed by GitHub
13 changed files with 45 additions and 83 deletions
@@ -146,8 +146,7 @@ describe('PassportStrategyHelper', () => {
}
}
class MyCustomRefreshTokenSuccess extends passport.Strategy {
// @ts-ignore
private _oauth2 = new MyCustomOAuth2Success();
_oauth2 = new MyCustomOAuth2Success();
userProfile(_accessToken: string, callback: Function) {
callback(null, {
provider: 'a',
@@ -183,8 +182,7 @@ describe('PassportStrategyHelper', () => {
}
}
class MyCustomRefreshTokenSuccess extends passport.Strategy {
// @ts-ignore
private _oauth2 = new MyCustomOAuth2Error();
_oauth2 = new MyCustomOAuth2Error();
}
const mockStrategy = new MyCustomRefreshTokenSuccess();
@@ -209,8 +207,7 @@ describe('PassportStrategyHelper', () => {
}
}
class MyCustomRefreshTokenSuccess extends passport.Strategy {
// @ts-ignore
private _oauth2 = new MyCustomOAuth2AccessTokenMissing();
_oauth2 = new MyCustomOAuth2AccessTokenMissing();
}
const mockStrategy = new MyCustomRefreshTokenSuccess();