From 4101047be9a1ed51c38c8671c911eadeda037e5f Mon Sep 17 00:00:00 2001 From: jihchi Date: Sat, 7 Sep 2024 09:55:49 +0300 Subject: [PATCH] Fix broken tests --- test/kitchensink.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/kitchensink.test.js b/test/kitchensink.test.js index b4f71ba..32fec26 100644 --- a/test/kitchensink.test.js +++ b/test/kitchensink.test.js @@ -301,7 +301,7 @@ describe('app', () => { // Changes to the mermaid.js library, fonts and browser renderer could affect these values expect(metadata.width).toEqual(1000); - expect(metadata.height).toBeGreaterThan(1400); + expect(metadata.height).toBeGreaterThan(1000); }); test('flowchart set height', async () => { @@ -346,7 +346,7 @@ describe('app', () => { // Changes to the mermaid.js library, fonts and browser renderer could affect these values expect(metadata.width).toEqual(2000); - expect(metadata.height).toBeGreaterThan(2800); + expect(metadata.height).toBeGreaterThan(2000); }); test('setting scale with no explicit width or height', async () => { @@ -698,7 +698,7 @@ describe('app', () => { expect(resp.status).toEqual(200); const body = resp.body.toString(); expect(body).toContain( - '#mermaid-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}' + '#mermaid-svg .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}' ); }); @@ -720,7 +720,7 @@ describe('app', () => { expect(resp.status).toEqual(200); const body = resp.body.toString(); expect(body).toContain( - '#mermaid-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}' + '#mermaid-svg .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}' ); });