Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jihchi committed Sep 7, 2024
1 parent 4b9e905 commit 4101047
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/kitchensink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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;}'
);
});

Expand All @@ -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;}'
);
});

Expand Down

0 comments on commit 4101047

Please sign in to comment.