8
0
Просмотр исходного кода

Added a basic test for todo lists.

fredck 5 лет назад
Родитель
Сommit
e593849af9
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/lists.js

+ 13 - 0
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/lists.js

@@ -340,4 +340,17 @@ describe( 'GFMDataProcessor', () => {
 			);
 		} );
 	} );
+
+	describe( 'todo lists', () => {
+		it( 'should process todo lists', () => {
+			testDataProcessor(
+				'*   [ ] List 1\n' +
+				'*   [x] Item 2',
+
+				'<ul>' +
+					'<li><input disabled="" type="checkbox"></input>List 1</li>' +
+					'<li><input checked="" disabled="" type="checkbox"></input>Item 2</li>' +
+				'</ul>' );
+		} );
+	} );
 } );