Travis build: 1770 [cron]

This commit is contained in:
30secondsofcode
2018-03-03 20:31:16 +00:00
parent 4e9b80fe4a
commit 0ceaaf0873
3 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,5 @@
const smoothScroll = element =>
document.querySelector(element).scrollIntoView({
behavior: 'smooth'
});
module.exports = smoothScroll;

View File

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

View File

@ -1,4 +1,4 @@
Test log for: Fri Mar 02 2018 20:31:49 GMT+0000 (UTC) Test log for: Sat Mar 03 2018 20:31:08 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
@ -1532,6 +1532,10 @@ Test log for: Fri Mar 02 2018 20:31:49 GMT+0000 (UTC)
✔ sleep is a Function ✔ sleep is a Function
Testing smoothScroll
✔ smoothScroll is a Function
Testing solveRPN Testing solveRPN
✔ solveRPN is a Function ✔ solveRPN is a Function
@ -1952,8 +1956,8 @@ Test log for: Fri Mar 02 2018 20:31:49 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
@ -1968,8 +1972,8 @@ Test log for: Fri Mar 02 2018 20:31:49 GMT+0000 (UTC)
✖ length of string is 8 ✖ length of string is 8
total: 987 total: 988
passing: 985 passing: 986
failing: 2 failing: 2
duration: 2.5s duration: 2.5s