11import subscribe from '../dist/index.esm.js'
22
3- describe ( 'paste-markdown' , function ( ) {
4- describe ( 'installed on textarea' , function ( ) {
3+ describe ( 'paste-markdown' , function ( ) {
4+ describe ( 'installed on textarea' , function ( ) {
55 let subscription , textarea
6- beforeEach ( function ( ) {
6+ beforeEach ( function ( ) {
77 document . body . innerHTML = `
88 <textarea data-paste-markdown></textarea>
99 `
@@ -12,17 +12,17 @@ describe('paste-markdown', function() {
1212 subscription = subscribe ( textarea )
1313 } )
1414
15- afterEach ( function ( ) {
15+ afterEach ( function ( ) {
1616 subscription . unsubscribe ( )
1717 document . body . innerHTML = ''
1818 } )
1919
20- it ( 'turns image uris into markdown' , function ( ) {
20+ it ( 'turns image uris into markdown' , function ( ) {
2121 paste ( textarea , { 'text/uri-list' : 'https://github.com/github.png\r\nhttps://github.com/hubot.png' } )
2222 assert . include ( textarea . value , '\n\n' )
2323 } )
2424
25- it ( 'turns html tables into markdown' , function ( ) {
25+ it ( 'turns html tables into markdown' , function ( ) {
2626 const data = {
2727 'text/html' : `
2828 <table>
@@ -38,7 +38,7 @@ describe('paste-markdown', function() {
3838 assert . include ( textarea . value , 'name | origin\n-- | --\nhubot | github\nbender | futurama' )
3939 } )
4040
41- it ( 'rejects layout tables' , function ( ) {
41+ it ( 'rejects layout tables' , function ( ) {
4242 const data = {
4343 'text/html' : `
4444 <table data-paste-markdown-skip>
@@ -54,7 +54,7 @@ describe('paste-markdown', function() {
5454 assert . equal ( textarea . value , '' )
5555 } )
5656
57- it ( 'accepts x-gfm' , function ( ) {
57+ it ( 'accepts x-gfm' , function ( ) {
5858 paste ( textarea , { 'text/plain' : 'hello' , 'text/x-gfm' : '# hello' } )
5959 assert . include ( textarea . value , '# hello' )
6060 } )
0 commit comments