Travis build: 1837 [cron]

This commit is contained in:
30secondsofcode
2018-03-19 20:42:30 +00:00
parent 29949abafb
commit f04521e470
3 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,2 @@
const isBrowser = () => ![typeof window, typeof document].includes('undefined');
module.exports = isBrowser;

View File

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