formations/javascript/base/exercices/tests-unitaires/math-suite.js

10 lines
196 B
JavaScript
Raw Permalink Normal View History

this.MathSuite = {
'Math.sqrt() should return the square root of a number': function(test) {
test.equal(Math.sqrt(4), 2, 'It should return 2');
test.expect(1);
test.done();
}
};