Add serializable project commands
This commit is contained in:
@@ -32,16 +32,17 @@ function appendTestRevision(
|
||||
projectId: "project-1",
|
||||
expectedRevision,
|
||||
source: "user",
|
||||
commandType: "circuit.update",
|
||||
description: "Stromkreis bearbeiten",
|
||||
actorId: "test-user",
|
||||
forward: {
|
||||
schemaVersion: 1,
|
||||
data: { circuitId: "circuit-1", displayName: "Neu" },
|
||||
type: "circuit.update",
|
||||
payload: { circuitId: "circuit-1", displayName: "Neu" },
|
||||
},
|
||||
inverse: {
|
||||
schemaVersion: 1,
|
||||
data: { circuitId: "circuit-1", displayName: "Alt" },
|
||||
type: "circuit.update",
|
||||
payload: { circuitId: "circuit-1", displayName: "Alt" },
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -85,12 +86,20 @@ describe("project revision repository", () => {
|
||||
commandType: "circuit.update",
|
||||
payloadSchemaVersion: 1,
|
||||
forwardPayloadJson: JSON.stringify({
|
||||
circuitId: "circuit-1",
|
||||
displayName: "Neu",
|
||||
schemaVersion: 1,
|
||||
type: "circuit.update",
|
||||
payload: {
|
||||
circuitId: "circuit-1",
|
||||
displayName: "Neu",
|
||||
},
|
||||
}),
|
||||
inversePayloadJson: JSON.stringify({
|
||||
circuitId: "circuit-1",
|
||||
displayName: "Alt",
|
||||
schemaVersion: 1,
|
||||
type: "circuit.update",
|
||||
payload: {
|
||||
circuitId: "circuit-1",
|
||||
displayName: "Alt",
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user