Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed May 22, 2024
1 parent 07d9099 commit 076bcfc
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions src/api/v2/values/values-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-int-value-request-expanded.json");

Expand Down Expand Up @@ -676,7 +676,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-decimal-value-request-expanded.json");

Expand Down Expand Up @@ -719,7 +719,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-color-value-request-expanded.json");

Expand Down Expand Up @@ -763,7 +763,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-interval-value-request-expanded.json");

Expand Down Expand Up @@ -806,7 +806,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-boolean-value-request-expanded.json");

Expand Down Expand Up @@ -849,7 +849,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-list-value-request-expanded.json");

Expand Down Expand Up @@ -892,7 +892,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-link-value-request-expanded.json");

Expand Down Expand Up @@ -935,7 +935,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-uri-value-request-expanded.json");

Expand Down Expand Up @@ -978,7 +978,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-text-value-without-standoff-request-expanded.json");

Expand Down Expand Up @@ -1022,7 +1022,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-text-value-with-standoff-request-expanded.json");

Expand Down Expand Up @@ -1073,7 +1073,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-date-value-with-day-precision-request-expanded.json");

Expand Down Expand Up @@ -1122,7 +1122,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-date-value-with-month-precision-request-expanded.json");

Expand Down Expand Up @@ -1169,7 +1169,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-date-value-with-year-precision-request-expanded.json");

Expand Down Expand Up @@ -1212,7 +1212,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-still-image-file-value-request-expanded.json");

Expand Down Expand Up @@ -1255,7 +1255,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-geometry-value-request-expanded.json");

Expand Down Expand Up @@ -1298,7 +1298,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-geoname-value-request-expanded.json");

Expand Down Expand Up @@ -1341,7 +1341,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-time-value-request-expanded.json");

Expand Down Expand Up @@ -1385,7 +1385,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-text-value-with-comment-request-expanded.json");

Expand Down Expand Up @@ -1429,7 +1429,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-int-value-with-custom-permissions-request-expanded.json");

Expand Down Expand Up @@ -1474,7 +1474,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("PUT");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/update-int-value-permissions-only-request-expanded.json");

Expand Down Expand Up @@ -1540,7 +1540,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-int-value-request-expanded.json");

Expand Down Expand Up @@ -1581,7 +1581,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-decimal-value-request-expanded.json");

Expand Down Expand Up @@ -1622,7 +1622,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-color-value-request-expanded.json");

Expand Down Expand Up @@ -1664,7 +1664,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-interval-value-request-expanded.json");

Expand Down Expand Up @@ -1703,7 +1703,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-boolean-value-request-expanded.json");

Expand Down Expand Up @@ -1743,7 +1743,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-list-value-request-expanded.json");

Expand Down Expand Up @@ -1783,7 +1783,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-link-value-request-expanded.json");

Expand Down Expand Up @@ -1823,7 +1823,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-uri-value-request-expanded.json");

Expand Down Expand Up @@ -1863,7 +1863,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-text-value-without-standoff-request-expanded.json");

Expand Down Expand Up @@ -1904,7 +1904,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-text-value-with-standoff-request-expanded.json");

Expand Down Expand Up @@ -1952,7 +1952,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-date-value-with-day-precision-request-expanded.json");

Expand Down Expand Up @@ -1998,7 +1998,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-date-value-with-month-precision-request-expanded.json");

Expand Down Expand Up @@ -2042,7 +2042,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-date-value-with-year-precision-request-expanded.json");

Expand Down Expand Up @@ -2082,7 +2082,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-geometry-value-request-expanded.json");

Expand Down Expand Up @@ -2122,7 +2122,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-time-value-request-expanded.json");

Expand Down Expand Up @@ -2184,7 +2184,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-geoname-value-request-expanded.json");

Expand Down Expand Up @@ -2225,7 +2225,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-text-value-with-comment-request-expanded.json");

Expand Down Expand Up @@ -2267,7 +2267,7 @@ describe("ValuesEndpoint", () => {

expect(request.method).toEqual("POST");

expect(request.requestHeaders).toEqual({ "Content-Type": "application/json; charset=utf-8" });
expect(request.requestHeaders).toContain({ "Content-Type": "application/json; charset=utf-8" });

const expectedPayload = require("../../../../test/data/api/v2/values/create-int-value-with-custom-permissions-request-expanded.json");

Expand Down

0 comments on commit 076bcfc

Please sign in to comment.