Use BackstageUserIdentity, fix tests
Co-authored-by: blam <ben@blam.sh> Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -37,6 +37,9 @@ const identityApiAuthenticated: IdentityApi = {
|
||||
async signOut() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
getProfileInfo: jest.fn(),
|
||||
getBackstageIdentity: jest.fn(),
|
||||
getCredentials: jest.fn(),
|
||||
};
|
||||
const identityApiGuest: IdentityApi = {
|
||||
getUserId() {
|
||||
@@ -51,6 +54,9 @@ const identityApiGuest: IdentityApi = {
|
||||
async signOut() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
getProfileInfo: jest.fn(),
|
||||
getBackstageIdentity: jest.fn(),
|
||||
getCredentials: jest.fn(),
|
||||
};
|
||||
|
||||
describe('SonarQubeClient', () => {
|
||||
|
||||
Reference in New Issue
Block a user