This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const Calc = require('./../Calc'); | |
const chai = require('chai'); | |
const expect = chai.expect; | |
describe('name of file - Calc', ( ) => { | |
it('description of the test - sum should return 4', (done) => { | |
let resultSum = Calc.sum( 2, 2 ); | |
expect( resultSum ).to.be.equal( 4 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = { | |
sum: (n1, n2) => { | |
return n1 + n2; | |
}, | |
sub: (n1, n2) => { | |
return n1 - n2; | |
}, |
NewerOlder