Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikrantpalle committed Jul 26, 2024
1 parent 99406da commit 8591460
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions cypress/integration/rendering/treeView.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { imgSnapshotTest } from '../../helpers/util';

describe('TreeView Diagram', () => {
it('should render a simple treeView diagram', () => {
imgSnapshotTest(
`treeView-beta
file1.ts`
);
});

it('should render a complex treeView diagram', () => {
imgSnapshotTest(
`treeView-beta
root
folder1
file1.js
file2.ts
folder2
file3.spec.ts
folder3
file4.ts
file5.ts
folder4
file6.ts
file7.ts`
);
});

it('should render a complex treeView diagram with multiple roots', () => {
imgSnapshotTest(
`treeView-beta
folder1
file1.js
file2.ts
folder2
file3.spec.ts
folder3
file4.ts
file5.ts
folder4
file6.ts
file7.ts`
);
});
});

0 comments on commit 8591460

Please sign in to comment.