mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	limit the test cases for only two direction
This commit is contained in:
		@@ -1,7 +1,12 @@
 | 
			
		||||
import { imgSnapshotTest } from '../../helpers/util';
 | 
			
		||||
 | 
			
		||||
const looks = ['classic', 'handDrawn'] as const;
 | 
			
		||||
const directions = ['TB', 'BT', 'LR', 'RL'] as const;
 | 
			
		||||
const directions = [
 | 
			
		||||
  'TB',
 | 
			
		||||
  //'BT',
 | 
			
		||||
  'LR',
 | 
			
		||||
  //  'RL'
 | 
			
		||||
] as const;
 | 
			
		||||
const forms = [undefined, 'square', 'circle', 'rounded'] as const;
 | 
			
		||||
const labelPos = [undefined, 't', 'b'] as const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,12 @@
 | 
			
		||||
import { imgSnapshotTest } from '../../helpers/util';
 | 
			
		||||
 | 
			
		||||
const looks = ['classic', 'handDrawn'] as const;
 | 
			
		||||
const directions = ['TB', 'BT', 'LR', 'RL'] as const;
 | 
			
		||||
const directions = [
 | 
			
		||||
  'TB',
 | 
			
		||||
  //'BT',
 | 
			
		||||
  'LR',
 | 
			
		||||
  //  'RL'
 | 
			
		||||
] as const;
 | 
			
		||||
const labelPos = [undefined, 't', 'b'] as const;
 | 
			
		||||
 | 
			
		||||
looks.forEach((look) => {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,12 @@
 | 
			
		||||
import { imgSnapshotTest } from '../../helpers/util.ts';
 | 
			
		||||
 | 
			
		||||
const looks = ['classic', 'handDrawn'] as const;
 | 
			
		||||
const directions = ['TB', 'BT', 'LR', 'RL'] as const;
 | 
			
		||||
const directions = [
 | 
			
		||||
  'TB',
 | 
			
		||||
  //'BT',
 | 
			
		||||
  'LR',
 | 
			
		||||
  //'RL'
 | 
			
		||||
] as const;
 | 
			
		||||
const newShapesSet1 = [
 | 
			
		||||
  'triangle',
 | 
			
		||||
  'sloped-rectangle',
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,12 @@
 | 
			
		||||
import { imgSnapshotTest } from '../../helpers/util';
 | 
			
		||||
 | 
			
		||||
const looks = ['classic', 'handDrawn'] as const;
 | 
			
		||||
const directions = ['TB', 'BT', 'LR', 'RL'] as const;
 | 
			
		||||
const directions = [
 | 
			
		||||
  'TB',
 | 
			
		||||
  //'BT',
 | 
			
		||||
  'LR',
 | 
			
		||||
  //'RL'
 | 
			
		||||
] as const;
 | 
			
		||||
 | 
			
		||||
const shapesSet1 = ['text', 'card', 'shadedProcess', 'diamond', 'hexagon'] as const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user