|
|
@@ -346,11 +346,11 @@ describe( 'GFMDataProcessor', () => {
|
|
|
describe( 'todo lists', () => {
|
|
|
it( 'should process todo lists', () => {
|
|
|
testDataProcessor(
|
|
|
- '* [ ] List 1\n' +
|
|
|
+ '* [ ] Item 1\n' +
|
|
|
'* [x] Item 2',
|
|
|
|
|
|
'<ul>' +
|
|
|
- '<li><input disabled="" type="checkbox"></input>List 1</li>' +
|
|
|
+ '<li><input disabled="" type="checkbox"></input>Item 1</li>' +
|
|
|
'<li><input checked="" disabled="" type="checkbox"></input>Item 2</li>' +
|
|
|
'</ul>' );
|
|
|
} );
|
|
|
@@ -373,7 +373,7 @@ describe( 'GFMDataProcessor', () => {
|
|
|
);
|
|
|
|
|
|
expect( mdDataProcessor.toData( viewFragment ) ).to.equal(
|
|
|
- '* [ ] List 1\n' +
|
|
|
+ '* [ ] Item 1\n' +
|
|
|
'* [x] Item 2'
|
|
|
);
|
|
|
} );
|