@@ -26,44 +26,48 @@ describe('CLI Integration Tests', () => {
2626 } )
2727
2828 it ( 'should build the basic templated node runtime project' , async ( ) => {
29+ let update = updater ( 'Create' )
2930 await create ( {
3031 folder : tmp ,
3132 install : false ,
3233 runtime : 'node.js' ,
33- update : updater ( 'Create' ) ,
34+ update,
3435 } )
3536 assert . ok ( existsSync ( join ( tmp , 'src' , 'http' , 'get-index' , 'index.mjs' ) ) , 'src/http/get-index/index.mjs created' )
3637 assert . ok ( readFileSync ( join ( tmp , 'app.arc' ) , 'utf-8' ) . match ( / r u n t i m e n o d e / ) , '"runtime node" present somewhere in manifest' )
3738 } )
3839
3940 it ( 'should build the basic templated deno runtime project' , async ( ) => {
41+ let update = updater ( 'Create' )
4042 await create ( {
4143 folder : tmp ,
4244 install : false ,
4345 runtime : 'deno' ,
44- update : updater ( 'Create' ) ,
46+ update,
4547 } )
4648 assert . ok ( existsSync ( join ( tmp , 'src' , 'http' , 'get-index' , 'mod.ts' ) ) , 'src/http/get-index/mod.ts created' )
4749 assert . ok ( readFileSync ( join ( tmp , 'app.arc' ) , 'utf-8' ) . match ( / r u n t i m e d e n o / ) , '"runtime deno" present somewhere in manifest' )
4850 } )
4951
5052 it ( 'should build the basic templated python runtime project' , async ( ) => {
53+ let update = updater ( 'Create' )
5154 await create ( {
5255 folder : tmp ,
5356 install : false ,
5457 runtime : 'python' ,
55- update : updater ( 'Create' ) ,
58+ update,
5659 } )
5760 assert . ok ( existsSync ( join ( tmp , 'src' , 'http' , 'get-index' , 'lambda.py' ) ) , 'src/http/get-index/lambda.py created' )
5861 assert . ok ( readFileSync ( join ( tmp , 'app.arc' ) , 'utf-8' ) . match ( / r u n t i m e p y t h o n / ) , '"runtime python" present somewhere in manifest' )
5962 } )
6063
6164 it ( 'should build the basic templated ruby runtime project' , async ( ) => {
65+ let update = updater ( 'Create' )
6266 await create ( {
6367 folder : tmp ,
6468 install : false ,
6569 runtime : 'ruby' ,
66- update : updater ( 'Create' ) ,
70+ update,
6771 } )
6872 assert . ok ( existsSync ( join ( tmp , 'src' , 'http' , 'get-index' , 'lambda.rb' ) ) , 'src/http/get-index/lambda.rb created' )
6973 assert . ok ( readFileSync ( join ( tmp , 'app.arc' ) , 'utf-8' ) . match ( / r u n t i m e r u b y / ) , '"runtime ruby" present somewhere in manifest' )
0 commit comments