Commit 83ce4dd9 authored by Dorchies David's avatar Dorchies David
Browse files

#33 Correct failed test following 27e9dfe6

Showing with 3 additions and 3 deletions
+3 -3
......@@ -183,7 +183,7 @@ describe("Class Pab: ", () => {
pab.calculatedParam = pab.prms.Z1;
checkPabResults(pab, 78.27);
});
it("Calc(Q) should return 0.773", () => {
it("CalcSerie(Q) should return 0.773", () => {
pab.calculatedParam = pab.prms.Q;
checkPabResults(pab, 0.773);
});
......
......@@ -54,7 +54,7 @@ export class CloisonAval extends ParallelStructure {
s.prms.ZDV.v = s.prms.maxZDV.v;
}
}
if (this._result === undefined || this._result.ok) {
if (!this.hasVanneLevante() || this.result.ok) {
// Calculation of Z1 with the new ZDV in case of existing vanne levante
this.currentResult = super.Calc("Z1", rInit);
if (this.result.ok) {
......@@ -74,7 +74,7 @@ export class CloisonAval extends ParallelStructure {
}
}
}
return this._result;
return this.result;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment