{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-active-expression-proxies/test/markdown-upndown-test.js"],"names":["expect","Upndown","describe","it","converter","source","convert","keepHtml","equal"],"mappings":";;;;;;AACQA,Y,sBAAAA,M;;AAEDC,a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEPC,eAAS,kBAAT,EAA6B,MAAM;;AAEjCA,iBAAS,SAAT,EAAoB,MAAM;AACxBC,aAAG,wBAAH,EAA6B,YAAY;AACvC,gBAAIC,YAAY,IAAIH,OAAJ,EAAhB;AACA,gBAAII,SAAS,MAAMD,UAAUE,OAAV,CAAkB,eAAlB,EAAmC,EAACC,UAAU,IAAX,EAAnC,CAAnB;AACAP,mBAAOK,MAAP,EAAeG,KAAf,CAAqB,SAArB;AACD,WAJD;;AAMAL,aAAG,wBAAH,EAA6B,YAAY;AACvC,gBAAIC,YAAY,IAAIH,OAAJ,EAAhB;AACA,gBAAII,SAAS,MAAMD,UAAUE,OAAV,CAAkB,yBAAlB,EAA6C,EAACC,UAAU,IAAX,EAA7C,CAAnB;AACAP,mBAAOK,MAAP,EAAeG,KAAf,CAAsB,oBAAtB;AACD,WAJD;;AAOAL,aAAG,+BAAH,EAAoC,YAAY;AAC9C,gBAAIC,YAAY,IAAIH,OAAJ,EAAhB;AACA,gBAAII,SAAS,MAAMD,UAAUE,OAAV,CAAkB,wBAAlB,EAA4C,EAACC,UAAU,IAAX,EAA5C,CAAnB;AACAP,mBAAOK,MAAP,EAAeG,KAAf,CAAsB,mBAAtB;AACD,WAJD;;AAMAL,aAAG,6CAAH,EAAkD,YAAY;AAC5D,gBAAIC,YAAY,IAAIH,OAAJ,EAAhB;AACA,gBAAII,SAAS,MAAMD,UAAUE,OAAV,CAAkB,2BAAlB,EAA+C,EAACC,UAAU,IAAX,EAA/C,CAAnB;AACAP,mBAAOK,MAAP,EAAeG,KAAf,CAAsB,eAAtB;AACD,WAJD;;AAMAL,aAAG,oCAAH,EAAyC,YAAY;AACnD,gBAAIC,YAAY,IAAIH,OAAJ,EAAhB;AACA,gBAAII,SAAS,MAAMD,UAAUE,OAAV,CAAkB,0BAAlB,EAA8C,EAACC,UAAU,IAAX,EAA9C,CAAnB;AACAP,mBAAOK,MAAP,EAAeG,KAAf,CAAsB,SAAtB;AACD,WAJD;AAKD,SA/BD;AAkCD,OApCD","file":"markdown-upndown-test.js","sourcesContent":["\nimport {expect} from 'src/external/chai.js';\n\nimport Upndown from 'src/external/upndown.js'\n\ndescribe('Markdown Upndown', () => {\n\n  describe('convert', () => {\n    it('should convert h1 to #', async () => {\n      var converter = new Upndown()\n      var source = await converter.convert(\"<h1>hello</h1\", {keepHtml: true})\n      expect(source).equal(\"# hello\")\n    });\n    \n    it('should mark attributes', async () => {\n      var converter = new Upndown()\n      var source = await converter.convert(\"<h1 bar='foo'>hello</h1\", {keepHtml: true})\n      expect(source).equal(`# hello{bar=\"foo\"}`)\n    });\n\n    \n    it('should mark ids in attributes', async () => {\n      var converter = new Upndown()\n      var source = await converter.convert(\"<h1 id='foo'>hello</h1\", {keepHtml: true})\n      expect(source).equal(`# hello{id=\"foo\"}`)\n    });\n\n    it('should mark classes in attributes specially', async () => {\n      var converter = new Upndown()\n      var source = await converter.convert(\"<h1 class='foo'>hello</h1\", {keepHtml: true})\n      expect(source).equal(`# hello{.foo}`)\n    });\n\n    it('should mark strip null and defined', async () => {\n      var converter = new Upndown()\n      var source = await converter.convert(\"<h1 foo='null'>hello</h1\", {keepHtml: true})\n      expect(source).equal(`# hello`)\n    });\n  })\n  \n  \n});"]}