Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fixed unit tests
  • Loading branch information
lwin-kyaw committed Jul 21, 2025
commit 5d4dcbd79e32d80cc58cd20b52bef36758f2440a
4 changes: 3 additions & 1 deletion app/scripts/metamask-controller.actions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,14 @@ describe('MetaMaskController', function () {
FirstTimeFlowType.create,
);
const result = await metamaskController.checkIsSeedlessPasswordOutdated();
expect(result).toBeUndefined();
expect(result).toBeFalsy();
});

it('should return false if firstTimeFlowType is seedless and password is not outdated', async function () {
metamaskController.onboardingController.setFirstTimeFlowType(
FirstTimeFlowType.socialCreate,
);
metamaskController.onboardingController.completeOnboarding();
jest
.spyOn(
metamaskController.seedlessOnboardingController,
Expand All @@ -467,6 +468,7 @@ describe('MetaMaskController', function () {
metamaskController.onboardingController.setFirstTimeFlowType(
FirstTimeFlowType.socialCreate,
);
metamaskController.onboardingController.completeOnboarding();
jest
.spyOn(
metamaskController.seedlessOnboardingController,
Expand Down
Loading