Create clean release database baseline
This commit is contained in:
@@ -117,9 +117,6 @@ function createTestDatabase(): TestFixture {
|
||||
equipmentIdentifier: "-1F1",
|
||||
displayName: "Bestand",
|
||||
sortOrder: 10,
|
||||
protectionType: "LS",
|
||||
protectionRatedCurrent: 16,
|
||||
protectionCharacteristic: "B",
|
||||
cableType: "NYM-J",
|
||||
cableCrossSection: "3x1,5",
|
||||
cableLength: 18.5,
|
||||
@@ -139,7 +136,6 @@ function createTestDatabase(): TestFixture {
|
||||
id: "row-existing-1",
|
||||
circuitId: "circuit-existing",
|
||||
linkedProjectDeviceId: "device-1",
|
||||
legacyConsumerId: "legacy-1",
|
||||
sortOrder: 10,
|
||||
name: "Leuchte A",
|
||||
displayName: "Leuchte A lokal",
|
||||
@@ -198,7 +194,6 @@ function createRow(
|
||||
id,
|
||||
circuitId,
|
||||
linkedProjectDeviceId: null,
|
||||
legacyConsumerId: null,
|
||||
sortOrder,
|
||||
name: `Gerät ${id}`,
|
||||
displayName: `Gerät ${id}`,
|
||||
@@ -241,9 +236,6 @@ function createCircuitSnapshot(
|
||||
equipmentIdentifier: "-1F2",
|
||||
displayName: "Neuer Stromkreis",
|
||||
sortOrder: 20,
|
||||
protectionType: null,
|
||||
protectionRatedCurrent: null,
|
||||
protectionCharacteristic: null,
|
||||
cableType: null,
|
||||
cableCrossSection: null,
|
||||
cableLength: null,
|
||||
@@ -569,14 +561,6 @@ describe("circuit structure project-command repository", () => {
|
||||
}),
|
||||
],
|
||||
}),
|
||||
createCircuitSnapshot(fixture, {
|
||||
id: "legacy-row",
|
||||
deviceRows: [
|
||||
createRow("legacy-row", "row-legacy", 10, {
|
||||
legacyConsumerId: "legacy-user-value",
|
||||
}),
|
||||
],
|
||||
}),
|
||||
];
|
||||
for (const snapshot of invalidSnapshots) {
|
||||
assert.throws(() =>
|
||||
|
||||
Reference in New Issue
Block a user