JSFiddle - React, Tailwind, and code Playground

by elewinso

HTML

<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css">
<script src="http://code.jquery.com/qunit/git/qunit.js"></script>
<html>
    <head>
        
    </head>
    <body>
        <h1 id="qunit-header">QUnit example</h1>
        <h2 id="qunit-banner"></h2>
        <div id="qunit-testrunner-toolbar"></div>
        <h2 id="qunit-userAgent"></h2>
        <ol id="qunit-tests"></ol>
        <div id="qunit-fixture">test markup, will be hidden</div>
    </body>
</html>

JavaScript

test("a basic test example", function() {
    ok(true, "this test is fine");
    var value = "hello";
    equals("hello", value, "We expect value to be hello");
});

module("Module A");

test("first test within module", function() {
    ok(true, "all pass");
});

test("second test within module", function() {
    ok(true, "all pass");
});

module("Module B");

test("some other test", function() {
    expect(2);
    equals(true, false, "failing test");
    equals(true, true, "passing test");
});