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

View File

@ -1,4 +1,4 @@
Test log for: Sun Mar 18 2018 20:40:36 GMT+0000 (UTC)
Test log for: Mon Mar 19 2018 20:42:22 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.2 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -812,6 +812,10 @@ Test log for: Sun Mar 18 2018 20:40:36 GMT+0000 (UTC)
✔ passed value is not a boolean
✔ passed value is not a boolean
Testing isBrowser
✔ isBrowser is a Function
Testing isDivisible
✔ isDivisible is a Function
@ -1956,15 +1960,15 @@ Test log for: Sun Mar 18 2018 20:40:36 GMT+0000 (UTC)
✔ zipWith is a Function
✔ Sends a GET request
✔ Sends a POST request
✔ Runs the function provided
✔ Sends a POST request
✔ Runs promises in series
✔ Works as expecting, passing arguments properly
✔ Works with multiple promises
total: 998
passing: 998
duration: 2.7s
total: 999
passing: 999
duration: 2.5s