Files
30-seconds-of-code/test/isBrowserTabFocused.test.js
Angelos Chalaris 81c975289c Additional tests
2018-11-07 15:03:27 +02:00

10 lines
307 B
JavaScript

const expect = require('expect');
const {isBrowserTabFocused} = require('./_30s.js');
test('isBrowserTabFocused is a Function', () => {
expect(isBrowserTabFocused).toBeInstanceOf(Function);
});
test('isBrowserTabFocused is a Function', () => {
expect(typeof isBrowserTabFocused()).toBe('boolean');
});