Add public building project setting
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user