@@ -60,13 +60,13 @@ describe('model', () => {
6060 } ,
6161 }
6262 const resolved = resolveModels ( modelTypes , defaults )
63- expect ( resolved [ 0 ] . getKey ( { id : 'foo' } ) ) . toBe ( defaults . getKey ?.( { id : 'foo' } ) )
64- expect ( resolved [ 0 ] . meta ) . toEqual ( {
63+ expect ( resolved [ 0 ] ! . getKey ( { id : 'foo' } ) ) . toBe ( defaults . getKey ?.( { id : 'foo' } ) )
64+ expect ( resolved [ 0 ] ! . meta ) . toEqual ( {
6565 path : '/test' ,
6666 test : 'meow' ,
6767 } )
68- expect ( resolved [ 1 ] . getKey ( { id : 'foo' } ) ) . toBe ( ( modelTypes [ 1 ] as Model ) . getKey ?.( { id : 'foo' } ) )
69- expect ( resolved [ 1 ] . meta ) . toEqual ( {
68+ expect ( resolved [ 1 ] ! . getKey ( { id : 'foo' } ) ) . toBe ( ( modelTypes [ 1 ] as Model ) . getKey ?.( { id : 'foo' } ) )
69+ expect ( resolved [ 1 ] ! . meta ) . toEqual ( {
7070 test : 'meow' ,
7171 } )
7272 } )
@@ -119,8 +119,8 @@ describe('model', () => {
119119
120120 const resolved = resolveModels ( modelTypes )
121121
122- expect ( resolved [ 0 ] . getKey ( { id : 'foo' } ) ) . toBe ( ( modelTypes [ 0 ] as Model ) . getKey ?.( { id : 'foo' } ) )
123- expect ( resolved [ 0 ] . relations ) . toEqual ( {
122+ expect ( resolved [ 0 ] ! . getKey ( { id : 'foo' } ) ) . toBe ( ( modelTypes [ 0 ] as Model ) . getKey ?.( { id : 'foo' } ) )
123+ expect ( resolved [ 0 ] ! . relations ) . toEqual ( {
124124 test : {
125125 to : {
126126 Test2 : {
@@ -131,11 +131,11 @@ describe('model', () => {
131131 } ,
132132 } ,
133133 } )
134- expect ( resolved [ 0 ] . computed . calc ) . toBeTypeOf ( 'function' )
135- expect ( resolved [ 0 ] . fields ! . createdAt ! . parse ) . toBeTypeOf ( 'function' )
136- expect ( resolved [ 0 ] . formSchema . create [ '~standard' ] . vendor ) . toBe ( 'rstore' )
137- expect ( resolved [ 0 ] . formSchema . update [ '~standard' ] . vendor ) . toBe ( 'rstore' )
138- expect ( resolved [ 0 ] . meta ) . toEqual ( {
134+ expect ( resolved [ 0 ] ! . computed . calc ) . toBeTypeOf ( 'function' )
135+ expect ( resolved [ 0 ] ! . fields ! . createdAt ! . parse ) . toBeTypeOf ( 'function' )
136+ expect ( resolved [ 0 ] ! . formSchema . create [ '~standard' ] ! . vendor ) . toBe ( 'rstore' )
137+ expect ( resolved [ 0 ] ! . formSchema . update [ '~standard' ] ! . vendor ) . toBe ( 'rstore' )
138+ expect ( resolved [ 0 ] ! . meta ) . toEqual ( {
139139 test : 'meow' ,
140140 } )
141141 } )
@@ -164,13 +164,13 @@ describe('model', () => {
164164
165165 const resolved = resolveModels ( modelTypes , defaults )
166166
167- expect ( resolved [ 0 ] . getKey ( { id : 0 } ) ) . toBe ( defaults . getKey ?.( { id : 0 } ) )
168- expect ( resolved [ 0 ] . relations ) . toEqual ( { } )
169- expect ( resolved [ 0 ] . computed . calc ) . toBeTypeOf ( 'function' )
170- expect ( resolved [ 0 ] . fields ! . createdAt ! . parse ) . toBeTypeOf ( 'function' )
171- expect ( resolved [ 0 ] . formSchema . create [ '~standard' ] . vendor ) . toBe ( 'rstore' )
172- expect ( resolved [ 0 ] . formSchema . update [ '~standard' ] . vendor ) . toBe ( 'rstore' )
173- expect ( resolved [ 0 ] . meta ) . toEqual ( {
167+ expect ( resolved [ 0 ] ! . getKey ( { id : 0 } ) ) . toBe ( defaults . getKey ?.( { id : 0 } ) )
168+ expect ( resolved [ 0 ] ! . relations ) . toEqual ( { } )
169+ expect ( resolved [ 0 ] ! . computed . calc ) . toBeTypeOf ( 'function' )
170+ expect ( resolved [ 0 ] ! . fields ! . createdAt ! . parse ) . toBeTypeOf ( 'function' )
171+ expect ( resolved [ 0 ] ! . formSchema . create [ '~standard' ] ! . vendor ) . toBe ( 'rstore' )
172+ expect ( resolved [ 0 ] ! . formSchema . update [ '~standard' ] ! . vendor ) . toBe ( 'rstore' )
173+ expect ( resolved [ 0 ] ! . meta ) . toEqual ( {
174174 test : 'meow' ,
175175 } )
176176 } )
0 commit comments