forked from jappel/leistungsbilanz-ts
Add public building project setting
This commit is contained in:
parent
43a3bb0b69
commit
44b6fde940
29 changed files with 2057 additions and 54 deletions
|
|
@ -1057,6 +1057,7 @@ describe("project command service", () => {
|
|||
externalProjectNumber: null,
|
||||
buildingOwner: null,
|
||||
description: null,
|
||||
isPublicBuilding: true,
|
||||
singlePhaseVoltageV: 240,
|
||||
threePhaseVoltageV: 415,
|
||||
enabledDistributionBoardSupplyTypes: [
|
||||
|
|
@ -1073,6 +1074,7 @@ describe("project command service", () => {
|
|||
assert.deepEqual(
|
||||
context.db
|
||||
.select({
|
||||
isPublicBuilding: projects.isPublicBuilding,
|
||||
singlePhaseVoltageV: projects.singlePhaseVoltageV,
|
||||
threePhaseVoltageV: projects.threePhaseVoltageV,
|
||||
})
|
||||
|
|
@ -1080,6 +1082,7 @@ describe("project command service", () => {
|
|||
.where(eq(projects.id, "project-1"))
|
||||
.get(),
|
||||
{
|
||||
isPublicBuilding: true,
|
||||
singlePhaseVoltageV: 240,
|
||||
threePhaseVoltageV: 415,
|
||||
}
|
||||
|
|
@ -1093,6 +1096,7 @@ describe("project command service", () => {
|
|||
assert.deepEqual(
|
||||
context.db
|
||||
.select({
|
||||
isPublicBuilding: projects.isPublicBuilding,
|
||||
singlePhaseVoltageV: projects.singlePhaseVoltageV,
|
||||
threePhaseVoltageV: projects.threePhaseVoltageV,
|
||||
})
|
||||
|
|
@ -1100,6 +1104,7 @@ describe("project command service", () => {
|
|||
.where(eq(projects.id, "project-1"))
|
||||
.get(),
|
||||
{
|
||||
isPublicBuilding: false,
|
||||
singlePhaseVoltageV: 230,
|
||||
threePhaseVoltageV: 400,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue