@@ -45,8 +45,10 @@ describe('static autoloader generation', () => {
4545
4646 expect ( code ) . toContain ( "import _deploy from '/project/commands/deploy/index.ts'" )
4747 expect ( code ) . toContain ( "import _deploy_preview from '/project/commands/deploy/preview.ts'" )
48- expect ( code ) . toContain ( "import _deploy_production from '/project/commands/deploy/production.ts'" )
49- expect ( code ) . toContain ( "withTag({ ..._deploy, commands:" )
48+ expect ( code ) . toContain (
49+ "import _deploy_production from '/project/commands/deploy/production.ts'"
50+ )
51+ expect ( code ) . toContain ( 'withTag({ ..._deploy, commands:' )
5052 expect ( code ) . toContain ( "'preview': _deploy_preview" )
5153 expect ( code ) . toContain ( "'production': _deploy_production" )
5254 expect ( code ) . toContain ( "}, 'Command')" )
@@ -57,9 +59,7 @@ describe('static autoloader generation', () => {
5759 dirs : [
5860 {
5961 dirs : [ ] ,
60- files : [
61- { filePath : '/project/commands/auth/login.ts' , name : 'login' } ,
62- ] ,
62+ files : [ { filePath : '/project/commands/auth/login.ts' , name : 'login' } ] ,
6363 name : 'auth' ,
6464 } ,
6565 ] ,
@@ -77,9 +77,7 @@ describe('static autoloader generation', () => {
7777 it ( 'should import withTag from the provided tag module path' , ( ) => {
7878 const scan : ScanResult = {
7979 dirs : [ ] ,
80- files : [
81- { filePath : '/project/commands/status.ts' , name : 'status' } ,
82- ] ,
80+ files : [ { filePath : '/project/commands/status.ts' , name : 'status' } ] ,
8381 }
8482
8583 const code = generateStaticAutoloader ( { scan, tagModulePath : TAG_PATH } )
@@ -94,9 +92,7 @@ describe('static autoloader generation', () => {
9492 dirs : [
9593 {
9694 dirs : [ ] ,
97- files : [
98- { filePath : '/project/commands/deploy/cloud/aws.ts' , name : 'aws' } ,
99- ] ,
95+ files : [ { filePath : '/project/commands/deploy/cloud/aws.ts' , name : 'aws' } ] ,
10096 name : 'cloud' ,
10197 } ,
10298 ] ,
@@ -133,16 +129,12 @@ describe('static autoloader generation', () => {
133129 dirs : [
134130 {
135131 dirs : [ ] ,
136- files : [
137- { filePath : '/project/commands/deploy/preview.ts' , name : 'preview' } ,
138- ] ,
132+ files : [ { filePath : '/project/commands/deploy/preview.ts' , name : 'preview' } ] ,
139133 index : '/project/commands/deploy/index.ts' ,
140134 name : 'deploy' ,
141135 } ,
142136 ] ,
143- files : [
144- { filePath : '/project/commands/status.ts' , name : 'status' } ,
145- ] ,
137+ files : [ { filePath : '/project/commands/status.ts' , name : 'status' } ] ,
146138 }
147139
148140 const code = generateStaticAutoloader ( { scan, tagModulePath : TAG_PATH } )
@@ -157,9 +149,7 @@ describe('autoloader parts generation', () => {
157149 it ( 'should use dynamic imports inside autoload function' , ( ) => {
158150 const scan : ScanResult = {
159151 dirs : [ ] ,
160- files : [
161- { filePath : '/project/commands/status.ts' , name : 'status' } ,
162- ] ,
152+ files : [ { filePath : '/project/commands/status.ts' , name : 'status' } ] ,
163153 }
164154
165155 const parts = generateAutoloaderParts ( { scan, tagModulePath : TAG_PATH } )
@@ -175,9 +165,7 @@ describe('autoloader parts generation', () => {
175165 it ( 'should include region markers' , ( ) => {
176166 const scan : ScanResult = {
177167 dirs : [ ] ,
178- files : [
179- { filePath : '/project/commands/status.ts' , name : 'status' } ,
180- ] ,
168+ files : [ { filePath : '/project/commands/status.ts' , name : 'status' } ] ,
181169 }
182170
183171 const parts = generateAutoloaderParts ( { scan, tagModulePath : TAG_PATH } )
@@ -203,9 +191,7 @@ describe('autoloader parts generation', () => {
203191 dirs : [
204192 {
205193 dirs : [ ] ,
206- files : [
207- { filePath : '/project/commands/auth/login.ts' , name : 'login' } ,
208- ] ,
194+ files : [ { filePath : '/project/commands/auth/login.ts' , name : 'login' } ] ,
209195 name : 'auth' ,
210196 } ,
211197 ] ,
0 commit comments