@furystack/rest-service
Advanced tools
Comparing version 6.2.10 to 6.2.11
@@ -31,4 +31,5 @@ "use strict"; | ||
const response = await fetch('http://127.0.0.1:1112/api/entities', { method: 'GET' }); | ||
expect(response.ok).toBe(true); | ||
const json = await response.json(); | ||
expect(response.status).toBe(200); | ||
const json = await response.json(); | ||
expect(json.count).toBe(count); | ||
@@ -58,4 +59,5 @@ expect(json.entries).toEqual(allEntities); | ||
}); | ||
expect(response.ok).toBe(true); | ||
const json = await response.json(); | ||
expect(response.status).toBe(200); | ||
const json = await response.json(); | ||
expect(json.count).toBe(count); | ||
@@ -88,4 +90,5 @@ expect(json.entries).toEqual(orderedEntities); | ||
}); | ||
expect(response.ok).toBe(true); | ||
const json = await response.json(); | ||
expect(response.status).toBe(200); | ||
const json = await response.json(); | ||
expect(json.count).toBe(count); | ||
@@ -118,4 +121,5 @@ expect(json.entries).toEqual(filteredEntities); | ||
}); | ||
expect(response.ok).toBe(true); | ||
const json = await response.json(); | ||
expect(response.status).toBe(200); | ||
const json = await response.json(); | ||
expect(json.count).toBe(count); | ||
@@ -122,0 +126,0 @@ expect(json.entries).toEqual(selectedEntities); |
@@ -450,2 +450,19 @@ { | ||
}, | ||
"OPTIONS": { | ||
"additionalProperties": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"body": {}, | ||
"headers": {}, | ||
"query": {}, | ||
"result": {}, | ||
"url": {} | ||
}, | ||
"required": [ | ||
"result" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "object" | ||
}, | ||
"PATCH": { | ||
@@ -783,2 +800,19 @@ "additionalProperties": { | ||
}, | ||
"OPTIONS": { | ||
"additionalProperties": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"body": {}, | ||
"headers": {}, | ||
"query": {}, | ||
"result": {}, | ||
"url": {} | ||
}, | ||
"required": [ | ||
"result" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "object" | ||
}, | ||
"PATCH": { | ||
@@ -785,0 +819,0 @@ "additionalProperties": false, |
{ | ||
"name": "@furystack/rest-service", | ||
"version": "6.2.10", | ||
"version": "6.2.11", | ||
"description": "Repository implementation for FuryStack", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -42,4 +42,5 @@ import { usingAsync } from '@furystack/utils' | ||
const response = await fetch('http://127.0.0.1:1112/api/entities', { method: 'GET' }) | ||
expect(response.ok).toBe(true) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(response.status).toBe(200) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(json.count).toBe(count) | ||
@@ -70,4 +71,5 @@ expect(json.entries).toEqual(allEntities) | ||
}) | ||
expect(response.ok).toBe(true) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(response.status).toBe(200) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(json.count).toBe(count) | ||
@@ -104,4 +106,5 @@ expect(json.entries).toEqual(orderedEntities) | ||
}) | ||
expect(response.ok).toBe(true) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(response.status).toBe(200) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(json.count).toBe(count) | ||
@@ -139,5 +142,5 @@ expect(json.entries).toEqual(filteredEntities) | ||
expect(response.ok).toBe(true) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(response.status).toBe(200) | ||
const json: GetCollectionResult<MockClass> = await response.json() | ||
expect(json.count).toBe(count) | ||
@@ -144,0 +147,0 @@ expect(json.entries).toEqual(selectedEntities) |
@@ -450,2 +450,19 @@ { | ||
}, | ||
"OPTIONS": { | ||
"additionalProperties": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"body": {}, | ||
"headers": {}, | ||
"query": {}, | ||
"result": {}, | ||
"url": {} | ||
}, | ||
"required": [ | ||
"result" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "object" | ||
}, | ||
"PATCH": { | ||
@@ -783,2 +800,19 @@ "additionalProperties": { | ||
}, | ||
"OPTIONS": { | ||
"additionalProperties": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"body": {}, | ||
"headers": {}, | ||
"query": {}, | ||
"result": {}, | ||
"url": {} | ||
}, | ||
"required": [ | ||
"result" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "object" | ||
}, | ||
"PATCH": { | ||
@@ -785,0 +819,0 @@ "additionalProperties": false, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
577556
10080