From 2b934b1f32a60feef8f45982dfe9f52417501bf5 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Thu, 21 May 2020 01:36:33 +0200 Subject: [PATCH] [tests] trim version suffix --- test/integration/forwarding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/forwarding.ts b/test/integration/forwarding.ts index d0d928ddf..353670519 100644 --- a/test/integration/forwarding.ts +++ b/test/integration/forwarding.ts @@ -84,7 +84,7 @@ describe("Forwarding", function() { should.exists(summary.duniter.software); should.exists(summary.duniter.version); assert.equal(summary.duniter.software, "duniter"); - assert.equal(summary.duniter.version, jspckg.version); + assert.equal(summary.duniter.version, jspckg.version.split("-")[0]); })) it('Node2 should be up and running', () => node2.expectThat('/node/summary', (summary:any) => { @@ -93,7 +93,7 @@ describe("Forwarding", function() { should.exists(summary.duniter.software); should.exists(summary.duniter.version); assert.equal(summary.duniter.software, "duniter"); - assert.equal(summary.duniter.version, jspckg.version); + assert.equal(summary.duniter.version, jspckg.version.split("-")[0]); })) }); -- GitLab