JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/qunit/qunit-1.10.0.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.10.0.css">
<div id="qunit"></div>
JavaScript
QUnit.asyncTest( 'authenticate api', 1, function ( assert ) {
$.ajax({
type: "POST",
url: "/echo/json/",
data: JSON.stringify({
"Domain":null,
"Username":"administrator",
"Password":"password"
}),
cache: false,
dataType: 'json',
}).done( function( data ) {
assert.ok( data, 'AJAX complete' )
});
setTimeout(function() {
QUnit.start();
}, 2000);
});
QUnit.test( 'another test', 2, function ( assert ) {
assert.ok( true, 'yep' );
assert.ok( false, 'nope' );
});