From 57edded162e2d0c15eed5b4c055755b3be816d58 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Thu, 3 May 2018 15:43:37 -0700 Subject: [PATCH] Add context around a test in switchrouter --- .../src/routers/__tests__/SwitchRouter-test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/react-navigation/src/routers/__tests__/SwitchRouter-test.js b/packages/react-navigation/src/routers/__tests__/SwitchRouter-test.js index 198a291f..d22edde5 100644 --- a/packages/react-navigation/src/routers/__tests__/SwitchRouter-test.js +++ b/packages/react-navigation/src/routers/__tests__/SwitchRouter-test.js @@ -183,12 +183,9 @@ describe('SwitchRouter', () => { expect(activeState4.routes[activeState4.index].routeName).toEqual('Bar'); }); + // https://github.com/react-navigation/react-navigation.github.io/issues/117#issuecomment-385597628 test('order of handling navigate action is correct for nested stackrouters', () => { - // router = switch({ Nested: switch({ Foo, Bar }), Other: switch({ Foo }), Bar }) - // if we are focused on Other and navigate to Bar, what should happen? - const Screen = () =>
; - const MainStack = () =>
; const LoginStack = () =>
; MainStack.router = StackRouter({ Home: Screen, Profile: Screen });