Skip to content
Merged
Changes from 1 commit
Commits
File filter

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
update initial loading state in tests
  • Loading branch information
sejas committed Dec 4, 2025
commit cb5a0bd62bca5d5546ac86c96ecd005d19533fc3
6 changes: 3 additions & 3 deletions src/stores/tests/onboarding-slice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe( 'onboarding-slice', () => {
it( 'should have correct initial state', () => {
const state = store.getState();
expect( selectOnboardingCompleted( state ) ).toBe( false );
expect( selectOnboardingLoading( state ) ).toBe( false );
expect( selectOnboardingLoading( state ) ).toBe( true );
} );
} );

Expand Down Expand Up @@ -174,9 +174,9 @@ describe( 'onboarding-slice', () => {
} );

it( 'should select onboarding loading state correctly', () => {
// Initial state should be false
// Initial state should be true
let state = store.getState();
expect( selectOnboardingLoading( state ) ).toBe( false );
expect( selectOnboardingLoading( state ) ).toBe( true );

// Mock the API to trigger loading state
mockIpcApi.getOnboardingData.mockResolvedValue( true );
Expand Down