Skip to content

Commit

Permalink
fix(arcgis-rest-request): pass referer
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Jan 9, 2023
1 parent 57de1f6 commit 81c2de8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3318,7 +3318,7 @@ describe("ArcGISIdentityManager", () => {
});
});

it("should initialize a session from a username and password and pass a referer", () => {
it("should initialize a session from a username and password and pass a referer", (done) => {
// we intentionally only mock one response
fetchMock.once(
"https://www.arcgis.com/sharing/rest/community/self?f=json&token=token",
Expand All @@ -3339,9 +3339,9 @@ describe("ArcGISIdentityManager", () => {
username: "c@sey",
password: "123456",
referer: "testreferer"
}).then((session) => {
}).then(() => {
const [url, options]: [string, RequestInit] = fetchMock.lastCall(
"https://fakeserver.com/arcgis/tokens/generateToken"
"https://www.arcgis.com/sharing/rest/generateToken"
);

if (isNode) {
Expand Down

0 comments on commit 81c2de8

Please sign in to comment.