File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -742,6 +742,17 @@ describe("TriggerChatTransport", function () {
742742 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
743743 } ) ;
744744
745+ it ( "throws when baseURL contains internal non-breaking-space characters" , function ( ) {
746+ expect ( function ( ) {
747+ new TriggerChatTransport ( {
748+ task : "chat-task" ,
749+ accessToken : "pk_trigger" ,
750+ baseURL : "https://api.trigger.dev/\u00A0internal" ,
751+ stream : "chat-stream" ,
752+ } ) ;
753+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
754+ } ) ;
755+
745756 it ( "throws when baseURL contains internal tab characters" , function ( ) {
746757 expect ( function ( ) {
747758 new TriggerChatTransport ( {
@@ -3470,6 +3481,17 @@ describe("TriggerChatTransport", function () {
34703481 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
34713482 } ) ;
34723483
3484+ it ( "throws from factory when baseURL contains internal non-breaking-space characters" , function ( ) {
3485+ expect ( function ( ) {
3486+ createTriggerChatTransport ( {
3487+ task : "chat-task" ,
3488+ accessToken : "pk_trigger" ,
3489+ baseURL : "https://api.trigger.dev/\u00A0internal" ,
3490+ stream : "chat-stream" ,
3491+ } ) ;
3492+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
3493+ } ) ;
3494+
34733495 it ( "throws from factory when baseURL contains internal tab characters" , function ( ) {
34743496 expect ( function ( ) {
34753497 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments