Skip to content

Commit

Permalink
update sandbox endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Jul 5, 2023
1 parent 36cab68 commit ea38b89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/chat-core",
"version": "0.5.2",
"version": "0.5.3",
"description": "Typescript Networking Library for the Yext Chat API",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/infra/EndpointsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class EndpointsFactory {
case Region.US:
switch (env) {
case Environment.SANDBOX:
return "liveapi-sbx.yext.com";
return "liveapi-sandbox.yext.com";
default:
return "liveapi.yext.com";
}
Expand Down
2 changes: 1 addition & 1 deletion test-browser-esm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/infra/EndPointFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ it("provides proper endpoint for custom env", () => {
env: "SANDBOX",
});
expect(endpoints).toEqual({
chat: `https://liveapi-sbx.yext.com/v2/accounts/me/chat/my-bot/message`,
chatStream: `https://liveapi-sbx.yext.com/v2/accounts/me/chat/my-bot/message/streaming`,
chat: `https://liveapi-sandbox.yext.com/v2/accounts/me/chat/my-bot/message`,
chatStream: `https://liveapi-sandbox.yext.com/v2/accounts/me/chat/my-bot/message/streaming`,
});
});

Expand Down

0 comments on commit ea38b89

Please sign in to comment.