Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-10 12:01:25 +02:00
parent 761741f149
commit e35777176f
5 changed files with 64 additions and 0 deletions

View File

@ -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);
});