Skip to content

Commit

Permalink
feat(arcgis-rest-portal): v4 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella committed Jan 11, 2023
1 parent a9e7352 commit 6332675
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
IUserProperties,
getUserProperties,
setUserProperties
} from "../../src/users/get-user-properties";
import { UserPropertiesResponse } from "../mocks/users/user-properties";
import * as fetchMock from "fetch-mock";
} from "../../src/users/get-user-properties.js";
import { UserPropertiesResponse } from "../mocks/users/user-properties.js";
import fetchMock from "fetch-mock";

const TOMORROW = (function () {
const now = new Date();
Expand All @@ -19,7 +19,7 @@ const TOMORROW = (function () {
describe("users", () => {
afterEach(fetchMock.restore);

describe("getUserProperties", () => {
describe("user properties", () => {
const session = new ArcGISIdentityManager({
username: "c@sey",
password: "123456",
Expand Down Expand Up @@ -60,7 +60,7 @@ describe("users", () => {
expect(fetchMock.called()).toEqual(true);
const [url, options]: [string, RequestInit] = fetchMock.lastCall("*");
expect(url).toEqual(
"https://myorg.maps.arcgis.com/sharing/rest/community/users/c%40sey/properties?f=json&token=fake-token"
"https://myorg.maps.arcgis.com/sharing/rest/community/users/c%40sey/setProperties"
);
expect(options.method).toBe("POST");
done();
Expand Down

0 comments on commit 6332675

Please sign in to comment.