Files
30-seconds-of-code/test/throttle/throttle.test.js
Angelos Chalaris 06d7e04220 Added some tests
2018-01-28 16:28:54 +02:00

13 lines
479 B
JavaScript

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