Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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.

test.html 809B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- public/index.html -->
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Mocha Tests</title>
  7. <!-- Include Mocha CSS styles -->
  8. <link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
  9. </head>
  10. <body>
  11. <div id="mocha"></div>
  12. <script src="https://unpkg.com/chai/chai.js"></script>
  13. <script src="https://unpkg.com/mocha/mocha.js"></script>
  14. <script>
  15. // Set chai.expect as a global variable
  16. var expect = chai.expect;
  17. // Setup Mocha to use the BDD interface
  18. mocha.setup('bdd');
  19. </script>
  20. <!-- Import the sum function -->
  21. <script src="sum.js"></script>
  22. <!-- Import the tests for the sum function -->
  23. <script src="sum.test.js"></script>
  24. <script>
  25. // Run the tests with Mocha
  26. mocha.run();
  27. </script>
  28. </body>
  29. </html>