You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
899 B

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/qunit@2.19.4/qunit/qunit.css" type="text/css" media="screen" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="https://cdn.jsdelivr.net/npm/qunit@2.19.4/qunit/qunit.min.js"></script>
<script src="../joypixels.js"></script>
<script>
<% _.each(data, function(collection) { %>
QUnit.module("<%= collection.module %>");
<% _.each(collection.tests, function(test) { %>
QUnit.test( "<%= test.description %>", function( assert ) {
assert.equal(joypixels.<%= collection.module %>("<%= test.text %>"), '<%= test.expected %>');
});
<% }); %>
<% }); %>
</script>
</body>
</html>