2082001ff8
* Initial tests set up This adds tests using uvu (we can switch if people want) and restructures things a bit so that it's easier to test. Like in snowpack you set up a little project. In our tests you can say: ```js const result = await runtime.load('/blog/hello-world') ``` And analyze the result. I included a `test-helpers.js` which has a function that will turn HTML into a cheerio instance, for inspecting the result HTML. * Bring snowpack example in * Formatting
11 lines
No EOL
1.1 KiB
XML
11 lines
No EOL
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg width="15px" height="12px" viewBox="0 0 15 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<title>snowpack-logo-black</title>
|
|
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
<g id="window" transform="translate(-311.000000, -13.000000)" fill="#FFFFFF" fill-rule="nonzero">
|
|
<g id="snowpack-logo-black" transform="translate(311.000000, 13.000000)">
|
|
<path d="M14.8808653,10.8445312 L8.1309317,0.34453125 C7.99288619,0.12984375 7.75523227,0 7.5,0 C7.24476854,0 7.00711463,0.12984375 6.86906911,0.34453125 L0.119135485,10.8445312 C-0.0292405545,11.0753205 -0.0397571943,11.3687106 0.0917138792,11.6095312 C0.223245453,11.8502911 0.475722639,12 0.750066781,12 L14.249934,12 C14.5243845,12 14.7768039,11.8502344 14.9082869,11.6092969 C15.0397573,11.3685585 15.0292398,11.0752353 14.8808653,10.8445312 Z M7.51445903,2.12068966 L9.51724138,5.22723371 L7.51445903,5.22723371 L6.01336908,6.72413793 L5.12068966,5.8339477 L7.51445903,2.12068966 Z" id="Shape"></path>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
</svg> |