Skip to content

Commit 6a4298b

Browse files
committed
Rename negated variable to fix no-negated-variables lint rule
Made-with: Cursor
1 parent 176bd19 commit 6a4298b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/Navigation/guards/OnboardingGuard.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ describe('OnboardingGuard', () => {
452452
it('should still redirect when onboarding is in routes but not focused', async () => {
453453
// Given a user who needs onboarding, and a state where OnboardingModalNavigator
454454
// exists in routes but HOME is focused (index: 0)
455-
const stateWithOnboardingNotFocused: NavigationState = {
455+
const stateWithOnboardingUnfocused: NavigationState = {
456456
key: 'root',
457457
index: 0,
458458
routeNames: [SCREENS.HOME, NAVIGATORS.ONBOARDING_MODAL_NAVIGATOR],
@@ -473,7 +473,7 @@ describe('OnboardingGuard', () => {
473473
await waitForBatchedUpdates();
474474

475475
// When the guard evaluates while onboarding is NOT focused
476-
const result = OnboardingGuard.evaluate(stateWithOnboardingNotFocused, mockAction, authenticatedContext) as {type: 'REDIRECT'; route: string};
476+
const result = OnboardingGuard.evaluate(stateWithOnboardingUnfocused, mockAction, authenticatedContext) as {type: 'REDIRECT'; route: string};
477477

478478
// Then the guard should still redirect because the user isn't actively on onboarding
479479
expect(result.type).toBe('REDIRECT');

0 commit comments

Comments
 (0)