Test cleanup and fixes [c-d]
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const clampNumber = require('./clampNumber.js');
|
||||
|
||||
|
||||
test('clampNumber is a Function', () => {
|
||||
test('clampNumber is a Function', () => {
|
||||
expect(clampNumber).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(clampNumber(2, 3, 5), 3, "Clamps num within the inclusive range specified by the boundary values a and b");
|
||||
|
||||
test('Clamps num within the inclusive range specified by the boundary values a and b', () => {
|
||||
expect(clampNumber(2, 3, 5)).toBe(3)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user