Loading test/fixtures.staticpages/helper-code-default/expected/index.html 0 → 100644 +14 −0 Original line number Diff line number Diff line <html> <body> <div class="code-example"><pre><code class="html"><span class="hljs-tag"><<span class="hljs-name">section</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"galaxy"</span>></span> <span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"planet"</span>></span> <span class="hljs-tag"><<span class="hljs-name">h1</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"earth"</span>></span> some markup... <span class="hljs-tag"></<span class="hljs-name">h1</span>></span> <span class="hljs-tag"></<span class="hljs-name">div</span>></span> <span class="hljs-tag"><<span class="hljs-name">span</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"sun"</span>></span> more markup... <span class="hljs-tag"></<span class="hljs-name">span</span>></span> <span class="hljs-tag"></<span class="hljs-name">section</span>></span> </code></pre></div> </body> </html> test/fixtures.staticpages/helper-code-default/expected/pl/patternlibrary.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "patterns": {}, "categories": [] } test/fixtures.staticpages/helper-code-default/layouts/default.html 0 → 100644 +5 −0 Original line number Diff line number Diff line <html> <body> {{> body}} </body> </html> test/fixtures.staticpages/helper-code-default/pages/index.html 0 → 100644 +12 −0 Original line number Diff line number Diff line {{#code}} <section class="galaxy"> <div class="planet"> <h1 id="earth"> some markup... </h1> </div> <span id="sun"> more markup... </span> </section> {{/code}} test/test.01.init-config.js +13 −0 Original line number Diff line number Diff line Loading @@ -227,5 +227,18 @@ describe('Patternlibrary instanciation and configuration:', function() { }); describe('Patternlibrary.reset()', function() { it('should clear all pattern-, category- and user data', function () { var p = new Patternlibrary.Patternlibrary(); p.data.someKey = 'some value'; p.reset(); expect(p.data).not.to.have.a.key('someKey'); expect(p.data.patterns).to.be.a('object'); expect(p.data.categories).to.be.a('object'); expect(Object.keys(p.data.patterns).length).to.equal(0); expect(Object.keys(p.data.categories).length).to.equal(0); }); }); }); Loading
test/fixtures.staticpages/helper-code-default/expected/index.html 0 → 100644 +14 −0 Original line number Diff line number Diff line <html> <body> <div class="code-example"><pre><code class="html"><span class="hljs-tag"><<span class="hljs-name">section</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"galaxy"</span>></span> <span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"planet"</span>></span> <span class="hljs-tag"><<span class="hljs-name">h1</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"earth"</span>></span> some markup... <span class="hljs-tag"></<span class="hljs-name">h1</span>></span> <span class="hljs-tag"></<span class="hljs-name">div</span>></span> <span class="hljs-tag"><<span class="hljs-name">span</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"sun"</span>></span> more markup... <span class="hljs-tag"></<span class="hljs-name">span</span>></span> <span class="hljs-tag"></<span class="hljs-name">section</span>></span> </code></pre></div> </body> </html>
test/fixtures.staticpages/helper-code-default/expected/pl/patternlibrary.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "patterns": {}, "categories": [] }
test/fixtures.staticpages/helper-code-default/layouts/default.html 0 → 100644 +5 −0 Original line number Diff line number Diff line <html> <body> {{> body}} </body> </html>
test/fixtures.staticpages/helper-code-default/pages/index.html 0 → 100644 +12 −0 Original line number Diff line number Diff line {{#code}} <section class="galaxy"> <div class="planet"> <h1 id="earth"> some markup... </h1> </div> <span id="sun"> more markup... </span> </section> {{/code}}
test/test.01.init-config.js +13 −0 Original line number Diff line number Diff line Loading @@ -227,5 +227,18 @@ describe('Patternlibrary instanciation and configuration:', function() { }); describe('Patternlibrary.reset()', function() { it('should clear all pattern-, category- and user data', function () { var p = new Patternlibrary.Patternlibrary(); p.data.someKey = 'some value'; p.reset(); expect(p.data).not.to.have.a.key('someKey'); expect(p.data.patterns).to.be.a('object'); expect(p.data.categories).to.be.a('object'); expect(Object.keys(p.data.patterns).length).to.equal(0); expect(Object.keys(p.data.categories).length).to.equal(0); }); }); });