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 82a835a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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 @@ -677,7 +677,7 @@ describe('app', () => {
// Theme style contains
// default: #mermaid-svg .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}
// neutral: #mermaid-svg .node path{fill:#eee;stroke:#999;stroke-width:1px;}
// dark: #mermaid-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}
// dark: #mermaid-svg .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}
// forest: #mermaid-svg .node path{fill:#cde498;stroke:#13540c;stroke-width:1px;}

test('site-wide diagram theme should be "default" if unset', async () => {
Expand All @@ -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 82a835a

Please sign in to comment.