@@ -20,7 +20,7 @@ describe('Table creation', ()=> {
2020 expect ( TestTable . Table . sortKey ) . toBeNull ( )
2121 expect ( TestTable . Table . entityField ) . toBe ( '_et' )
2222 expect ( TestTable . Table . indexes ) . toEqual ( { } )
23- expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' } } )
23+ expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' , mappings : { } } } )
2424 expect ( TestTable . autoExecute ) . toBe ( true )
2525 expect ( TestTable . autoParse ) . toBe ( true )
2626 expect ( TestTable . entities ) . toEqual ( [ ] )
@@ -43,7 +43,7 @@ describe('Table creation', ()=> {
4343 expect ( TestTable . Table . sortKey ) . toBe ( 'sk' )
4444 expect ( TestTable . Table . entityField ) . toBe ( 'entity' )
4545 expect ( TestTable . Table . indexes ) . toEqual ( { } )
46- expect ( TestTable . Table . attributes ) . toEqual ( { entity : { type : 'string' } } )
46+ expect ( TestTable . Table . attributes ) . toEqual ( { entity : { type : 'string' , mappings : { } } } )
4747 expect ( TestTable . autoExecute ) . toBe ( false )
4848 expect ( TestTable . autoParse ) . toBe ( false )
4949 expect ( TestTable . entities ) . toEqual ( [ ] )
@@ -79,16 +79,16 @@ describe('Table creation', ()=> {
7979
8080 // Check attribute parsing
8181 expect ( TestTable . Table . attributes ) . toEqual ( {
82- stringAttr : { type : 'string' } ,
83- numberAttr : { type : 'number' } ,
84- binaryAttr : { type : 'binary' } ,
85- booleanAttr : { type : 'boolean' } ,
86- listAttr : { type : 'list' } ,
87- mapAttr : { type : 'map' } ,
88- stringSetAttr : { type : 'set' } ,
89- numberSetAttr : { type : 'set' , setType : 'number' } ,
90- binarySetAttr : { type : 'set' , setType : 'binary' } ,
91- _et : { type : 'string' }
82+ stringAttr : { type : 'string' , mappings : { } } ,
83+ numberAttr : { type : 'number' , mappings : { } } ,
84+ binaryAttr : { type : 'binary' , mappings : { } } ,
85+ booleanAttr : { type : 'boolean' , mappings : { } } ,
86+ listAttr : { type : 'list' , mappings : { } } ,
87+ mapAttr : { type : 'map' , mappings : { } } ,
88+ stringSetAttr : { type : 'set' , mappings : { } } ,
89+ numberSetAttr : { type : 'set' , setType : 'number' , mappings : { } } ,
90+ binarySetAttr : { type : 'set' , setType : 'binary' , mappings : { } } ,
91+ _et : { type : 'string' , mappings : { } }
9292 } )
9393 } ) // end table w/ attributes
9494
@@ -114,7 +114,7 @@ describe('Table creation', ()=> {
114114 expect ( TestTable . Table . partitionKey ) . toBe ( 'pk' )
115115 expect ( TestTable . Table . sortKey ) . toBeNull ( )
116116 expect ( TestTable . Table . entityField ) . toBe ( '_et' )
117- expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' } } )
117+ expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' , mappings : { } } } )
118118 expect ( TestTable . autoExecute ) . toBe ( true )
119119 expect ( TestTable . autoParse ) . toBe ( true )
120120 expect ( TestTable . entities ) . toEqual ( [ ] )
@@ -143,7 +143,7 @@ describe('Table creation', ()=> {
143143 expect ( TestTable . Table . sortKey ) . toBeNull ( )
144144 expect ( TestTable . Table . entityField ) . toBe ( '_et' )
145145 expect ( TestTable . Table . indexes ) . toEqual ( { } )
146- expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' } } )
146+ expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' , mappings : { } } } )
147147 expect ( TestTable . autoExecute ) . toBe ( true )
148148 expect ( TestTable . autoParse ) . toBe ( true )
149149 expect ( TestTable . entities ) . toEqual ( [ ] )
@@ -166,7 +166,7 @@ describe('Table creation', ()=> {
166166 expect ( TestTable . Table . sortKey ) . toBeNull ( )
167167 expect ( TestTable . Table . entityField ) . toBe ( '_et' )
168168 expect ( TestTable . Table . indexes ) . toEqual ( { } )
169- expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' } } )
169+ expect ( TestTable . Table . attributes ) . toEqual ( { _et : { type : 'string' , mappings : { } } } )
170170 expect ( TestTable . autoExecute ) . toBe ( true )
171171 expect ( TestTable . autoParse ) . toBe ( true )
172172 expect ( TestTable . entities ) . toEqual ( [ ] )
0 commit comments