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 {
20
20
21
21
function annotate ( target : any , options : IDefineOptions = { } ) : void {
22
22
23
- if ( ! options . tableName ) options . tableName = target . name ;
23
+ if ( options . freezeTableName === undefined ) options . freezeTableName = true ;
24
24
25
25
options . instanceMethods = target . prototype ;
26
26
options . classMethods = target ;
Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ describe('table_column', () => {
95
95
expect ( shoeDefineOptions ) . not . to . be . undefined ;
96
96
} ) ;
97
97
98
- it ( 'should have automatically inferred tableName ' , ( ) => {
98
+ it ( 'should set freezeTableName to true ' , ( ) => {
99
99
const userDefineOptions = getOptions ( User . prototype ) ;
100
100
101
- expect ( userDefineOptions ) . to . have . property ( 'tableName ' , User . name ) ;
101
+ expect ( userDefineOptions ) . to . have . property ( 'freezeTableName ' , true ) ;
102
102
} ) ;
103
103
104
104
it ( 'should have explicitly defined tableName' , ( ) => {
You can’t perform that action at this time.
0 commit comments