Create clean release database baseline
This commit is contained in:
@@ -70,7 +70,7 @@ function createTestFixture(): TestFixture {
|
||||
equipmentIdentifier: "-1F1",
|
||||
displayName: "Licht Bestand",
|
||||
sortOrder: 10,
|
||||
protectionRatedCurrent: 10,
|
||||
cableLength: 10,
|
||||
voltage: 230,
|
||||
controlRequirement: "none",
|
||||
isReserve: 0,
|
||||
@@ -112,7 +112,7 @@ describe("circuit project-command repository", () => {
|
||||
const store = new CircuitProjectCommandRepository(fixture.context.db);
|
||||
const command = createCircuitUpdateProjectCommand("circuit-1", {
|
||||
displayName: null,
|
||||
protectionRatedCurrent: 16,
|
||||
cableLength: 16,
|
||||
voltage: 400,
|
||||
controlRequirement: "DALI",
|
||||
isReserve: true,
|
||||
@@ -128,7 +128,7 @@ describe("circuit project-command repository", () => {
|
||||
|
||||
const circuit = getCircuit(fixture.context);
|
||||
assert.equal(circuit.displayName, null);
|
||||
assert.equal(circuit.protectionRatedCurrent, 16);
|
||||
assert.equal(circuit.cableLength, 16);
|
||||
assert.equal(circuit.voltage, 230);
|
||||
assert.equal(circuit.controlRequirement, "DALI");
|
||||
assert.equal(circuit.isReserve, 1);
|
||||
@@ -137,7 +137,7 @@ describe("circuit project-command repository", () => {
|
||||
circuitId: "circuit-1",
|
||||
changes: [
|
||||
{ field: "displayName", value: "Licht Bestand" },
|
||||
{ field: "protectionRatedCurrent", value: 10 },
|
||||
{ field: "cableLength", value: 10 },
|
||||
{ field: "controlRequirement", value: "none" },
|
||||
{ field: "isReserve", value: false },
|
||||
],
|
||||
@@ -152,7 +152,7 @@ describe("circuit project-command repository", () => {
|
||||
deserializeProjectCommand(changeSet.forwardPayloadJson),
|
||||
createCircuitUpdateProjectCommand("circuit-1", {
|
||||
displayName: null,
|
||||
protectionRatedCurrent: 16,
|
||||
cableLength: 16,
|
||||
controlRequirement: "DALI",
|
||||
isReserve: true,
|
||||
})
|
||||
@@ -184,7 +184,7 @@ describe("circuit project-command repository", () => {
|
||||
source: "user",
|
||||
command: createCircuitUpdateProjectCommand("circuit-1", {
|
||||
displayName: "Licht Neu",
|
||||
protectionRatedCurrent: 16,
|
||||
cableLength: 16,
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -199,7 +199,7 @@ describe("circuit project-command repository", () => {
|
||||
|
||||
const circuit = getCircuit(fixture.context);
|
||||
assert.equal(circuit.displayName, "Licht Bestand");
|
||||
assert.equal(circuit.protectionRatedCurrent, 10);
|
||||
assert.equal(circuit.cableLength, 10);
|
||||
assert.equal(undone.revision.revisionNumber, 2);
|
||||
assert.deepEqual(
|
||||
fixture.context.db
|
||||
|
||||
Reference in New Issue
Block a user