Commit 380595f1 authored by Dorchies David's avatar Dorchies David
Browse files

test(PreBarrage): fix wrong tests

Refs #280
parent 3cbde0b2
......@@ -328,7 +328,7 @@ describe("Class PreBarrage:", () => {
Session.getInstance().unserialise(sess);
const pb = Session.getInstance().findNubByUid("YjJhMX") as PreBarrage;
const res = pb.CalcSerie();
expect(res.ok).toBe(false);
expect(res.ok).toBe(true);
expect(res.resultElements.length).toBe(5);
});
});
......@@ -656,6 +656,7 @@ describe("Class PreBarrage:", () => {
it("downstream water elevation > upstream water elevation", () => {
const pb = createPreBarrageTest();
pb.prms.Z2.singleValue = pb.prms.Z1.singleValue + 1;
pb.prms.Q.setCalculated();
const res = pb.CalcSerie();
expect(res.ok).toBe(false);
expect(res.resultElement.log.messages.length).toBe(1);
......
Markdown is supported
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