const tests = [ { existingPath : 'C:\\projectpath\\app\\main.js' , expectedResult : 'C:\\projectpath\\app\\main.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/main.js' , } , { expectedResult : '' , platform : 'android' , scriptUrl : 'VM1' , } , { expectedResult : '' , platform : 'android' , scriptUrl : 'native prologue.js' , } , { expectedResult : '' , platform : 'android' , scriptUrl : 'v8/gc' , } , { expectedResult : '' , platform : 'android' , scriptUrl : 'VM25' , } , { existingPath : 'C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\internal\\ts_helpers.js' , expectedResult : `C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\internal\\ts_helpers.js` , platform : 'android' , scriptUrl : '/data/data/org.nativescript.TabNavigation/files/internal/ts_helpers.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\nativescript-angular\\platform.js' , expectedResult : 'C:\\projectpath\\node_modules\\nativescript-angular\\platform.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/nativescript-angular/platform.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\nativescript-angular\\platform-common.js' , expectedResult : 'C:\\projectpath\\node_modules\\nativescript-angular\\platform-common.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/nativescript-angular/platform-common.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\@angular\\common\\bundles\\common.umd.js' , expectedResult : 'C:\\projectpath\\node_modules\\@angular\\common\\bundles\\common.umd.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/@angular/common/bundles/common.umd.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\gestures\\gestures.android.js' , expectedResult : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\gestures\\gestures.android.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/tns-core-modules/ui/gestures/gestures.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\frame\\fragment.transitions.android.js' , expectedResult : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\frame\\fragment.transitions.android.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/tns-core-modules/ui/frame/fragment.transitions.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\tns-core-modules\\debugger\\devtools-elements.common.js' , expectedResult : 'C:\\projectpath\\node_modules\\tns-core-modules\\debugger\\devtools-elements.common.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/tns-core-modules/debugger/devtools-elements.common.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\page\\page.android.js' , expectedResult : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\page\\page.android.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/tns-core-modules/ui/page/page.js' , } , { existingPath : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\layouts\\layout-base.android.js' , expectedResult : 'C:\\projectpath\\node_modules\\tns-core-modules\\ui\\layouts\\layout-base.android.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/tns_modules/tns-core-modules/ui/layouts/layout-base.js' , } , { expectedResult : '' , platform : 'android' , scriptUrl : 'ng:///css/0/data/data/org.nativescript.TabNavigation/files/app/tabs/tabs.component.scss.ngstyle.js' , } , { existingPath : 'C:\\projectpath\\src\\main.js' , expectedResult : 'C:\\projectpath\\src\\main.js' , nsconfig : { appPath : 'src' } , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/main.js' , } , { existingPath : 'C:\\projectpath\\src\\app\\main.js' , expectedResult : 'C:\\projectpath\\src\\app\\main.js' , nsconfig : { appPath : 'src' } , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.TabNavigation/files/app/app/main.js' , } , { existingPath : 'C:\\projectpath\\src\\app\\main.js' , expectedResult : 'C:\\projectpath\\src\\app\\main.js' , nsconfig : { appPath : 'src' } , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.app1/files/app/app/main.js' , } , { existingPath : 'C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\app\\starter.js' , expectedResult : 'C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\app\\starter.js' , nsconfig : { appPath : 'src' } , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.app1/files/app/starter.js' , } , { existingPath : 'C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\app\\starter.js' , expectedResult : 'C:\\projectpath\\platforms\\android\\app\\src\\main\\assets\\app\\starter.js' , platform : 'android' , scriptUrl : 'file:///data/data/org.nativescript.app1/files/app/starter.js' , } , { existingPath : 'C:\\somepath\\projectpath\\platforms\\ios\\projectpath\\app\\starter.js' , expectedResult : 'C:\\somepath\\projectpath\\platforms\\ios\\projectpath\\app\\starter.js' , platform : 'ios' , scriptUrl : 'file:///app/starter.js' , webRoot : 'C:\\somepath\\projectpath' , } , { existingPath : 'C:\\somepath\\projectpath\\platforms\\ios\\projectpath\\app\\starter.js' , expectedResult : 'C:\\somepath\\projectpath\\platforms\\ios\\projectpath\\app\\starter.js' , nsconfig : { appPath : 'src' } , platform : 'ios' , scriptUrl : 'file:///app/starter.js' , webRoot : 'C:\\somepath\\projectpath' , } , { existingPath : 'C:\\projectpath\\app\\main.js' , expectedResult : 'C:\\projectpath\\app\\main.js' , platform : 'ios' , scriptUrl : 'file:///app/main.js' , } , { existingPath : 'C:\\projectpath\\src\\main.js' , expectedResult : 'C:\\projectpath\\src\\main.js' , nsconfig : { appPath : 'src' } , platform : 'ios' , scriptUrl : 'file:///app/main.js' , } , ] ; export = tests ;