Travis build: 1770 [cron]

This commit is contained in:
30secondsofcode
2018-03-03 20:31:16 +00:00
parent 875c0b2a12
commit b8a7bd1fc9
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();
});