@@ -43,7 +43,7 @@ describe('paste-markdown', function () {
4343 assert . equal ( textarea . value , 'The examples can be found [here](https://github.com).' )
4444 } )
4545
46- it ( 'turns pasted urls on selected text into markdown links if pasteAsPlainText is false' , function ( ) {
46+ it ( 'turns pasted urls on selected text into markdown links if pasteLinkAsPlainTextOverSelectedText is false' , function ( ) {
4747 subscription = subscribeWithOptionConfig ( subscription , textarea , false )
4848
4949 // eslint-disable-next-line i18n-text/no-en
@@ -53,7 +53,7 @@ describe('paste-markdown', function () {
5353 assert . equal ( textarea . value , 'The examples can be found [here](https://github.com).' )
5454 } )
5555
56- it ( 'turns pasted urls on selected text into markdown links if pasteAsPlainText is true and skip format flag is true' , function ( ) {
56+ it ( 'turns pasted urls on selected text into markdown links if pasteLinkAsPlainTextOverSelectedText is true and skip format flag is true' , function ( ) {
5757 subscription = subscribeWithOptionConfig ( subscription , textarea , true )
5858
5959 // eslint-disable-next-line i18n-text/no-en
@@ -64,7 +64,7 @@ describe('paste-markdown', function () {
6464 assert . equal ( textarea . value , 'The examples can be found [here](https://github.com).' )
6565 } )
6666
67- it ( 'pastes as plain text on selected text if pasteAsPlainText is true' , function ( ) {
67+ it ( 'pastes as plain text on selected text if pasteLinkAsPlainTextOverSelectedText is true' , function ( ) {
6868 subscription = subscribeWithOptionConfig ( subscription , textarea , true )
6969
7070 // eslint-disable-next-line i18n-text/no-en
@@ -385,10 +385,10 @@ function dispatchSkipFormattingKeyEvent(textarea) {
385385 )
386386}
387387
388- function subscribeWithOptionConfig ( subscription , textarea , pasteAsPlainText ) {
388+ function subscribeWithOptionConfig ( subscription , textarea , pasteLinkAsPlainTextOverSelectedText ) {
389389 // Clear the before test subscription with no config and re-subscribe with config
390390 subscription . unsubscribe ( )
391- return subscribe ( textarea , { pasteAsPlainText } )
391+ return subscribe ( textarea , { pasteLinkAsPlainTextOverSelectedText } )
392392}
393393
394394function paste ( textarea , data ) {
0 commit comments