From 2b80aafe66974e95d6849433446eb596ca8b30ba 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 | 2 +- 2 files changed, 2 insertions(+), 2 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..38af9720c4 100644 --- a/tests/bindings/javascript/generator.test.js +++ b/tests/bindings/javascript/generator.test.js @@ -62,7 +62,7 @@ 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)