I'd like to make it possible to:
Writing an example like:
@example
This is some text describing the example code.
@src html
<h1>Hello World</h1>
<script src='../steal/steal.js'></script>
@src js
import $ from 'jquery'
$("h1").fadeIn();
@src css
h1{ display: none}
@src test
import js from 'js'
import QUnit from 'steal-qunit'
QUnit.module("hello-world")
QUnit.test("fadeIn", function(){
})
Issues:
"runtime" issues
- JSBin will run "src" code right away.
- But while testing, the "src" code will mostly need to be executed within the extra test.
src test could be written like:
@src test
import QUnit from 'steal-qunit'
QUnit.module("hello-world");
QUnit.asyncTest("fadeIn", function(){
Promise.all([
'html!add-html-to-qunit-fixture', 'js', 'css!css'
]).then(function(){
QUnit.equal( $("h1").css("opacity"), 1);
start();
})
})
Issues:
I'd like to make it possible to:
Writing an example like:
Issues:
"runtime" issues
src test could be written like:
Issues: