Explorar el Código

Added a basic test for todo lists.

fredck hace 5 años
padre
commit
e593849af9
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  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>' );
+		} );
+	} );
 } );