Add counter snippet

This commit is contained in:
Angelos Chalaris
2018-05-06 17:55:46 +03:00
parent 49abeb9b9d
commit 95a121a832
5 changed files with 1130 additions and 1073 deletions

View File

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