add missing id for requestShape

main
Laurin Weger 3 weeks ago
parent 4410980fbc
commit 82d26a62e9
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 5
      src/ng-mock/wasm-land/requestShape.ts

@ -7,6 +7,7 @@ import type { Cat } from "src/shapes/ldo/catShape.typings";
import type { TestObject } from "src/shapes/ldo/testShape.typings"; import type { TestObject } from "src/shapes/ldo/testShape.typings";
export const mockTestObject = { export const mockTestObject = {
id: "ex:mock-id-1",
type: "TestObject", type: "TestObject",
stringValue: "string", stringValue: "string",
numValue: 42, numValue: 42,
@ -19,10 +20,12 @@ export const mockTestObject = {
}, },
anotherObject: { anotherObject: {
"id:1": { "id:1": {
"id": "id:1",
prop1: "prop1 value", prop1: "prop1 value",
prop2: 100, prop2: 100,
}, },
"id:2": { "id:2": {
id: "id:1",
prop1: "prop2 value", prop1: "prop2 value",
prop2: 200, prop2: 200,
}, },
@ -30,6 +33,7 @@ export const mockTestObject = {
} satisfies TestObject; } satisfies TestObject;
const mockShapeObject1 = { const mockShapeObject1 = {
id: "ex:person-1",
type: "Person", type: "Person",
name: "Bob", name: "Bob",
address: { address: {
@ -40,6 +44,7 @@ const mockShapeObject1 = {
numberOfHouses: 0, numberOfHouses: 0,
} satisfies Person; } satisfies Person;
const mockShapeObject2 = { const mockShapeObject2 = {
id: "ex:cat-1",
type: "Cat", type: "Cat",
name: "Niko's cat", name: "Niko's cat",
age: 12, age: 12,

Loading…
Cancel
Save