@@ -40,7 +40,7 @@ describe('Student Object Spec Compliance', () => {
4040 expect ( Student . fields . program . type ) . toBe ( 'text' ) ;
4141 expect ( Student . fields . gpa . type ) . toBe ( 'number' ) ;
4242 expect ( Student . fields . advisor_id . type ) . toBe ( 'lookup' ) ;
43- expect ( Student . fields . graduation_date . type ) . toBe ( 'text ' ) ;
43+ expect ( Student . fields . graduation_date . type ) . toBe ( 'date ' ) ;
4444 expect ( Student . fields . student_id_number . type ) . toBe ( 'text' ) ;
4545 expect ( Student . fields . phone . type ) . toBe ( 'text' ) ;
4646 expect ( Student . fields . major . type ) . toBe ( 'text' ) ;
@@ -110,7 +110,7 @@ describe('Enrollment Object Spec Compliance', () => {
110110 expect ( Enrollment . fields . status . type ) . toBe ( 'select' ) ;
111111 expect ( Enrollment . fields . grade . type ) . toBe ( 'text' ) ;
112112 expect ( Enrollment . fields . credits . type ) . toBe ( 'number' ) ;
113- expect ( Enrollment . fields . enrollment_date . type ) . toBe ( 'text ' ) ;
113+ expect ( Enrollment . fields . enrollment_date . type ) . toBe ( 'date ' ) ;
114114 } ) ;
115115
116116 it ( 'should have student_id master_detail referencing student' , ( ) => {
@@ -239,7 +239,7 @@ describe('Alumni Object Spec Compliance', () => {
239239 expect ( Alumni . fields . job_title . type ) . toBe ( 'text' ) ;
240240 expect ( Alumni . fields . giving_history . type ) . toBe ( 'number' ) ;
241241 expect ( Alumni . fields . engagement_score . type ) . toBe ( 'number' ) ;
242- expect ( Alumni . fields . email . type ) . toBe ( 'text ' ) ;
242+ expect ( Alumni . fields . email . type ) . toBe ( 'email ' ) ;
243243 expect ( Alumni . fields . location . type ) . toBe ( 'text' ) ;
244244 } ) ;
245245
@@ -284,7 +284,7 @@ describe('Scholarship Object Spec Compliance', () => {
284284 expect ( Scholarship . fields . name . type ) . toBe ( 'text' ) ;
285285 expect ( Scholarship . fields . amount . type ) . toBe ( 'number' ) ;
286286 expect ( Scholarship . fields . criteria . type ) . toBe ( 'textarea' ) ;
287- expect ( Scholarship . fields . application_deadline . type ) . toBe ( 'text ' ) ;
287+ expect ( Scholarship . fields . application_deadline . type ) . toBe ( 'date ' ) ;
288288 expect ( Scholarship . fields . recipients . type ) . toBe ( 'number' ) ;
289289 expect ( Scholarship . fields . fund_balance . type ) . toBe ( 'number' ) ;
290290 expect ( Scholarship . fields . status . type ) . toBe ( 'select' ) ;
@@ -339,16 +339,16 @@ describe('ApplicationForm Object Spec Compliance', () => {
339339
340340 it ( 'should have correct field types' , ( ) => {
341341 expect ( ApplicationForm . fields . applicant_name . type ) . toBe ( 'text' ) ;
342- expect ( ApplicationForm . fields . email . type ) . toBe ( 'text ' ) ;
342+ expect ( ApplicationForm . fields . email . type ) . toBe ( 'email ' ) ;
343343 expect ( ApplicationForm . fields . program . type ) . toBe ( 'text' ) ;
344344 expect ( ApplicationForm . fields . status . type ) . toBe ( 'select' ) ;
345345 expect ( ApplicationForm . fields . test_scores . type ) . toBe ( 'textarea' ) ;
346346 expect ( ApplicationForm . fields . gpa . type ) . toBe ( 'number' ) ;
347347 expect ( ApplicationForm . fields . essays . type ) . toBe ( 'textarea' ) ;
348348 expect ( ApplicationForm . fields . recommendations . type ) . toBe ( 'number' ) ;
349349 expect ( ApplicationForm . fields . decision . type ) . toBe ( 'select' ) ;
350- expect ( ApplicationForm . fields . application_date . type ) . toBe ( 'text ' ) ;
351- expect ( ApplicationForm . fields . decision_date . type ) . toBe ( 'text ' ) ;
350+ expect ( ApplicationForm . fields . application_date . type ) . toBe ( 'date ' ) ;
351+ expect ( ApplicationForm . fields . decision_date . type ) . toBe ( 'date ' ) ;
352352 expect ( ApplicationForm . fields . notes . type ) . toBe ( 'textarea' ) ;
353353 } ) ;
354354
@@ -410,7 +410,7 @@ describe('CampusEvent Object Spec Compliance', () => {
410410 it ( 'should have correct field types' , ( ) => {
411411 expect ( CampusEvent . fields . name . type ) . toBe ( 'text' ) ;
412412 expect ( CampusEvent . fields . event_type . type ) . toBe ( 'select' ) ;
413- expect ( CampusEvent . fields . event_date . type ) . toBe ( 'text ' ) ;
413+ expect ( CampusEvent . fields . event_date . type ) . toBe ( 'date ' ) ;
414414 expect ( CampusEvent . fields . location . type ) . toBe ( 'text' ) ;
415415 expect ( CampusEvent . fields . target_audience . type ) . toBe ( 'select' ) ;
416416 expect ( CampusEvent . fields . rsvp_count . type ) . toBe ( 'number' ) ;
0 commit comments