Implemented bug test
This commit is contained in:
		
							parent
							
								
									baca852733
								
							
						
					
					
						commit
						263cc0856e
					
				
							
								
								
									
										3598
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3598
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -101,6 +101,26 @@ export const testMultilineFormat = tc => {
 | 
			
		||||
  ])
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @param {t.TestCase} tc
 | 
			
		||||
 */
 | 
			
		||||
export const testNotMergeEmptyLinesFormat = tc => {
 | 
			
		||||
  const ydoc = new Y.Doc()
 | 
			
		||||
  const testText = ydoc.getText('test')
 | 
			
		||||
  testText.applyDelta([
 | 
			
		||||
    { insert: 'Text' },
 | 
			
		||||
    { insert: '\n', attributes: { title: true } },
 | 
			
		||||
    { insert: '\nText' },
 | 
			
		||||
    { insert: '\n', attributes: { title: true } }
 | 
			
		||||
  ])
 | 
			
		||||
  t.compare(testText.toDelta(), [
 | 
			
		||||
    { insert: 'Text' },
 | 
			
		||||
    { insert: '\n', attributes: { title: true } },
 | 
			
		||||
    { insert: '\nText' },
 | 
			
		||||
    { insert: '\n', attributes: { title: true } }
 | 
			
		||||
  ])
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @param {t.TestCase} tc
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user