template.html 873 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="stylesheet" href="https://cdn.jsdelivr.net/qunit/1.14.0/qunit.css" type="text/css" media="screen" />
  6. </head>
  7. <body>
  8. <div id="qunit"></div>
  9. <div id="qunit-fixture"></div>
  10. <script src="http://cdn.jsdelivr.net/qunit/1.14.0/qunit.js"></script>
  11. <script src="../emojione.js"></script>
  12. <script>
  13. <% _.each(data, function(collection) { %>
  14. QUnit.module("<%= collection.module %>");
  15. <% _.each(collection.tests, function(test) { %>
  16. QUnit.test( "<%= test.description %>", function( assert ) {
  17. assert.equal(emojione.<%= collection.module %>("<%= test.text %>"), "<%= test.expected %>");
  18. });
  19. <% }); %>
  20. <% }); %>
  21. </script>
  22. </body>
  23. </html>