const assert = require('assert'); const { describe, it } = require('mocha'); describe('Testing Add Function', function() { it('should return the sum of two numbers', function() { assert.equal(add(1, 2), 3); assert.equal(add(-1, 2), 1); }); }); function add(a, b) { return a + b; }