From ef864477c757bc634d6229d77df6f22b17823c7b Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Thu, 8 Aug 2024 17:30:16 +0200 Subject: [PATCH] Updated JavaScript tests. --- tests/bindings/javascript/analyservariable.test.js | 2 +- tests/bindings/javascript/generator.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bindings/javascript/analyservariable.test.js b/tests/bindings/javascript/analyservariable.test.js index 6aa1f4f8d1..733684b5dd 100644 --- a/tests/bindings/javascript/analyservariable.test.js +++ b/tests/bindings/javascript/analyservariable.test.js @@ -48,7 +48,7 @@ describe("Analyser Variable tests", () => { }); test('Checking Analyser Variable index.', () => { const av = am.algebraicVariable(7) - expect(av.index()).toBe(7) + expect(av.index()).toBe(2) }); test('Checking Analyser Variable initialising variable.', () => { const av = am.algebraicVariable(15) diff --git a/tests/bindings/javascript/generator.test.js b/tests/bindings/javascript/generator.test.js index bd854e65f8..be7e04ebd2 100644 --- a/tests/bindings/javascript/generator.test.js +++ b/tests/bindings/javascript/generator.test.js @@ -62,10 +62,10 @@ describe("Generator tests", () => { g.setModel(a.model()) const interface_lines = g.interfaceCode().split('\n') - expect(interface_lines.length).toBe(42) + expect(interface_lines.length).toBe(43) const implementation_lines = g.implementationCode().split('\n') - expect(implementation_lines.length).toBe(69) + expect(implementation_lines.length).toBe(70) const equation_line_1 = libcellml.Generator.equationCode(a.model().equation(0).ast()) expect(equation_line_1.length).toBe(14)