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.

addTest.js 483B

123456789101112131415161718192021222324252627
  1. import { message } from "../message.js";
  2. const assert = chai.assert;
  3. describe("#esm", function () {
  4. it("nice message", function () {
  5. assert.equal('hello, duke', message());
  6. })
  7. })
  8. describe('sum', function () {
  9. it('should return sum of arguments', function () {
  10. chai.expect(add(1, 2)).to.equal(3);
  11. });
  12. });
  13. describe('sum', function () {
  14. it('should return sum of arguments', function () {
  15. chai.expect(sum(1, 2)).to.equal(3);
  16. });
  17. });
  18. mocha.run();