File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,16 @@ describe("TriggerChatTransport", function () {
620620 } ) . toThrowError ( "baseURL must not be empty" ) ;
621621 } ) ;
622622
623+ it ( "uses default baseURL when omitted" , function ( ) {
624+ expect ( function ( ) {
625+ new TriggerChatTransport ( {
626+ task : "chat-task" ,
627+ accessToken : "pk_trigger" ,
628+ stream : "chat-stream" ,
629+ } ) ;
630+ } ) . not . toThrow ( ) ;
631+ } ) ;
632+
623633 it ( "throws when baseURL is not a valid absolute URL" , function ( ) {
624634 expect ( function ( ) {
625635 new TriggerChatTransport ( {
@@ -3118,6 +3128,16 @@ describe("TriggerChatTransport", function () {
31183128 } ) . toThrowError ( "baseURL must not be empty" ) ;
31193129 } ) ;
31203130
3131+ it ( "uses default baseURL in factory when omitted" , function ( ) {
3132+ expect ( function ( ) {
3133+ createTriggerChatTransport ( {
3134+ task : "chat-task" ,
3135+ accessToken : "pk_trigger" ,
3136+ stream : "chat-stream" ,
3137+ } ) ;
3138+ } ) . not . toThrow ( ) ;
3139+ } ) ;
3140+
31213141 it ( "throws from factory when baseURL is not a valid absolute URL" , function ( ) {
31223142 expect ( function ( ) {
31233143 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments