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.

index.html 925B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet">
  9. </head>
  10. <body>
  11. <div id="mocha"></div>
  12. <!-- Add the Chai assertion library -->
  13. <script src="http://chaijs.com/chai.js"></script>
  14. <!-- Add the Mocha test library -->
  15. <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
  16. <script>
  17. // Set chai.expect as a global variable
  18. var expect = chai.expect;
  19. // Setup Mocha to use the BDD interface
  20. mocha.setup('bdd');
  21. </script>
  22. <!-- Import the sum function -->
  23. <script src="/sum.js"></script>
  24. <!-- Import the tests for the sum function -->
  25. <script src="/sum.test.js"></script>
  26. <script>
  27. // Run the tests with Mocha
  28. mocha.run();
  29. </script>
  30. </body>
  31. </html>