Additional tests
This commit is contained in:
@ -4,3 +4,6 @@ const {nodeListToArray} = require('./_30s.js');
|
||||
test('nodeListToArray is a Function', () => {
|
||||
expect(nodeListToArray).toBeInstanceOf(Function);
|
||||
});
|
||||
test('nodeListToArray returns an array of proper length', () => {
|
||||
expect(nodeListToArray(document.childNodes).length).toBe(2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user