Additional tests and updated hide footprint to match show

This commit is contained in:
Angelos Chalaris
2018-11-10 11:21:31 +02:00
parent 34bd448512
commit 85ad8f1783
8 changed files with 4345 additions and 4329 deletions

View File

@ -4,3 +4,9 @@ const {show} = require('./_30s.js');
test('show is a Function', () => {
expect(show).toBeInstanceOf(Function);
});
test('show shows an element', () => {
let el = document.createElement('div');
el.setAttribute('style', 'display: none;');
show(el);
expect(el.style.display).not.toBe('none');
});