File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function Table(arg: any): void|Function {
2020
2121function annotate ( target : any , options : IDefineOptions = { } ) : void {
2222
23- if ( ! options . tableName ) options . tableName = target . name ;
23+ if ( options . freezeTableName === undefined ) options . freezeTableName = true ;
2424
2525 options . instanceMethods = target . prototype ;
2626 options . classMethods = target ;
Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ describe('table_column', () => {
9595 expect ( shoeDefineOptions ) . not . to . be . undefined ;
9696 } ) ;
9797
98- it ( 'should have automatically inferred tableName ' , ( ) => {
98+ it ( 'should set freezeTableName to true ' , ( ) => {
9999 const userDefineOptions = getOptions ( User . prototype ) ;
100100
101- expect ( userDefineOptions ) . to . have . property ( 'tableName ' , User . name ) ;
101+ expect ( userDefineOptions ) . to . have . property ( 'freezeTableName ' , true ) ;
102102 } ) ;
103103
104104 it ( 'should have explicitly defined tableName' , ( ) => {
You can’t perform that action at this time.
0 commit comments