Jonny Borges
Committed by GitHub

Merge pull request #887 from eduardoflorence/add-testmode

Returning with testMode
@@ -976,7 +976,7 @@ extension GetNavigation on GetInterface { @@ -976,7 +976,7 @@ extension GetNavigation on GetInterface {
976 _key = keys[k]; 976 _key = keys[k];
977 } 977 }
978 978
979 - if (_key.currentContext == null) { 979 + if (_key.currentContext == null && !testMode) {
980 throw """You are trying to use contextless navigation without 980 throw """You are trying to use contextless navigation without
981 a GetMaterialApp or Get.key. 981 a GetMaterialApp or Get.key.
982 If you are testing your app, you can use: 982 If you are testing your app, you can use: