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.

firstTest.js 566B

123456789101112131415161718
  1. var assert = require('chai').assert;
  2. var first = require('../first.js');
  3. describe('first.js', function () {
  4. it('Adding 2 numbers works', function () {
  5. assert.equal(first.addNumbers(3, 4), 7);
  6. });
  7. it('Adding 2 numbers results in number', function () {
  8. assert.typeOf(first.addNumbers(3, 4), 'number');
  9. });
  10. it('Subtract 2 numbers works', function () {
  11. assert.equal(first.subtractNumbers(4, 3), 1);
  12. });
  13. it('should return hello world ', function () {
  14. assert.equal(first.message(), 'hello world');
  15. });
  16. });