Test cleanup and fixes [c-d]
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const digitize = require('./digitize.js');
|
||||
|
||||
|
||||
test('digitize is a Function', () => {
|
||||
test('digitize is a Function', () => {
|
||||
expect(digitize).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(digitize(123), [1, 2, 3], "Converts a number to an array of digits");
|
||||
|
||||
test('Converts a number to an array of digits', () => {
|
||||
expect(digitize(123)).toEqual([1, 2,3])
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user