Skip to content

Commit b9eb04c

Browse files
Cover factory acceptance for uppercase HTTP baseURL
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent be5487f commit b9eb04c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/ai/src/chatTransport.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,6 +3200,17 @@ describe("TriggerChatTransport", function () {
32003200
}).not.toThrow();
32013201
});
32023202

3203+
it("accepts uppercase http protocol from factory without throwing", function () {
3204+
expect(function () {
3205+
createTriggerChatTransport({
3206+
task: "chat-task",
3207+
accessToken: "pk_trigger",
3208+
baseURL: "HTTP://api.trigger.dev/custom-prefix",
3209+
stream: "chat-stream",
3210+
});
3211+
}).not.toThrow();
3212+
});
3213+
32033214
it("continues streaming when onTriggeredRun callback throws", async function () {
32043215
let callbackCalled = false;
32053216
const errors: TriggerChatTransportError[] = [];

0 commit comments

Comments
 (0)