Add isBrowserTabFocused, fixed is tests

This commit is contained in:
Angelos Chalaris
2018-04-15 19:18:44 +03:00
parent 6056a146e2
commit a4792c9618
6 changed files with 1101 additions and 1104 deletions

View File

@ -0,0 +1,13 @@
const test = require('tape');
const isBrowserTabFocused = require('./isBrowserTabFocused.js');
test('Testing isBrowserTabFocused', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof isBrowserTabFocused === 'function', 'isBrowserTabFocused is a Function');
//t.deepEqual(isBrowserTabFocused(args..), 'Expected');
//t.equal(isBrowserTabFocused(args..), 'Expected');
//t.false(isBrowserTabFocused(args..), 'Expected');
//t.throws(isBrowserTabFocused(args..), 'Expected');
t.end();
});