mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	add bidirectional arrow to sequence diagram
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/// <reference types="Cypress" />
 | 
			
		||||
// <reference types="Cypress" />
 | 
			
		||||
 | 
			
		||||
import { imgSnapshotTest, renderGraph } from '../../helpers/util.ts';
 | 
			
		||||
 | 
			
		||||
@@ -68,6 +68,19 @@ context('Sequence diagram', () => {
 | 
			
		||||
      { sequence: { actorFontFamily: 'courier' } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('should render bidirectional arrows', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
      sequenceDiagram
 | 
			
		||||
      Alice<<->>John: Hello John, how are you?
 | 
			
		||||
      Alice<<-->>John: Hi Alice, I can hear you!
 | 
			
		||||
      John<<->>Alice: This also works the other way
 | 
			
		||||
      John<<-->>Alice: Yes
 | 
			
		||||
      Alice->John: Test
 | 
			
		||||
      John->>Alice: Still works
 | 
			
		||||
      `
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('should handle different line breaks', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user