@@ -18,15 +18,14 @@ const expectedFlavorChoices = [
1818 { key : "Plain TypeScript" , description : "Learn more at https://nativescript.org/typescript" } ,
1919 { key : "Plain JavaScript" , description : "Use NativeScript without any framework" }
2020] ;
21- const expectedTemplateChoices = [
22- { key : "Hello World" , description : "A Hello World app" } ,
23- { key : "SideDrawer" , description : "An app with pre-built pages that uses a drawer for navigation" } ,
24- { key : "Tabs" , description : "An app with pre-built pages that uses tabs for navigation" }
25- ] ;
26- const expectedTemplateChoicesVue = [
27- { key : "Blank" , description : "A blank app" } ,
28- { key : "SideDrawer" , description : "An app with pre-built pages that uses a drawer for navigation" }
29- ] ;
21+ const templateChoises = {
22+ helloWorld : { key : "Hello World" , description : "A Hello World app" } ,
23+ blank : { key : "Blank" , description : "A blank app" } ,
24+ sideDrawer : { key : "SideDrawer" , description : "An app with pre-built pages that uses a drawer for navigation" } ,
25+ tabs : { key : "Tabs" , description : "An app with pre-built pages that uses tabs for navigation" }
26+ } ;
27+ const expectedTemplateChoices = [ templateChoises . helloWorld , templateChoises . sideDrawer , templateChoises . tabs ] ;
28+ const expectedTemplateChoicesVue = [ templateChoises . blank , templateChoises . sideDrawer , templateChoises . tabs ] ;
3029
3130class ProjectServiceMock implements IProjectService {
3231 async validateProjectName ( opts : { projectName : string , force : boolean , pathToProject : string } ) : Promise < string > {
0 commit comments