Travis build: 1837 [cron]
This commit is contained in:
2
test/isBrowser/isBrowser.js
Normal file
2
test/isBrowser/isBrowser.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
const isBrowser = () => ![typeof window, typeof document].includes('undefined');
|
||||||
|
module.exports = isBrowser;
|
||||||
13
test/isBrowser/isBrowser.test.js
Normal file
13
test/isBrowser/isBrowser.test.js
Normal 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();
|
||||||
|
});
|
||||||
14
test/testlog
14
test/testlog
@ -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
|
> 30-seconds-of-code@0.0.2 test /home/travis/build/Chalarangelo/30-seconds-of-code
|
||||||
> tape test/**/*.test.js | tap-spec
|
> 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
|
||||||
✔ passed value is not a boolean
|
✔ passed value is not a boolean
|
||||||
|
|
||||||
|
Testing isBrowser
|
||||||
|
|
||||||
|
✔ isBrowser is a Function
|
||||||
|
|
||||||
Testing isDivisible
|
Testing isDivisible
|
||||||
|
|
||||||
✔ isDivisible is a Function
|
✔ 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
|
✔ zipWith is a Function
|
||||||
✔ Sends a GET request
|
✔ Sends a GET request
|
||||||
✔ Sends a POST request
|
|
||||||
✔ Runs the function provided
|
✔ Runs the function provided
|
||||||
|
✔ Sends a POST request
|
||||||
✔ Runs promises in series
|
✔ Runs promises in series
|
||||||
✔ Works as expecting, passing arguments properly
|
✔ Works as expecting, passing arguments properly
|
||||||
✔ Works with multiple promises
|
✔ Works with multiple promises
|
||||||
|
|
||||||
|
|
||||||
total: 998
|
total: 999
|
||||||
passing: 998
|
passing: 999
|
||||||
duration: 2.7s
|
duration: 2.5s
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user