@@ -1324,6 +1324,17 @@ describe("TriggerChatTransport", function () {
13241324 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
13251325 } ) ;
13261326
1327+ it ( "prioritizes mongolian-vowel-separator validation over protocol/query/hash/credential validation" , function ( ) {
1328+ expect ( function ( ) {
1329+ new TriggerChatTransport ( {
1330+ task : "chat-task" ,
1331+ accessToken : "pk_trigger" ,
1332+ baseURL : "ftp://user:pass@example.com/\u180Einvalid?query=1#fragment" ,
1333+ stream : "chat-stream" ,
1334+ } ) ;
1335+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
1336+ } ) ;
1337+
13271338 it ( "prioritizes query/hash validation over credential validation" , function ( ) {
13281339 expect ( function ( ) {
13291340 new TriggerChatTransport ( {
@@ -4428,6 +4439,17 @@ describe("TriggerChatTransport", function () {
44284439 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
44294440 } ) ;
44304441
4442+ it ( "prioritizes mongolian-vowel-separator validation over protocol/query/hash/credential validation in factory" , function ( ) {
4443+ expect ( function ( ) {
4444+ createTriggerChatTransport ( {
4445+ task : "chat-task" ,
4446+ accessToken : "pk_trigger" ,
4447+ baseURL : "ftp://user:pass@example.com/\u180Einvalid?query=1#fragment" ,
4448+ stream : "chat-stream" ,
4449+ } ) ;
4450+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
4451+ } ) ;
4452+
44314453 it ( "prioritizes query/hash validation over credential validation in factory" , function ( ) {
44324454 expect ( function ( ) {
44334455 createTriggerChatTransport ( {
0 commit comments