@@ -67,8 +67,10 @@ describe('buildConfigDefinitions', () => {
6767 it ( 'should return moduleOrObjectParser for Adapter GenericTypeAnnotation' , ( ) => {
6868 const mockElement = {
6969 type : 'GenericTypeAnnotation' ,
70- id : {
71- name : 'Adapter' ,
70+ typeAnnotation : {
71+ id : {
72+ name : 'Adapter' ,
73+ } ,
7274 } ,
7375 } ;
7476
@@ -82,8 +84,10 @@ describe('buildConfigDefinitions', () => {
8284 it ( 'should return numberOrBooleanParser for NumberOrBoolean GenericTypeAnnotation' , ( ) => {
8385 const mockElement = {
8486 type : 'GenericTypeAnnotation' ,
85- id : {
86- name : 'NumberOrBoolean' ,
87+ typeAnnotation : {
88+ id : {
89+ name : 'NumberOrBoolean' ,
90+ } ,
8791 } ,
8892 } ;
8993
@@ -98,8 +102,10 @@ describe('buildConfigDefinitions', () => {
98102 const mockElement = {
99103 type : 'GenericTypeAnnotation' ,
100104 name : 'testString' ,
101- id : {
102- name : 'NumberOrString' ,
105+ typeAnnotation : {
106+ id : {
107+ name : 'NumberOrString' ,
108+ } ,
103109 } ,
104110 } ;
105111
@@ -113,8 +119,10 @@ describe('buildConfigDefinitions', () => {
113119 it ( 'should return arrayParser for StringOrStringArray GenericTypeAnnotation' , ( ) => {
114120 const mockElement = {
115121 type : 'GenericTypeAnnotation' ,
116- id : {
117- name : 'StringOrStringArray' ,
122+ typeAnnotation : {
123+ id : {
124+ name : 'StringOrStringArray' ,
125+ } ,
118126 } ,
119127 } ;
120128
@@ -128,8 +136,10 @@ describe('buildConfigDefinitions', () => {
128136 it ( 'should return objectParser for unknown GenericTypeAnnotation' , ( ) => {
129137 const mockElement = {
130138 type : 'GenericTypeAnnotation' ,
131- id : {
132- name : 'UnknownType' ,
139+ typeAnnotation : {
140+ id : {
141+ name : 'UnknownType' ,
142+ } ,
133143 } ,
134144 } ;
135145
0 commit comments