@@ -45,9 +45,13 @@ const expectedFlavorChoices = [
4545 description : "Use NativeScript without any framework" ,
4646 } ,
4747] ;
48- const templateChoises = {
48+ const templateChoices = {
4949 helloWorld : { key : "Hello World" , description : "A Hello World app" } ,
5050 blank : { key : "Blank" , description : "A blank app" } ,
51+ blankTypeScript : {
52+ key : "Blank Typescript" ,
53+ description : "A blank typescript app" ,
54+ } ,
5155 sideDrawer : {
5256 key : "SideDrawer" ,
5357 description :
@@ -59,14 +63,15 @@ const templateChoises = {
5963 } ,
6064} ;
6165const expectedTemplateChoices = [
62- templateChoises . helloWorld ,
63- templateChoises . sideDrawer ,
64- templateChoises . tabs ,
66+ templateChoices . helloWorld ,
67+ templateChoices . sideDrawer ,
68+ templateChoices . tabs ,
6569] ;
6670const expectedTemplateChoicesVue = [
67- templateChoises . blank ,
68- templateChoises . sideDrawer ,
69- templateChoises . tabs ,
71+ templateChoices . blank ,
72+ templateChoices . blankTypeScript ,
73+ templateChoices . sideDrawer ,
74+ templateChoices . tabs ,
7075] ;
7176
7277class ProjectServiceMock implements IProjectService {
@@ -202,6 +207,27 @@ describe("Project commands tests", () => {
202207 assert . isTrue ( createProjectCalledWithForce ) ;
203208 } ) ;
204209
210+ it ( "should not fail when using only --vue." , async ( ) => {
211+ options . vue = true ;
212+
213+ await createProjectCommand . execute ( dummyArgs ) ;
214+
215+ assert . isTrue ( isProjectCreated ) ;
216+ assert . equal ( validateProjectCallsCount , 1 ) ;
217+ assert . isTrue ( createProjectCalledWithForce ) ;
218+ } ) ;
219+
220+ it ( "should not fail when using --vue and --tsc." , async ( ) => {
221+ options . vue = true ;
222+ options . tsc = true ;
223+
224+ await createProjectCommand . execute ( dummyArgs ) ;
225+
226+ assert . isTrue ( isProjectCreated ) ;
227+ assert . equal ( validateProjectCallsCount , 1 ) ;
228+ assert . isTrue ( createProjectCalledWithForce ) ;
229+ } ) ;
230+
205231 it ( "should not fail when using only --tsc." , async ( ) => {
206232 options . tsc = true ;
207233
0 commit comments