@@ -50,12 +50,6 @@ const disableCamelCaseOptions = {
5050const missingDataSourceOptions = {
5151 dataSource : 'foo' ,
5252} ;
53- const specificmodelsOptions = {
54- models : 'Test' ,
55- dataSource : 'mem' ,
56- views : false ,
57- disableCamelCase : true ,
58- } ;
5953const optionalIdOptions = {
6054 ...baseOptions ,
6155 optionalId : true ,
@@ -69,7 +63,12 @@ const relationsSetTrue = {
6963 ...baseOptions ,
7064 relations : true ,
7165} ;
72-
66+ const specificModelsOptions = {
67+ models : 'Test' ,
68+ dataSource : 'mem' ,
69+ views : false ,
70+ disableCamelCase : true ,
71+ } ;
7372// Expected File Name
7473const defaultExpectedTestModel = path . join (
7574 sandbox . path ,
@@ -87,7 +86,7 @@ const defaultExpectedNamingModel = path.join(
8786 sandbox . path ,
8887 'src/models/naming.model.ts' ,
8988) ;
90- const AppointmentModel = path . join (
89+ const appointmentModel = path . join (
9190 sandbox . path ,
9291 'src/models/appointment.model.ts' ,
9392) ;
@@ -215,8 +214,8 @@ describe('lb4 discover integration', () => {
215214 } ) ,
216215 )
217216 . withOptions ( relationsSetTrue ) ;
218- assert . file ( AppointmentModel ) ;
219- expectFileToMatchSnapshot ( AppointmentModel ) ;
217+ assert . file ( appointmentModel ) ;
218+ expectFileToMatchSnapshot ( appointmentModel ) ;
220219 } ) ;
221220 } ) ;
222221 it ( 'generates specific models without prompts using --models' , async ( ) => {
@@ -227,7 +226,7 @@ describe('lb4 discover integration', () => {
227226 additionalFiles : SANDBOX_FILES ,
228227 } ) ,
229228 )
230- . withOptions ( specificmodelsOptions ) ;
229+ . withOptions ( specificModelsOptions ) ;
231230
232231 basicModelFileChecks ( defaultExpectedTestModel , defaultExpectedIndexFile ) ;
233232 assert . file ( defaultExpectedTestModel ) ;
0 commit comments