Skip to content

Commit

Permalink
chore: fix unused warnings in test code
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Dec 23, 2024
1 parent 665c4a4 commit 8765304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe("AuthUtils", () => {
})
);
profilesCacheMock[Symbol.dispose]();
isUsingTokenAuthMock.mockRestore();
});
});
describe("promptForSsoLogin", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ describe("ProfilesUtils unit tests", () => {
expect(ssoLoginSpy).not.toHaveBeenCalled();
showMessageSpy.mockClear();
promptCredsSpy.mockClear();
lockMock.mockRestore();
unlockMock.mockRestore();
});

it("should handle token error and proceed to login", async () => {
Expand Down Expand Up @@ -212,6 +214,8 @@ describe("ProfilesUtils unit tests", () => {
showErrorSpy.mockClear();
showMessageSpy.mockClear();
ssoLoginSpy.mockClear();
lockMock.mockRestore();
unlockMock.mockRestore();
});
it("should handle credential error and no selection made for update", async () => {
const errorDetails = new imperative.ImperativeError({
Expand Down

0 comments on commit 8765304

Please sign in to comment.