|
|
@@ -6,24 +6,24 @@
|
|
|
import { testDataProcessor } from '../_utils/utils';
|
|
|
|
|
|
describe( 'GFMDataProcessor', () => {
|
|
|
- // Horizontal rules are are always rendered by GitHub as <hr> and normalized when converting
|
|
|
- // back to * * *.
|
|
|
+ // Horizontal rules are always rendered by GitHub as <hr> and normalized when converting
|
|
|
+ // back to ---.
|
|
|
describe( 'horizontal rules', () => {
|
|
|
describe( 'dashes', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '---', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '---', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' ---', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ---', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' ---', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ---', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' ---', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ---', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|
|
|
@@ -43,19 +43,19 @@ describe( 'GFMDataProcessor', () => {
|
|
|
|
|
|
describe( 'dashes with spaces', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '- - -', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '- - -', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' - - -', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' - - -', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' - - -', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' - - -', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' - - -', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' - - -', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|
|
|
@@ -75,19 +75,19 @@ describe( 'GFMDataProcessor', () => {
|
|
|
|
|
|
describe( 'asterisks', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '***', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '***', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' ***', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ***', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' ***', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ***', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' ***', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ***', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|
|
|
@@ -107,19 +107,19 @@ describe( 'GFMDataProcessor', () => {
|
|
|
|
|
|
describe( 'asterisks with spaces', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '* * *', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '* * *', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' * * *', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' * * *', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' * * *', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' * * *', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' * * *', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' * * *', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|
|
|
@@ -139,19 +139,19 @@ describe( 'GFMDataProcessor', () => {
|
|
|
|
|
|
describe( 'underscores', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '___', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '___', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' ___', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ___', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' ___', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ___', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' ___', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' ___', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|
|
|
@@ -171,19 +171,19 @@ describe( 'GFMDataProcessor', () => {
|
|
|
|
|
|
describe( 'underscores with spaces', () => {
|
|
|
it( '#1', () => {
|
|
|
- testDataProcessor( '_ _ _', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( '_ _ _', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#2', () => {
|
|
|
- testDataProcessor( ' _ _ _', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' _ _ _', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#3', () => {
|
|
|
- testDataProcessor( ' _ _ _', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' _ _ _', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#4', () => {
|
|
|
- testDataProcessor( ' _ _ _', '<hr></hr>', '* * *' );
|
|
|
+ testDataProcessor( ' _ _ _', '<hr></hr>', '---' );
|
|
|
} );
|
|
|
|
|
|
it( '#5 - code', () => {
|