@@ -63,7 +63,7 @@ function fullNode(): BookingNode {
6363 id : "o_1" ,
6464 promoCodes : [ { code : "SUMMER" } ] ,
6565 channelSnapshot : { id : "ch-1" , name : "Acme" , agent : { name : "Jane" } } ,
66- initialQuote : { source : { actor : { app : "WIDGET" } } } ,
66+ initialQuote : { source : { actor : { app : "WIDGET" , name : "Acme Widget" } } } ,
6767 } ,
6868 questionAnswers : [
6969 {
@@ -113,6 +113,7 @@ describe("fromBookingNode", () => {
113113 expect ( booking . source ) . toBe ( "website" ) ;
114114 expect ( booking . sourceApp ) . toBe ( "WIDGET" ) ;
115115 expect ( booking . sourceDescription ) . toBe ( "Website Booking Flow" ) ;
116+ expect ( booking . sourceDetails ) . toBe ( "Acme Widget" ) ;
116117 expect ( booking . customerName ) . toBe ( "Ada" ) ;
117118 expect ( booking . isRentalProduct ) . toBe ( true ) ;
118119 expect ( booking . timeslotId ) . toBe ( "legacy-ts" ) ;
@@ -168,6 +169,7 @@ describe("fromBookingNode", () => {
168169 source : "unknown" ,
169170 sourceApp : "unknown" ,
170171 sourceDescription : "unknown" ,
172+ sourceDetails : null ,
171173 customerName : "" ,
172174 customerEmail : null ,
173175 productId : "unknown" ,
@@ -203,6 +205,7 @@ describe("fromBookingNode", () => {
203205 expect ( booking . source ) . toBe ( "unknown" ) ;
204206 expect ( booking . sourceDescription ) . toBe ( "unknown" ) ;
205207 expect ( booking . sourceApp ) . toBe ( "NOT_A_SOURCE" ) ;
208+ expect ( booking . sourceDetails ) . toBe ( null ) ;
206209 expect ( booking . isRentalProduct ) . toBe ( false ) ;
207210 } ) ;
208211
0 commit comments