Added remaining tests
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing arrayToHtmlList', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof arrayToHtmlList === 'function', 'arrayToHtmlList is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(arrayToHtmlList(args..), 'Expected');
|
||||
//t.equal(arrayToHtmlList(args..), 'Expected');
|
||||
//t.false(arrayToHtmlList(args..), 'Expected');
|
||||
//t.throws(arrayToHtmlList(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,22 +5,19 @@ test('Testing chainAsync', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof chainAsync === 'function', 'chainAsync is a Function');
|
||||
//t.deepEqual(chainAsync(args..), 'Expected');
|
||||
// chainAsync([
|
||||
// next => {
|
||||
// next();
|
||||
// },
|
||||
// next => {
|
||||
// (() =>{
|
||||
// next()
|
||||
// })();
|
||||
// },
|
||||
// next => {
|
||||
// t.pass("Calls all functions in an array");
|
||||
// next();
|
||||
// }
|
||||
// ]);
|
||||
//
|
||||
chainAsync([
|
||||
next => {
|
||||
next();
|
||||
},
|
||||
next => {
|
||||
(() =>{
|
||||
next()
|
||||
})();
|
||||
},
|
||||
next => {
|
||||
t.pass("Calls all functions in an array");
|
||||
}
|
||||
]);
|
||||
// // Ensure we wait for the 2nd assertion to be made
|
||||
// t.plan(2);
|
||||
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing createElement', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof createElement === 'function', 'createElement is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(createElement(args..), 'Expected');
|
||||
//t.equal(createElement(args..), 'Expected');
|
||||
//t.false(createElement(args..), 'Expected');
|
||||
//t.throws(createElement(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing createEventHub', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof createEventHub === 'function', 'createEventHub is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(createEventHub(args..), 'Expected');
|
||||
//t.equal(createEventHub(args..), 'Expected');
|
||||
//t.false(createEventHub(args..), 'Expected');
|
||||
//t.throws(createEventHub(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing currentURL', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof currentURL === 'function', 'currentURL is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(currentURL(args..), 'Expected');
|
||||
//t.equal(currentURL(args..), 'Expected');
|
||||
//t.false(currentURL(args..), 'Expected');
|
||||
//t.throws(currentURL(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing debounce', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof debounce === 'function', 'debounce is a Function');
|
||||
debounce(() => {t.pass('Works as expected');}, 250);
|
||||
//t.deepEqual(debounce(args..), 'Expected');
|
||||
//t.equal(debounce(args..), 'Expected');
|
||||
//t.false(debounce(args..), 'Expected');
|
||||
//t.throws(debounce(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing defaults', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof defaults === 'function', 'defaults is a Function');
|
||||
t.deepEqual(defaults({ a: 1 }, { b: 2 }, { b: 6 }, { a: 3 }), { a: 1, b: 2 }, 'Assigns default values for undefined properties');
|
||||
//t.deepEqual(defaults(args..), 'Expected');
|
||||
//t.equal(defaults(args..), 'Expected');
|
||||
//t.false(defaults(args..), 'Expected');
|
||||
//t.throws(defaults(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing defer', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof defer === 'function', 'defer is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(defer(args..), 'Expected');
|
||||
//t.equal(defer(args..), 'Expected');
|
||||
//t.false(defer(args..), 'Expected');
|
||||
//t.throws(defer(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,16 @@ test('Testing delay', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof delay === 'function', 'delay is a Function');
|
||||
delay(
|
||||
function(text) {
|
||||
t.equals(text, 'test', 'Works as expecting, passing arguments properly');
|
||||
},
|
||||
1000,
|
||||
'test'
|
||||
);
|
||||
//t.deepEqual(delay(args..), 'Expected');
|
||||
//t.equal(delay(args..), 'Expected');
|
||||
//t.false(delay(args..), 'Expected');
|
||||
//t.throws(delay(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing getScrollPosition', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof getScrollPosition === 'function', 'getScrollPosition is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(getScrollPosition(args..), 'Expected');
|
||||
//t.equal(getScrollPosition(args..), 'Expected');
|
||||
//t.false(getScrollPosition(args..), 'Expected');
|
||||
//t.throws(getScrollPosition(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing getStyle', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof getStyle === 'function', 'getStyle is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(getStyle(args..), 'Expected');
|
||||
//t.equal(getStyle(args..), 'Expected');
|
||||
//t.false(getStyle(args..), 'Expected');
|
||||
//t.throws(getStyle(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing hasFlags', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof hasFlags === 'function', 'hasFlags is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(hasFlags(args..), 'Expected');
|
||||
//t.equal(hasFlags(args..), 'Expected');
|
||||
//t.false(hasFlags(args..), 'Expected');
|
||||
//t.throws(hasFlags(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing hashBrowser', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof hashBrowser === 'function', 'hashBrowser is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(hashBrowser(args..), 'Expected');
|
||||
//t.equal(hashBrowser(args..), 'Expected');
|
||||
//t.false(hashBrowser(args..), 'Expected');
|
||||
//t.throws(hashBrowser(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing hide', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof hide === 'function', 'hide is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(hide(args..), 'Expected');
|
||||
//t.equal(hide(args..), 'Expected');
|
||||
//t.false(hide(args..), 'Expected');
|
||||
//t.throws(hide(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing off', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof off === 'function', 'off is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(off(args..), 'Expected');
|
||||
//t.equal(off(args..), 'Expected');
|
||||
//t.false(off(args..), 'Expected');
|
||||
//t.throws(off(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing on', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof on === 'function', 'on is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(on(args..), 'Expected');
|
||||
//t.equal(on(args..), 'Expected');
|
||||
//t.false(on(args..), 'Expected');
|
||||
//t.throws(on(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing onUserInputChange', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof onUserInputChange === 'function', 'onUserInputChange is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(onUserInputChange(args..), 'Expected');
|
||||
//t.equal(onUserInputChange(args..), 'Expected');
|
||||
//t.false(onUserInputChange(args..), 'Expected');
|
||||
//t.throws(onUserInputChange(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing once', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof once === 'function', 'once is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(once(args..), 'Expected');
|
||||
//t.equal(once(args..), 'Expected');
|
||||
//t.false(once(args..), 'Expected');
|
||||
//t.throws(once(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing setStyle', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof setStyle === 'function', 'setStyle is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(setStyle(args..), 'Expected');
|
||||
//t.equal(setStyle(args..), 'Expected');
|
||||
//t.false(setStyle(args..), 'Expected');
|
||||
//t.throws(setStyle(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing show', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof show === 'function', 'show is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(show(args..), 'Expected');
|
||||
//t.equal(show(args..), 'Expected');
|
||||
//t.false(show(args..), 'Expected');
|
||||
//t.throws(show(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,13 @@ test('Testing sleep', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof sleep === 'function', 'sleep is a Function');
|
||||
async function sleepyWork() {
|
||||
await sleep(1000);
|
||||
t.pass('Works as expected');
|
||||
}
|
||||
//t.deepEqual(sleep(args..), 'Expected');
|
||||
//t.equal(sleep(args..), 'Expected');
|
||||
//t.false(sleep(args..), 'Expected');
|
||||
//t.throws(sleep(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
1944
test/testlog
1944
test/testlog
File diff suppressed because it is too large
Load Diff
@ -5,9 +5,10 @@ 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.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(throttle(args..), 'Expected');
|
||||
//t.equal(throttle(args..), 'Expected');
|
||||
//t.false(throttle(args..), 'Expected');
|
||||
//t.throws(throttle(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing timeTaken', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof timeTaken === 'function', 'timeTaken is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(timeTaken(args..), 'Expected');
|
||||
//t.equal(timeTaken(args..), 'Expected');
|
||||
//t.false(timeTaken(args..), 'Expected');
|
||||
//t.throws(timeTaken(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,9 +5,10 @@ test('Testing toggleClass', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof toggleClass === 'function', 'toggleClass is a Function');
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
//t.deepEqual(toggleClass(args..), 'Expected');
|
||||
//t.equal(toggleClass(args..), 'Expected');
|
||||
//t.false(toggleClass(args..), 'Expected');
|
||||
//t.throws(toggleClass(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user