-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
2,704 additions
and
927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
auto-install-peers=true | ||
strict-peer-dependencies=false | ||
use-inline-specifiers-lockfile-format=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { imgSnapshotTest } from '../../helpers/util'; | ||
|
||
describe('Error Diagrams', () => { | ||
beforeEach(() => { | ||
cy.on('uncaught:exception', (err) => { | ||
expect(err.message).to.include('Parse error'); | ||
// return false to prevent the error from | ||
// failing this test | ||
return false; | ||
}); | ||
}); | ||
|
||
it('should render a simple ER diagram', () => { | ||
imgSnapshotTest( | ||
` | ||
error | ||
`, | ||
{ logLevel: 1 } | ||
); | ||
}); | ||
|
||
it('should render error diagram for actual errors', () => { | ||
imgSnapshotTest( | ||
` | ||
flowchart TD | ||
A[Christmas] --|Get money| B(Go shopping) | ||
`, | ||
{ logLevel: 1 } | ||
); | ||
}); | ||
|
||
it('should render error for wrong ER diagram', () => { | ||
imgSnapshotTest( | ||
` | ||
erDiagram | ||
ATLAS-ORGANIZATION ||--|{ ATLAS-PROJECTS : "has many" | ||
ATLAS-PROJECTS ||--|{ MONGODB-CLUSTERS : "has many" | ||
ATLAS-PROJECTS ||--|{ ATLAS-TEAMS : "has many" | ||
MONGODB-CLUSTERS ||..|{ | ||
ATLAS-TEAMS ||..|{ | ||
`, | ||
{ logLevel: 1 } | ||
); | ||
}); | ||
}); |
Oops, something went wrong.