Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
9
test/digitize/digitize.test.js
Normal file
9
test/digitize/digitize.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const digitize = require('./digitize.js');
|
||||
|
||||
|
||||
test('digitize is a Function', () => {
|
||||
expect(digitize).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(digitize(123), [1, 2, 3], "Converts a number to an array of digits");
|
||||
|
||||
Reference in New Issue
Block a user