mirror of
https://github.com/mermaid-js/mermaid.git
synced 2026-05-23 20:10:38 +00:00
Updated unit test
This commit is contained in:
@@ -128,11 +128,14 @@ describe('ignorable files (docs-only, changesets, etc.)', () => {
|
||||
});
|
||||
|
||||
it('returns SKIP when only demo files change', () => {
|
||||
expect(detectScope(['demos'])).toBe(SKIP);
|
||||
expect(detectScope(['demos/architecture.html'])).toBe(SKIP);
|
||||
});
|
||||
|
||||
it('scopes to diagram when diagram source + file in demo folder changed', () => {
|
||||
const result = detectScope(['packages/mermaid/src/diagrams/flowchart/flowchartDb.ts', 'demos']);
|
||||
const result = detectScope([
|
||||
'packages/mermaid/src/diagrams/flowchart/flowchartDb.ts',
|
||||
'demos/sequence.html',
|
||||
]);
|
||||
expect(result).toBe(`${SPEC_BASE_DIR}/flowchart/**`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user