diff --git a/test/arrayToHtmlList/arrayToHtmlList.test.js b/test/arrayToHtmlList/arrayToHtmlList.test.js
index 1f8885778..7cb8f4582 100644
--- a/test/arrayToHtmlList/arrayToHtmlList.test.js
+++ b/test/arrayToHtmlList/arrayToHtmlList.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/chainAsync/chainAsync.test.js b/test/chainAsync/chainAsync.test.js
index d013df52f..244862417 100644
--- a/test/chainAsync/chainAsync.test.js
+++ b/test/chainAsync/chainAsync.test.js
@@ -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);
diff --git a/test/createElement/createElement.test.js b/test/createElement/createElement.test.js
index f773ea672..6923ec245 100644
--- a/test/createElement/createElement.test.js
+++ b/test/createElement/createElement.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/createEventHub/createEventHub.test.js b/test/createEventHub/createEventHub.test.js
index 759c461b3..101d07aef 100644
--- a/test/createEventHub/createEventHub.test.js
+++ b/test/createEventHub/createEventHub.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/currentURL/currentURL.test.js b/test/currentURL/currentURL.test.js
index e7dba8ee4..e190ad429 100644
--- a/test/currentURL/currentURL.test.js
+++ b/test/currentURL/currentURL.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/debounce/debounce.test.js b/test/debounce/debounce.test.js
index f1a35323c..867aac93a 100644
--- a/test/debounce/debounce.test.js
+++ b/test/debounce/debounce.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/defaults/defaults.test.js b/test/defaults/defaults.test.js
index ab1afa29e..b3c519f9d 100644
--- a/test/defaults/defaults.test.js
+++ b/test/defaults/defaults.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/defer/defer.test.js b/test/defer/defer.test.js
index faa5731c9..23e125b90 100644
--- a/test/defer/defer.test.js
+++ b/test/defer/defer.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/delay/delay.test.js b/test/delay/delay.test.js
index 544f8632d..8404b3bcb 100644
--- a/test/delay/delay.test.js
+++ b/test/delay/delay.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/getScrollPosition/getScrollPosition.test.js b/test/getScrollPosition/getScrollPosition.test.js
index ded20c020..9f7fd14d7 100644
--- a/test/getScrollPosition/getScrollPosition.test.js
+++ b/test/getScrollPosition/getScrollPosition.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/getStyle/getStyle.test.js b/test/getStyle/getStyle.test.js
index 11c2c9244..23bac0147 100644
--- a/test/getStyle/getStyle.test.js
+++ b/test/getStyle/getStyle.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/hasFlags/hasFlags.test.js b/test/hasFlags/hasFlags.test.js
index 0245051be..be0d4c301 100644
--- a/test/hasFlags/hasFlags.test.js
+++ b/test/hasFlags/hasFlags.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/hashBrowser/hashBrowser.test.js b/test/hashBrowser/hashBrowser.test.js
index d01cafc5b..5464dd95d 100644
--- a/test/hashBrowser/hashBrowser.test.js
+++ b/test/hashBrowser/hashBrowser.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/hide/hide.test.js b/test/hide/hide.test.js
index d93d3fa74..af1971858 100644
--- a/test/hide/hide.test.js
+++ b/test/hide/hide.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/off/off.test.js b/test/off/off.test.js
index 030e7797a..8a3eca663 100644
--- a/test/off/off.test.js
+++ b/test/off/off.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/on/on.test.js b/test/on/on.test.js
index 5bfa58a76..f14e85ad0 100644
--- a/test/on/on.test.js
+++ b/test/on/on.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/onUserInputChange/onUserInputChange.test.js b/test/onUserInputChange/onUserInputChange.test.js
index c4c181806..bbc726d63 100644
--- a/test/onUserInputChange/onUserInputChange.test.js
+++ b/test/onUserInputChange/onUserInputChange.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/once/once.test.js b/test/once/once.test.js
index 6d457fe01..89aba3872 100644
--- a/test/once/once.test.js
+++ b/test/once/once.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/setStyle/setStyle.test.js b/test/setStyle/setStyle.test.js
index 796ab1316..3c8e4aa94 100644
--- a/test/setStyle/setStyle.test.js
+++ b/test/setStyle/setStyle.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/show/show.test.js b/test/show/show.test.js
index 06cf5e26e..859735338 100644
--- a/test/show/show.test.js
+++ b/test/show/show.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/sleep/sleep.test.js b/test/sleep/sleep.test.js
index 8d5388924..57beb16e2 100644
--- a/test/sleep/sleep.test.js
+++ b/test/sleep/sleep.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/testlog b/test/testlog
index 0d6347ab4..9af1b19b9 100644
--- a/test/testlog
+++ b/test/testlog
@@ -1,6 +1,6 @@
-Test log for: Fri Feb 16 2018 13:42:15 GMT+0200 (GTB Standard Time)
+Test log for: Fri Feb 16 2018 14:00:11 GMT+0200 (GTB Standard Time)
-> 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code
+> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@@ -18,10 +18,10 @@ Test log for: Fri Feb 16 2018 13:42:15 GMT+0200 (GTB Standard Time)
Testing anagrams
- ✔ anagrams is a Function
- ✔ Generates all anagrams of a string
- ✔ Works for single-letter strings
- ✔ Works for empty strings
+ √ anagrams is a Function
+ √ Generates all anagrams of a string
+ √ Works for single-letter strings
+ √ Works for empty strings
Testing any
@@ -34,1043 +34,1065 @@ Test log for: Fri Feb 16 2018 13:42:15 GMT+0200 (GTB Standard Time)
Testing approximatelyEqual
- ✔ approximatelyEqual is a Function
- ✔ Works for PI / 2
- ✔ Works for 0.1 + 0.2 === 0.3
- ✔ Works for exactly equal values
- ✔ Works for a custom epsilon
+ √ approximatelyEqual is a Function
+ √ Works for PI / 2
+ √ Works for 0.1 + 0.2 === 0.3
+ √ Works for exactly equal values
+ √ Works for a custom epsilon
Testing arrayToHtmlList
- ✔ arrayToHtmlList is a Function
+ √ arrayToHtmlList is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing ary
- ✔ ary is a Function
- ✔ Discards arguments with index >=n
+ √ ary is a Function
+ √ Discards arguments with index >=n
Testing atob
- ✔ atob is a Function
- ✔ atob("Zm9vYmFy") equals "foobar"
- ✔ atob("Z") returns ""
+ √ atob is a Function
+ √ atob("Zm9vYmFy") equals "foobar"
+ √ atob("Z") returns ""
Testing attempt
- ✔ attempt is a Function
- ✔ Returns a value
- ✔ Returns an error
+ √ attempt is a Function
+ √ Returns a value
+ √ Returns an error
Testing average
- ✔ average is a Function
- ✔ average(true) returns 0
- ✔ average(false) returns 1
- ✔ average(9, 1) returns 5
- ✔ average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092
- ✔ average(1, 2, 3) returns 2
- ✔ average(null) returns 0
- ✔ average(1, 2, 3) returns NaN
- ✔ average(String) returns NaN
- ✔ average({ a: 123}) returns NaN
- ✔ average([undefined, 0, string]) returns NaN
- ✔ head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
+ √ average is a Function
+ √ average(true) returns 0
+ √ average(false) returns 1
+ √ average(9, 1) returns 5
+ √ average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092
+ √ average(1, 2, 3) returns 2
+ √ average(null) returns 0
+ √ average(1, 2, 3) returns NaN
+ √ average(String) returns NaN
+ √ average({ a: 123}) returns NaN
+ √ average([undefined, 0, string]) returns NaN
+ √ average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
Testing averageBy
- ✔ averageBy is a Function
- ✔ Produces the right result with a function
- ✔ Produces the right result with a property name
+ √ averageBy is a Function
+ √ Produces the right result with a function
+ √ Produces the right result with a property name
Testing bifurcate
- ✔ bifurcate is a Function
- ✔ Splits the collection into two groups
+ √ bifurcate is a Function
+ √ Splits the collection into two groups
Testing bifurcateBy
- ✔ bifurcateBy is a Function
- ✔ Splits the collection into two groups
+ √ bifurcateBy is a Function
+ √ Splits the collection into two groups
Testing binarySearch
- ✔ binarySearch is a Function
- ✔ Finds item in array
- ✔ Returns -1 when not found
- ✔ Works with empty arrays
- ✔ Works for one element arrays
+ √ binarySearch is a Function
+ √ Finds item in array
+ √ Returns -1 when not found
+ √ Works with empty arrays
+ √ Works for one element arrays
Testing bind
- ✔ bind is a Function
- ✔ Binds to an object context
+ √ bind is a Function
+ √ Binds to an object context
Testing bindAll
- ✔ bindAll is a Function
- ✔ Binds to an object context
+ √ bindAll is a Function
+ √ Binds to an object context
Testing bindKey
- ✔ bindKey is a Function
- ✔ Binds function to an object context
+ √ bindKey is a Function
+ √ Binds function to an object context
Testing binomialCoefficient
- ✔ binomialCoefficient is a Function
- ✔ Returns the appropriate value
- ✔ Returns the appropriate value
- ✔ Returns the appropriate value
- ✔ Returns NaN
- ✔ Returns NaN
+ √ binomialCoefficient is a Function
+ √ Returns the appropriate value
+ √ Returns the appropriate value
+ √ Returns the appropriate value
+ √ Returns NaN
+ √ Returns NaN
Testing bottomVisible
- ✔ bottomVisible is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ bottomVisible is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing btoa
- ✔ btoa is a Function
- ✔ btoa("foobar") equals "Zm9vYmFy"
+ √ btoa is a Function
+ √ btoa("foobar") equals "Zm9vYmFy"
Testing byteSize
- ✔ byteSize is a Function
- ✔ Works for a single letter
- ✔ Works for a common string
- ✔ Works for emoji
+ √ byteSize is a Function
+ √ Works for a single letter
+ √ Works for a common string
+ √ Works for emoji
Testing call
- ✔ call is a Function
- ✔ Calls function on given object
+ √ call is a Function
+ √ Calls function on given object
Testing capitalize
- ✔ capitalize is a Function
- ✔ Capitalizes the first letter of a string
- ✔ Capitalizes the first letter of a string
- ✔ Works with characters
- ✔ Works with single character words
+ √ capitalize is a Function
+ √ Capitalizes the first letter of a string
+ √ Capitalizes the first letter of a string
+ √ Works with characters
+ √ Works with single character words
Testing capitalizeEveryWord
- ✔ capitalizeEveryWord is a Function
- ✔ Capitalizes the first letter of every word in a string
- ✔ Works with characters
- ✔ Works with one word string
+ √ capitalizeEveryWord is a Function
+ √ Capitalizes the first letter of every word in a string
+ √ Works with characters
+ √ Works with one word string
Testing castArray
- ✔ castArray is a Function
- ✔ Works for single values
- ✔ Works for arrays with one value
- ✔ Works for arrays with multiple value
- ✔ Works for strings
- ✔ Works for objects
+ √ castArray is a Function
+ √ Works for single values
+ √ Works for arrays with one value
+ √ Works for arrays with multiple value
+ √ Works for strings
+ √ Works for objects
Testing chainAsync
- ✔ chainAsync is a Function
+ √ chainAsync is a Function
+ √ Calls all functions in an array
Testing chunk
- ✔ chunk is a Function
- ✔ chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]]
- ✔ chunk([]) returns []
- ✔ chunk(123) returns []
- ✔ chunk({ a: 123}) returns []
- ✔ chunk(string, 2) returns [ st, ri, ng ]
- ✔ chunk() throws an error
- ✔ chunk(undefined) throws an error
- ✔ chunk(null) throws an error
- ✔ chunk(This is a string, 2) takes less than 2s to run
+ √ chunk is a Function
+ √ chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]]
+ √ chunk([]) returns []
+ √ chunk(123) returns []
+ √ chunk({ a: 123}) returns []
+ √ chunk(string, 2) returns [ st, ri, ng ]
+ √ chunk() throws an error
+ √ chunk(undefined) throws an error
+ √ chunk(null) throws an error
+ √ chunk(This is a string, 2) takes less than 2s to run
Testing clampNumber
- ✔ clampNumber is a Function
- ✔ Clamps num within the inclusive range specified by the boundary values a and b
+ √ clampNumber is a Function
+ √ Clamps num within the inclusive range specified by the boundary values a and b
Testing cleanObj
- ✔ cleanObj is a Function
- ✔ Removes any properties except the ones specified from a JSON object
+ √ cleanObj is a Function
+ √ Removes any properties except the ones specified from a JSON object
Testing cloneRegExp
- ✔ cloneRegExp is a Function
- ✔ Clones regular expressions properly
+ √ cloneRegExp is a Function
+ √ Clones regular expressions properly
Testing coalesce
- ✔ coalesce is a Function
- ✔ Returns the first non-null/undefined argument
+ √ coalesce is a Function
+ √ Returns the first non-null/undefined argument
Testing coalesceFactory
- ✔ coalesceFactory is a Function
- ✔ Returns a customized coalesce function
+ √ coalesceFactory is a Function
+ √ Returns a customized coalesce function
Testing collatz
- ✔ collatz is a Function
- ✔ When n is even, divide by 2
- ✔ When n is odd, times by 3 and add 1
- ✔ Eventually reaches 1
+ √ collatz is a Function
+ √ When n is even, divide by 2
+ √ When n is odd, times by 3 and add 1
+ √ Eventually reaches 1
Testing collectInto
- ✔ collectInto is a Function
+ √ collectInto is a Function
Testing colorize
- ✔ colorize is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ colorize is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing compact
- ✔ compact is a Function
- ✔ Removes falsey values from an array
+ √ compact is a Function
+ √ Removes falsey values from an array
Testing compose
- ✔ compose is a Function
- ✔ Performs right-to-left function composition
+ √ compose is a Function
+ √ Performs right-to-left function composition
Testing composeRight
- ✔ composeRight is a Function
- ✔ Performs left-to-right function composition
+ √ composeRight is a Function
+ √ Performs left-to-right function composition
Testing converge
- ✔ converge is a Function
- ✔ Produces the average of the array
- ✔ Produces the strange concatenation
+ √ converge is a Function
+ √ Produces the average of the array
+ √ Produces the strange concatenation
Testing copyToClipboard
- ✔ copyToClipboard is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ copyToClipboard is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing countBy
- ✔ countBy is a Function
- ✔ Works for functions
- ✔ Works for property names
+ √ countBy is a Function
+ √ Works for functions
+ √ Works for property names
Testing countOccurrences
- ✔ countOccurrences is a Function
- ✔ Counts the occurrences of a value in an array
+ √ countOccurrences is a Function
+ √ Counts the occurrences of a value in an array
Testing countVowels
- ✔ countVowels is a Function
+ √ countVowels is a Function
Testing createElement
- ✔ createElement is a Function
+ √ createElement is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing createEventHub
- ✔ createEventHub is a Function
+ √ createEventHub is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing currentURL
- ✔ currentURL is a Function
+ √ currentURL is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing curry
- ✔ curry is a Function
- ✔ curries a Math.pow
- ✔ curries a Math.min
+ √ curry is a Function
+ √ curries a Math.pow
+ √ curries a Math.min
Testing debounce
- ✔ debounce is a Function
+ √ debounce is a Function
Testing decapitalize
- ✔ decapitalize is a Function
- ✔ Works with default parameter
- ✔ Works with second parameter set to true
+ √ decapitalize is a Function
+ √ Works with default parameter
+ √ Works with second parameter set to true
Testing deepClone
- ✔ deepClone is a Function
- ✔ Shallow cloning works
- ✔ Deep cloning works
+ √ deepClone is a Function
+ √ Shallow cloning works
+ √ Deep cloning works
Testing deepFlatten
- ✔ deepFlatten is a Function
- ✔ Deep flattens an array
+ √ deepFlatten is a Function
+ √ Deep flattens an array
Testing defaults
- ✔ defaults is a Function
+ √ defaults is a Function
+ √ Assigns default values for undefined properties
Testing defer
- ✔ defer is a Function
+ √ defer is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing degreesToRads
- ✔ degreesToRads is a Function
- ✔ Returns the appropriate value
+ √ degreesToRads is a Function
+ √ Returns the appropriate value
Testing delay
- ✔ delay is a Function
+ √ delay is a Function
Testing detectDeviceType
- ✔ detectDeviceType is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ detectDeviceType is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing difference
- ✔ difference is a Function
- ✔ Returns the difference between two arrays
+ √ difference is a Function
+ √ Returns the difference between two arrays
Testing differenceBy
- ✔ differenceBy is a Function
- ✔ Works using a native function and numbers
- ✔ Works with arrow function and objects
+ √ differenceBy is a Function
+ √ Works using a native function and numbers
+ √ Works with arrow function and objects
Testing differenceWith
- ✔ differenceWith is a Function
- ✔ Filters out all values from an array
+ √ differenceWith is a Function
+ √ Filters out all values from an array
Testing digitize
- ✔ digitize is a Function
- ✔ Converts a number to an array of digits
+ √ digitize is a Function
+ √ Converts a number to an array of digits
Testing distance
- ✔ distance is a Function
- ✔ Calculates the distance between two points
+ √ distance is a Function
+ √ Calculates the distance between two points
Testing drop
- ✔ drop is a Function
- ✔ Works without the last argument
- ✔ Removes appropriate element count as specified
- ✔ Empties array given a count greater than length
+ √ drop is a Function
+ √ Works without the last argument
+ √ Removes appropriate element count as specified
+ √ Empties array given a count greater than length
Testing dropRight
- ✔ dropRight is a Function
- ✔ Returns a new array with n elements removed from the right
- ✔ Returns a new array with n elements removed from the right
- ✔ Returns a new array with n elements removed from the right
+ √ dropRight is a Function
+ √ Returns a new array with n elements removed from the right
+ √ Returns a new array with n elements removed from the right
+ √ Returns a new array with n elements removed from the right
Testing dropRightWhile
- ✔ dropRightWhile is a Function
- ✔ Removes elements from the end of an array until the passed function returns true.
+ √ dropRightWhile is a Function
+ √ Removes elements from the end of an array until the passed function returns true.
Testing dropWhile
- ✔ dropWhile is a Function
- ✔ Removes elements in an array until the passed function returns true.
+ √ dropWhile is a Function
+ √ Removes elements in an array until the passed function returns true.
Testing elementIsVisibleInViewport
- ✔ elementIsVisibleInViewport is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ elementIsVisibleInViewport is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing elo
- ✔ elo is a Function
- ✔ Standard 1v1s
- ✔ should be equivalent
- ✔ 4 player FFA, all same rank
+ √ elo is a Function
+ √ Standard 1v1s
+ √ should be equivalent
+ √ 4 player FFA, all same rank
Testing equals
- ✔ equals is a Function
- ✔ { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' }
- ✔ [1,2,3] is equal to [1,2,3]
- ✔ { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] }
- ✔ [1,2,3] is not equal to [1,2,4]
- ✔ [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match.
+ √ equals is a Function
+ √ { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' }
+ √ [1,2,3] is equal to [1,2,3]
+ √ { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] }
+ √ [1,2,3] is not equal to [1,2,4]
+ √ [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match.
Testing escapeHTML
- ✔ escapeHTML is a Function
- ✔ Escapes a string for use in HTML
+ √ escapeHTML is a Function
+ √ Escapes a string for use in HTML
Testing escapeRegExp
- ✔ escapeRegExp is a Function
- ✔ Escapes a string to use in a regular expression
+ √ escapeRegExp is a Function
+ √ Escapes a string to use in a regular expression
Testing everyNth
- ✔ everyNth is a Function
- ✔ Returns every nth element in an array
+ √ everyNth is a Function
+ √ Returns every nth element in an array
Testing extendHex
- ✔ extendHex is a Function
- ✔ Extends a 3-digit color code to a 6-digit color code
- ✔ Extends a 3-digit color code to a 6-digit color code
+ √ extendHex is a Function
+ √ Extends a 3-digit color code to a 6-digit color code
+ √ Extends a 3-digit color code to a 6-digit color code
Testing factorial
- ✔ factorial is a Function
- ✔ Calculates the factorial of 720
- ✔ Calculates the factorial of 0
- ✔ Calculates the factorial of 1
- ✔ Calculates the factorial of 4
- ✔ Calculates the factorial of 10
+ √ factorial is a Function
+ √ Calculates the factorial of 720
+ √ Calculates the factorial of 0
+ √ Calculates the factorial of 1
+ √ Calculates the factorial of 4
+ √ Calculates the factorial of 10
Testing factors
- ✔ factors is a Function
+ √ factors is a Function
Testing fibonacci
- ✔ fibonacci is a Function
- ✔ Generates an array, containing the Fibonacci sequence
+ √ fibonacci is a Function
+ √ Generates an array, containing the Fibonacci sequence
Testing fibonacciCountUntilNum
- ✔ fibonacciCountUntilNum is a Function
+ √ fibonacciCountUntilNum is a Function
Testing fibonacciUntilNum
- ✔ fibonacciUntilNum is a Function
+ √ fibonacciUntilNum is a Function
Testing filterNonUnique
- ✔ filterNonUnique is a Function
- ✔ Filters out the non-unique values in an array
+ √ filterNonUnique is a Function
+ √ Filters out the non-unique values in an array
Testing findKey
- ✔ findKey is a Function
- ✔ Returns the appropriate key
+ √ findKey is a Function
+ √ Returns the appropriate key
Testing findLast
- ✔ findLast is a Function
- ✔ Finds last element for which the given function returns true
+ √ findLast is a Function
+ √ Finds last element for which the given function returns true
Testing findLastIndex
- ✔ findLastIndex is a Function
- ✔ Finds last index for which the given function returns true
+ √ findLastIndex is a Function
+ √ Finds last index for which the given function returns true
Testing findLastKey
- ✔ findLastKey is a Function
- ✔ Returns the appropriate key
+ √ findLastKey is a Function
+ √ Returns the appropriate key
Testing flatten
- ✔ flatten is a Function
- ✔ Flattens an array
- ✔ Flattens an array
+ √ flatten is a Function
+ √ Flattens an array
+ √ Flattens an array
Testing flattenObject
- ✔ flattenObject is a Function
- ✔ Flattens an object with the paths for keys
- ✔ Works with arrays
+ √ flattenObject is a Function
+ √ Flattens an object with the paths for keys
+ √ Works with arrays
Testing flip
- ✔ flip is a Function
- ✔ Flips argument order
+ √ flip is a Function
+ √ Flips argument order
Testing forEachRight
- ✔ forEachRight is a Function
- ✔ Iterates over the array in reverse
-
- Testing forOwn
-
- ✔ forOwn is a Function
- ✔ Iterates over an element's key-value pairs
-
- Testing forOwnRight
-
- ✔ forOwnRight is a Function
- ✔ Iterates over an element's key-value pairs in reverse
+ √ forEachRight is a Function
+ √ Iterates over the array in reverse
Testing formatDuration
- ✔ formatDuration is a Function
- ✔ Returns the human readable format of the given number of milliseconds
- ✔ Returns the human readable format of the given number of milliseconds
+ √ formatDuration is a Function
+ √ Returns the human readable format of the given number of milliseconds
+ √ Returns the human readable format of the given number of milliseconds
+
+ Testing forOwn
+
+ √ forOwn is a Function
+ √ Iterates over an element's key-value pairs
+
+ Testing forOwnRight
+
+ √ forOwnRight is a Function
+ √ Iterates over an element's key-value pairs in reverse
Testing fromCamelCase
- ✔ fromCamelCase is a Function
- ✔ Converts a string from camelcase
- ✔ Converts a string from camelcase
- ✔ Converts a string from camelcase
+ √ fromCamelCase is a Function
+ √ Converts a string from camelcase
+ √ Converts a string from camelcase
+ √ Converts a string from camelcase
Testing functionName
- ✔ functionName is a Function
- ✔ Works for native functions
- ✔ Works for functions
- ✔ Works for arrow functions
+ √ functionName is a Function
+ √ Works for native functions
+ √ Works for functions
+ √ Works for arrow functions
Testing functions
- ✔ functions is a Function
- ✔ Returns own methods
- ✔ Returns own and inherited methods
+ √ functions is a Function
+ √ Returns own methods
+ √ Returns own and inherited methods
Testing gcd
- ✔ gcd is a Function
- ✔ Calculates the greatest common divisor between two or more numbers/arrays
- ✔ Calculates the greatest common divisor between two or more numbers/arrays
+ √ gcd is a Function
+ √ Calculates the greatest common divisor between two or more numbers/arrays
+ √ Calculates the greatest common divisor between two or more numbers/arrays
Testing geometricProgression
- ✔ geometricProgression is a Function
- ✔ Initializes an array containing the numbers in the specified range
- ✔ Initializes an array containing the numbers in the specified range
- ✔ Initializes an array containing the numbers in the specified range
+ √ geometricProgression is a Function
+ √ Initializes an array containing the numbers in the specified range
+ √ Initializes an array containing the numbers in the specified range
+ √ Initializes an array containing the numbers in the specified range
Testing get
- ✔ get is a Function
- ✔ Retrieve a property indicated by the selector from an object.
+ √ get is a Function
+ √ Retrieve a property indicated by the selector from an object.
Testing getColonTimeFromDate
- ✔ getColonTimeFromDate is a Function
+ √ getColonTimeFromDate is a Function
Testing getDaysDiffBetweenDates
- ✔ getDaysDiffBetweenDates is a Function
- ✔ Returns the difference in days between two dates
+ √ getDaysDiffBetweenDates is a Function
+ √ Returns the difference in days between two dates
Testing getMeridiemSuffixOfInteger
- ✔ getMeridiemSuffixOfInteger is a Function
+ √ getMeridiemSuffixOfInteger is a Function
Testing getScrollPosition
- ✔ getScrollPosition is a Function
+ √ getScrollPosition is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing getStyle
- ✔ getStyle is a Function
+ √ getStyle is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing getType
- ✔ getType is a Function
- ✔ Returns the native type of a value
+ √ getType is a Function
+ √ Returns the native type of a value
Testing getURLParameters
- ✔ getURLParameters is a Function
- ✔ Returns an object containing the parameters of the current URL
+ √ getURLParameters is a Function
+ √ Returns an object containing the parameters of the current URL
Testing groupBy
- ✔ groupBy is a Function
- ✔ Groups the elements of an array based on the given function
- ✔ Groups the elements of an array based on the given function
+ √ groupBy is a Function
+ √ Groups the elements of an array based on the given function
+ √ Groups the elements of an array based on the given function
Testing hammingDistance
- ✔ hammingDistance is a Function
- ✔ retuns hamming disance between 2 values
+ √ hammingDistance is a Function
+ √ retuns hamming disance between 2 values
Testing hasClass
- ✔ hasClass is a Function
+ √ hasClass is a Function
Testing hasFlags
- ✔ hasFlags is a Function
+ √ hasFlags is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing hashBrowser
- ✔ hashBrowser is a Function
+ √ hashBrowser is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing hashNode
- ✔ hashNode is a Function
+ √ hashNode is a Function
Testing head
- ✔ head is a Function
- ✔ head({ a: 1234}) returns undefined
- ✔ head([1, 2, 3]) returns 1
- ✔ head({ 0: false}) returns false
- ✔ head(String) returns S
- ✔ head(null) throws an Error
- ✔ head(undefined) throws an Error
- ✔ head() throws an Error
- ✔ head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
+ √ head is a Function
+ √ head({ a: 1234}) returns undefined
+ √ head([1, 2, 3]) returns 1
+ √ head({ 0: false}) returns false
+ √ head(String) returns S
+ √ head(null) throws an Error
+ √ head(undefined) throws an Error
+ √ head() throws an Error
+ √ head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
Testing hexToRGB
- ✔ hexToRGB is a Function
- ✔ Converts a color code to a rgb() or rgba() string
- ✔ Converts a color code to a rgb() or rgba() string
- ✔ Converts a color code to a rgb() or rgba() string
+ √ hexToRGB is a Function
+ √ Converts a color code to a rgb() or rgba() string
+ √ Converts a color code to a rgb() or rgba() string
+ √ Converts a color code to a rgb() or rgba() string
Testing hide
- ✔ hide is a Function
+ √ hide is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing howManyTimes
- ✔ howManyTimes is a Function
+ √ howManyTimes is a Function
Testing httpDelete
- ✔ httpDelete is a Function
+ √ httpDelete is a Function
Testing httpGet
- ✔ httpGet is a Function
+ √ httpGet is a Function
Testing httpPost
- ✔ httpPost is a Function
+ √ httpPost is a Function
Testing httpPut
- ✔ httpPut is a Function
+ √ httpPut is a Function
Testing httpsRedirect
- ✔ httpsRedirect is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
-
- Testing inRange
-
- ✔ inRange is a Function
- ✔ The given number falls within the given range
- ✔ The given number falls within the given range
- ✔ The given number does not falls within the given range
- ✔ The given number does not falls within the given range
+ √ httpsRedirect is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing indexOfAll
- ✔ indexOfAll is a Function
- ✔ Returns all indices of val in an array
- ✔ Returns all indices of val in an array
+ √ indexOfAll is a Function
+ √ Returns all indices of val in an array
+ √ Returns all indices of val in an array
Testing initial
- ✔ initial is a Function
- ✔ Returns all the elements of an array except the last one
+ √ initial is a Function
+ √ Returns all the elements of an array except the last one
Testing initialize2DArray
- ✔ initialize2DArray is a Function
- ✔ Initializes a 2D array of given width and height and value
+ √ initialize2DArray is a Function
+ √ Initializes a 2D array of given width and height and value
Testing initializeArrayWithRange
- ✔ initializeArrayWithRange is a Function
- ✔ Initializes an array containing the numbers in the specified range
+ √ initializeArrayWithRange is a Function
+ √ Initializes an array containing the numbers in the specified range
Testing initializeArrayWithRangeRight
- ✔ initializeArrayWithRangeRight is a Function
+ √ initializeArrayWithRangeRight is a Function
Testing initializeArrayWithValues
- ✔ initializeArrayWithValues is a Function
- ✔ Initializes and fills an array with the specified values
+ √ initializeArrayWithValues is a Function
+ √ Initializes and fills an array with the specified values
+
+ Testing inRange
+
+ √ inRange is a Function
+ √ The given number falls within the given range
+ √ The given number falls within the given range
+ √ The given number does not falls within the given range
+ √ The given number does not falls within the given range
Testing intersection
- ✔ intersection is a Function
- ✔ Returns a list of elements that exist in both arrays
+ √ intersection is a Function
+ √ Returns a list of elements that exist in both arrays
Testing intersectionBy
- ✔ intersectionBy is a Function
- ✔ Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both
+ √ intersectionBy is a Function
+ √ Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both
Testing intersectionWith
- ✔ intersectionWith is a Function
- ✔ Returns a list of elements that exist in both arrays, using a provided comparator function
+ √ intersectionWith is a Function
+ √ Returns a list of elements that exist in both arrays, using a provided comparator function
Testing invertKeyValues
- ✔ invertKeyValues is a Function
- ✔ invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] }
- ✔ invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] }
+ √ invertKeyValues is a Function
+ √ invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] }
+ √ invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] }
Testing is
- ✔ is is a Function
- ✔ Works for arrays with data
- ✔ Works for empty arrays
- ✔ Works for arrays, not objects
- ✔ Works for objects
- ✔ Works for maps
- ✔ Works for regular expressions
- ✔ Works for sets
- ✔ Works for weak maps
- ✔ Works for weak sets
- ✔ Works for strings - returns false for primitive
- ✔ Works for strings - returns true when using constructor
- ✔ Works for numbers - returns false for primitive
- ✔ Works for numbers - returns true when using constructor
- ✔ Works for booleans - returns false for primitive
- ✔ Works for booleans - returns true when using constructor
- ✔ Works for functions
+ √ is is a Function
+ √ Works for arrays with data
+ √ Works for empty arrays
+ √ Works for arrays, not objects
+ √ Works for objects
+ √ Works for maps
+ √ Works for regular expressions
+ √ Works for sets
+ √ Works for weak maps
+ √ Works for weak sets
+ √ Works for strings - returns false for primitive
+ √ Works for strings - returns true when using constructor
+ √ Works for numbers - returns false for primitive
+ √ Works for numbers - returns true when using constructor
+ √ Works for booleans - returns false for primitive
+ √ Works for booleans - returns true when using constructor
+ √ Works for functions
Testing isAbsoluteURL
- ✔ isAbsoluteURL is a Function
- ✔ Given string is an absolute URL
- ✔ Given string is an absolute URL
- ✔ Given string is not an absolute URL
+ √ isAbsoluteURL is a Function
+ √ Given string is an absolute URL
+ √ Given string is an absolute URL
+ √ Given string is not an absolute URL
Testing isArmstrongNumber
- ✔ isArmstrongNumber is a Function
+ √ isArmstrongNumber is a Function
Testing isArray
- ✔ isArray is a Function
- ✔ passed value is an array
- ✔ passed value is not an array
+ √ isArray is a Function
+ √ passed value is an array
+ √ passed value is not an array
Testing isArrayBuffer
- ✔ isArrayBuffer is a Function
+ √ isArrayBuffer is a Function
Testing isArrayLike
- ✔ isArrayLike is a Function
- ✔ Returns true for a string
- ✔ Returns true for an array
- ✔ Returns false for null
+ √ isArrayLike is a Function
+ √ Returns true for a string
+ √ Returns true for an array
+ √ Returns false for null
Testing isBoolean
- ✔ isBoolean is a Function
- ✔ passed value is not a boolean
- ✔ passed value is not a boolean
+ √ isBoolean is a Function
+ √ passed value is not a boolean
+ √ passed value is not a boolean
Testing isDivisible
- ✔ isDivisible is a Function
- ✔ The number 6 is divisible by 3
+ √ isDivisible is a Function
+ √ The number 6 is divisible by 3
Testing isEmpty
- ✔ isEmpty is a Function
- ✔ Returns true for empty Map
- ✔ Returns true for empty Set
- ✔ Returns true for empty array
- ✔ Returns true for empty object
- ✔ Returns true for empty string
- ✔ Returns false for non-empty array
- ✔ Returns false for non-empty object
- ✔ Returns false for non-empty string
- ✔ Returns true - type is not considered a collection
- ✔ Returns true - type is not considered a collection
+ √ isEmpty is a Function
+ √ Returns true for empty Map
+ √ Returns true for empty Set
+ √ Returns true for empty array
+ √ Returns true for empty object
+ √ Returns true for empty string
+ √ Returns false for non-empty array
+ √ Returns false for non-empty object
+ √ Returns false for non-empty string
+ √ Returns true - type is not considered a collection
+ √ Returns true - type is not considered a collection
Testing isEven
- ✔ isEven is a Function
- ✔ 4 is even number
- ✔ undefined
+ √ isEven is a Function
+ √ 4 is even number
+ √ undefined
Testing isFunction
- ✔ isFunction is a Function
- ✔ passed value is a function
- ✔ passed value is not a function
+ √ isFunction is a Function
+ √ passed value is a function
+ √ passed value is not a function
Testing isLowerCase
- ✔ isLowerCase is a Function
- ✔ passed string is a lowercase
- ✔ passed string is a lowercase
- ✔ passed value is not a lowercase
+ √ isLowerCase is a Function
+ √ passed string is a lowercase
+ √ passed string is a lowercase
+ √ passed value is not a lowercase
Testing isMap
- ✔ isMap is a Function
+ √ isMap is a Function
Testing isNil
- ✔ isNil is a Function
- ✔ Returns true for null
- ✔ Returns true for undefined
- ✔ Returns false for an empty string
+ √ isNil is a Function
+ √ Returns true for null
+ √ Returns true for undefined
+ √ Returns false for an empty string
Testing isNull
- ✔ isNull is a Function
- ✔ passed argument is a null
- ✔ passed argument is a null
+ √ isNull is a Function
+ √ passed argument is a null
+ √ passed argument is a null
Testing isNumber
- ✔ isNumber is a Function
- ✔ passed argument is a number
- ✔ passed argument is not a number
+ √ isNumber is a Function
+ √ passed argument is a number
+ √ passed argument is not a number
Testing isObject
- ✔ isObject is a Function
- ✔ isObject([1, 2, 3, 4]) is a object
- ✔ isObject([]) is a object
- ✔ isObject({ a:1 }) is a object
- ✔ isObject(true) is not a object
+ √ isObject is a Function
+ √ isObject([1, 2, 3, 4]) is a object
+ √ isObject([]) is a object
+ √ isObject({ a:1 }) is a object
+ √ isObject(true) is not a object
Testing isObjectLike
- ✔ isObjectLike is a Function
- ✔ Returns true for an object
- ✔ Returns true for an array
- ✔ Returns false for a function
- ✔ Returns false for null
+ √ isObjectLike is a Function
+ √ Returns true for an object
+ √ Returns true for an array
+ √ Returns false for a function
+ √ Returns false for null
Testing isPlainObject
- ✔ isPlainObject is a Function
- ✔ Returns true for a plain object
- ✔ Returns false for a Map (example of non-plain object)
+ √ isPlainObject is a Function
+ √ Returns true for a plain object
+ √ Returns false for a Map (example of non-plain object)
Testing isPrime
- ✔ isPrime is a Function
- ✔ passed number is a prime
+ √ isPrime is a Function
+ √ passed number is a prime
Testing isPrimitive
- ✔ isPrimitive is a Function
- ✔ isPrimitive(null) is primitive
- ✔ isPrimitive(undefined) is primitive
- ✔ isPrimitive(string) is primitive
- ✔ isPrimitive(true) is primitive
- ✔ isPrimitive(50) is primitive
- ✔ isPrimitive('Hello') is primitive
- ✔ isPrimitive(false) is primitive
- ✔ isPrimitive(Symbol()) is primitive
- ✔ isPrimitive([1, 2, 3]) is not primitive
- ✔ isPrimitive({ a: 123 }) is not primitive
- ✔ isPrimitive({ a: 123 }) takes less than 2s to run
+ √ isPrimitive is a Function
+ √ isPrimitive(null) is primitive
+ √ isPrimitive(undefined) is primitive
+ √ isPrimitive(string) is primitive
+ √ isPrimitive(true) is primitive
+ √ isPrimitive(50) is primitive
+ √ isPrimitive('Hello') is primitive
+ √ isPrimitive(false) is primitive
+ √ isPrimitive(Symbol()) is primitive
+ √ isPrimitive([1, 2, 3]) is not primitive
+ √ isPrimitive({ a: 123 }) is not primitive
+ √ isPrimitive({ a: 123 }) takes less than 2s to run
Testing isPromiseLike
- ✔ isPromiseLike is a Function
- ✔ Returns true for a promise-like object
- ✔ Returns false for null
- ✔ Returns false for an empty object
+ √ isPromiseLike is a Function
+ √ Returns true for a promise-like object
+ √ Returns false for null
+ √ Returns false for an empty object
Testing isRegExp
- ✔ isRegExp is a Function
+ √ isRegExp is a Function
Testing isSet
- ✔ isSet is a Function
+ √ isSet is a Function
Testing isSorted
- ✔ isSorted is a Function
- ✔ Array is sorted in ascending order
- ✔ Array is sorted in descending order
- ✔ Array is not sorted, direction changed in array
+ √ isSorted is a Function
+ √ Array is sorted in ascending order
+ √ Array is sorted in descending order
+ √ Array is not sorted, direction changed in array
Testing isString
- ✔ isString is a Function
- ✔ foo is a string
- ✔ "10" is a string
- ✔ Empty string is a string
- ✔ 10 is not a string
- ✔ true is not string
+ √ isString is a Function
+ √ foo is a string
+ √ "10" is a string
+ √ Empty string is a string
+ √ 10 is not a string
+ √ true is not string
Testing isSymbol
- ✔ isSymbol is a Function
- ✔ Checks if the given argument is a symbol
+ √ isSymbol is a Function
+ √ Checks if the given argument is a symbol
Testing isTravisCI
- ✔ isTravisCI is a Function
- ✔ Running on Travis, correctly evaluates
+ √ isTravisCI is a Function
+ √ Not running on Travis, correctly evaluates
Testing isTypedArray
- ✔ isTypedArray is a Function
+ √ isTypedArray is a Function
Testing isUndefined
- ✔ isUndefined is a Function
- ✔ Returns true for undefined
+ √ isUndefined is a Function
+ √ Returns true for undefined
Testing isUpperCase
- ✔ isUpperCase is a Function
- ✔ ABC is all upper case
- ✔ abc is not all upper case
- ✔ A3@$ is all uppercase
+ √ isUpperCase is a Function
+ √ ABC is all upper case
+ √ abc is not all upper case
+ √ A3@$ is all uppercase
Testing isValidJSON
- ✔ isValidJSON is a Function
- ✔ {"name":"Adam","age":20} is a valid JSON
- ✔ {"name":"Adam",age:"20"} is not a valid JSON
- ✔ null is a valid JSON
+ √ isValidJSON is a Function
+ √ {"name":"Adam","age":20} is a valid JSON
+ √ {"name":"Adam",age:"20"} is not a valid JSON
+ √ null is a valid JSON
Testing isWeakMap
- ✔ isWeakMap is a Function
+ √ isWeakMap is a Function
Testing isWeakSet
- ✔ isWeakSet is a Function
+ √ isWeakSet is a Function
Testing join
- ✔ join is a Function
- ✔ Joins all elements of an array into a string and returns this string
- ✔ Joins all elements of an array into a string and returns this string
- ✔ Joins all elements of an array into a string and returns this string
+ √ join is a Function
+ √ Joins all elements of an array into a string and returns this string
+ √ Joins all elements of an array into a string and returns this string
+ √ Joins all elements of an array into a string and returns this string
+
+ Testing JSONToDate
+
+ √ JSONToDate is a Function
+
+ Testing JSONToFile
+
+ √ JSONToFile is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing last
- ✔ last is a Function
- ✔ last({ a: 1234}) returns undefined
- ✔ last([1, 2, 3]) returns 3
- ✔ last({ 0: false}) returns undefined
- ✔ last(String) returns g
- ✔ last(null) throws an Error
- ✔ last(undefined) throws an Error
- ✔ last() throws an Error
- ✔ last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
+ √ last is a Function
+ √ last({ a: 1234}) returns undefined
+ √ last([1, 2, 3]) returns 3
+ √ last({ 0: false}) returns undefined
+ √ last(String) returns g
+ √ last(null) throws an Error
+ √ last(undefined) throws an Error
+ √ last() throws an Error
+ √ last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run
Testing lcm
- ✔ lcm is a Function
- ✔ Returns the least common multiple of two or more numbers.
- ✔ Returns the least common multiple of two or more numbers.
+ √ lcm is a Function
+ √ Returns the least common multiple of two or more numbers.
+ √ Returns the least common multiple of two or more numbers.
Testing longestItem
- ✔ longestItem is a Function
- ✔ Returns the longest object
+ √ longestItem is a Function
+ √ Returns the longest object
Testing lowercaseKeys
- ✔ lowercaseKeys is a Function
- ✔ Lowercases object keys
- ✔ Does not mutate original object
+ √ lowercaseKeys is a Function
+ √ Lowercases object keys
+ √ Does not mutate original object
Testing luhnCheck
- ✔ luhnCheck is a Function
- ✔ validates identification number
- ✔ validates identification number
- ✔ validates identification number
+ √ luhnCheck is a Function
+ √ validates identification number
+ √ validates identification number
+ √ validates identification number
Testing mapKeys
- ✔ mapKeys is a Function
- ✔ Maps keys
+ √ mapKeys is a Function
+ √ Maps keys
Testing mapObject
- ✔ mapObject is a Function
- ✔ mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 }
- ✔ mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 }
- ✔ mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 }
+ √ mapObject is a Function
+ √ mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 }
+ √ mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 }
+ √ mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 }
Testing mapValues
- ✔ mapValues is a Function
- ✔ Maps values
+ √ mapValues is a Function
+ √ Maps values
Testing mask
- ✔ mask is a Function
- ✔ Replaces all but the last num of characters with the specified mask character
- ✔ Replaces all but the last num of characters with the specified mask character
- ✔ Replaces all but the last num of characters with the specified mask character
+ √ mask is a Function
+ √ Replaces all but the last num of characters with the specified mask character
+ √ Replaces all but the last num of characters with the specified mask character
+ √ Replaces all but the last num of characters with the specified mask character
Testing matches
- ✔ matches is a Function
- ✔ Matches returns true for two similar objects
- ✔ Matches returns false for two non-similar objects
+ √ matches is a Function
+ √ Matches returns true for two similar objects
+ √ Matches returns false for two non-similar objects
Testing matchesWith
- ✔ matchesWith is a Function
- ✔ Returns true for two objects with similar values, based on the provided function
+ √ matchesWith is a Function
+ √ Returns true for two objects with similar values, based on the provided function
Testing maxBy
- ✔ maxBy is a Function
- ✔ Produces the right result with a function
- ✔ Produces the right result with a property name
+ √ maxBy is a Function
+ √ Produces the right result with a function
+ √ Produces the right result with a property name
Testing maxN
- ✔ maxN is a Function
- ✔ Returns the n maximum elements from the provided array
- ✔ Returns the n maximum elements from the provided array
+ √ maxN is a Function
+ √ Returns the n maximum elements from the provided array
+ √ Returns the n maximum elements from the provided array
Testing median
- ✔ median is a Function
- ✔ Returns the median of an array of numbers
- ✔ Returns the median of an array of numbers
+ √ median is a Function
+ √ Returns the median of an array of numbers
+ √ Returns the median of an array of numbers
Testing memoize
- ✔ memoize is a Function
- ✔ Function works properly
- ✔ Function works properly
- ✔ Cache stores values
+ √ memoize is a Function
+ √ Function works properly
+ √ Function works properly
+ √ Cache stores values
Testing merge
- ✔ merge is a Function
- ✔ Merges two objects
+ √ merge is a Function
+ √ Merges two objects
Testing minBy
- ✔ minBy is a Function
- ✔ Produces the right result with a function
- ✔ Produces the right result with a property name
+ √ minBy is a Function
+ √ Produces the right result with a function
+ √ Produces the right result with a property name
Testing minN
- ✔ minN is a Function
- ✔ Returns the n minimum elements from the provided array
- ✔ Returns the n minimum elements from the provided array
+ √ minN is a Function
+ √ Returns the n minimum elements from the provided array
+ √ Returns the n minimum elements from the provided array
Testing mostPerformant
√ mostPerformant is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing negate
- ✔ negate is a Function
- ✔ Negates a predicate function
+ √ negate is a Function
+ √ Negates a predicate function
Testing none
@@ -1082,775 +1104,809 @@ Test log for: Fri Feb 16 2018 13:42:15 GMT+0200 (GTB Standard Time)
Testing nthArg
- ✔ nthArg is a Function
- ✔ Returns the nth argument
- ✔ Returns undefined if arguments too few
- ✔ Works for negative values
+ √ nthArg is a Function
+ √ Returns the nth argument
+ √ Returns undefined if arguments too few
+ √ Works for negative values
Testing nthElement
- ✔ nthElement is a Function
- ✔ Returns the nth element of an array.
- ✔ Returns the nth element of an array.
+ √ nthElement is a Function
+ √ Returns the nth element of an array.
+ √ Returns the nth element of an array.
Testing objectFromPairs
- ✔ objectFromPairs is a Function
- ✔ Creates an object from the given key-value pairs.
+ √ objectFromPairs is a Function
+ √ Creates an object from the given key-value pairs.
Testing objectToPairs
- ✔ objectToPairs is a Function
- ✔ Creates an array of key-value pair arrays from an object.
+ √ objectToPairs is a Function
+ √ Creates an array of key-value pair arrays from an object.
Testing observeMutations
- ✔ observeMutations is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ observeMutations is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing off
- ✔ off is a Function
+ √ off is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing omit
- ✔ omit is a Function
- ✔ Omits the key-value pairs corresponding to the given keys from an object
+ √ omit is a Function
+ √ Omits the key-value pairs corresponding to the given keys from an object
Testing omitBy
- ✔ omitBy is a Function
- ✔ Creates an object composed of the properties the given function returns falsey for
+ √ omitBy is a Function
+ √ Creates an object composed of the properties the given function returns falsey for
Testing on
- ✔ on is a Function
-
- Testing onUserInputChange
-
- ✔ onUserInputChange is a Function
+ √ on is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing once
- ✔ once is a Function
+ √ once is a Function
+ √ Tested by @chalarangelo on 16/02/2018
+
+ Testing onUserInputChange
+
+ √ onUserInputChange is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing orderBy
- ✔ orderBy is a Function
- ✔ Returns a sorted array of objects ordered by properties and orders.
- ✔ Returns a sorted array of objects ordered by properties and orders.
+ √ orderBy is a Function
+ √ Returns a sorted array of objects ordered by properties and orders.
+ √ Returns a sorted array of objects ordered by properties and orders.
Testing over
- ✔ over is a Function
- ✔ Applies given functions over multiple arguments
+ √ over is a Function
+ √ Applies given functions over multiple arguments
Testing overArgs
- ✔ overArgs is a Function
- ✔ Invokes the provided function with its arguments transformed
+ √ overArgs is a Function
+ √ Invokes the provided function with its arguments transformed
Testing palindrome
- ✔ palindrome is a Function
- ✔ Given string is a palindrome
- ✔ Given string is not a palindrome
+ √ palindrome is a Function
+ √ Given string is a palindrome
+ √ Given string is not a palindrome
Testing parseCookie
- ✔ parseCookie is a Function
- ✔ Parses the cookie
+ √ parseCookie is a Function
+ √ Parses the cookie
Testing partial
- ✔ partial is a Function
- ✔ Prepends arguments
+ √ partial is a Function
+ √ Prepends arguments
Testing partialRight
- ✔ partialRight is a Function
- ✔ Appends arguments
+ √ partialRight is a Function
+ √ Appends arguments
Testing partition
- ✔ partition is a Function
- ✔ Groups the elements into two arrays, depending on the provided function's truthiness for each element.
+ √ partition is a Function
+ √ Groups the elements into two arrays, depending on the provided function's truthiness for each element.
Testing percentile
- ✔ percentile is a Function
- ✔ Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value.
+ √ percentile is a Function
+ √ Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value.
Testing pick
- ✔ pick is a Function
- ✔ Picks the key-value pairs corresponding to the given keys from an object.
+ √ pick is a Function
+ √ Picks the key-value pairs corresponding to the given keys from an object.
Testing pickBy
- ✔ pickBy is a Function
- ✔ Creates an object composed of the properties the given function returns truthy for.
+ √ pickBy is a Function
+ √ Creates an object composed of the properties the given function returns truthy for.
Testing pipeAsyncFunctions
- ✔ pipeAsyncFunctions is a Function
- ✔ Produces the appropriate hash
- ✔ pipeAsyncFunctions result should be 15
+ √ pipeAsyncFunctions is a Function
+ √ Produces the appropriate hash
+ √ pipeAsyncFunctions result should be 15
Testing pipeFunctions
- ✔ pipeFunctions is a Function
- ✔ Performs left-to-right function composition
+ √ pipeFunctions is a Function
+ √ Performs left-to-right function composition
Testing pluralize
- ✔ pluralize is a Function
- ✔ Produces the plural of the word
- ✔ Produces the singular of the word
- ✔ Produces the plural of the word
- ✔ Prodices the defined plural of the word
- ✔ Works with a dictionary
+ √ pluralize is a Function
+ √ Produces the plural of the word
+ √ Produces the singular of the word
+ √ Produces the plural of the word
+ √ Prodices the defined plural of the word
+ √ Works with a dictionary
Testing powerset
- ✔ powerset is a Function
- ✔ Returns the powerset of a given array of numbers.
+ √ powerset is a Function
+ √ Returns the powerset of a given array of numbers.
Testing prettyBytes
- ✔ prettyBytes is a Function
- ✔ Converts a number in bytes to a human-readable string.
- ✔ Converts a number in bytes to a human-readable string.
- ✔ Converts a number in bytes to a human-readable string.
+ √ prettyBytes is a Function
+ √ Converts a number in bytes to a human-readable string.
+ √ Converts a number in bytes to a human-readable string.
+ √ Converts a number in bytes to a human-readable string.
Testing primes
- ✔ primes is a Function
- ✔ Generates primes up to a given number, using the Sieve of Eratosthenes.
+ √ primes is a Function
+ √ Generates primes up to a given number, using the Sieve of Eratosthenes.
Testing promisify
- ✔ promisify is a Function
- ✔ Returns a promise
+ √ promisify is a Function
+ √ Returns a promise
Testing pull
- ✔ pull is a Function
- ✔ Pulls the specified values
+ √ pull is a Function
+ √ Pulls the specified values
Testing pullAtIndex
- ✔ pullAtIndex is a Function
- ✔ Pulls the given values
- ✔ Pulls the given values
+ √ pullAtIndex is a Function
+ √ Pulls the given values
+ √ Pulls the given values
Testing pullAtValue
- ✔ pullAtValue is a Function
- ✔ Pulls the specified values
- ✔ Pulls the specified values
+ √ pullAtValue is a Function
+ √ Pulls the specified values
+ √ Pulls the specified values
Testing pullBy
- ✔ pullBy is a Function
- ✔ Pulls the specified values
+ √ pullBy is a Function
+ √ Pulls the specified values
Testing quickSort
- ✔ quickSort is a Function
- ✔ quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6]
- ✔ quickSort([-1, 0, -2]) returns [-2, -1, 0]
- ✔ quickSort() throws an error
- ✔ quickSort(123) throws an error
- ✔ quickSort({ 234: string}) throws an error
- ✔ quickSort(null) throws an error
- ✔ quickSort(undefined) throws an error
- ✔ quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run
+ √ quickSort is a Function
+ √ quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6]
+ √ quickSort([-1, 0, -2]) returns [-2, -1, 0]
+ √ quickSort() throws an error
+ √ quickSort(123) throws an error
+ √ quickSort({ 234: string}) throws an error
+ √ quickSort(null) throws an error
+ √ quickSort(undefined) throws an error
+ √ quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run
Testing radsToDegrees
- ✔ radsToDegrees is a Function
- ✔ Returns the appropriate value
+ √ radsToDegrees is a Function
+ √ Returns the appropriate value
Testing randomHexColorCode
- ✔ randomHexColorCode is a Function
- ✔ should be equal
+ √ randomHexColorCode is a Function
+ √ should be equal
+ √ The color code starts with "#"
+ √ The color code contains only valid hex-digits
Testing randomIntArrayInRange
- ✔ randomIntArrayInRange is a Function
- ✔ The returned array contains only integers
- ✔ The returned array has the proper length
- ✔ The returned array's values lie between provided lowerLimit and upperLimit (both inclusive).
+ √ randomIntArrayInRange is a Function
+ √ The returned array contains only integers
+ √ The returned array has the proper length
+ √ The returned array's values lie between provided lowerLimit and upperLimit (both inclusive).
Testing randomIntegerInRange
- ✔ randomIntegerInRange is a Function
- ✔ The returned value is an integer
- ✔ The returned value lies between provided lowerLimit and upperLimit (both inclusive).
+ √ randomIntegerInRange is a Function
+ √ The returned value is an integer
+ √ The returned value lies between provided lowerLimit and upperLimit (both inclusive).
Testing randomNumberInRange
- ✔ randomNumberInRange is a Function
- ✔ The returned value is a number
- ✔ The returned value lies between provided lowerLimit and upperLimit (both inclusive).
+ √ randomNumberInRange is a Function
+ √ The returned value is a number
+ √ The returned value lies between provided lowerLimit and upperLimit (both inclusive).
Testing readFileLines
- ✔ readFileLines is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ readFileLines is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing rearg
- ✔ rearg is a Function
- ✔ Reorders arguments in invoked function
+ √ rearg is a Function
+ √ Reorders arguments in invoked function
Testing redirect
- ✔ redirect is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
-
- Testing reduceSuccessive
-
- ✔ reduceSuccessive is a Function
- ✔ Returns the array of successively reduced values
-
- Testing reduceWhich
-
- ✔ reduceWhich is a Function
- ✔ Returns the minimum of an array
- ✔ Returns the maximum of an array
- ✔ Returns the object with the minimum specified value in an array
+ √ redirect is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing reducedFilter
- ✔ reducedFilter is a Function
- ✔ Filter an array of objects based on a condition while also filtering out unspecified keys.
+ √ reducedFilter is a Function
+ √ Filter an array of objects based on a condition while also filtering out unspecified keys.
+
+ Testing reduceSuccessive
+
+ √ reduceSuccessive is a Function
+ √ Returns the array of successively reduced values
+
+ Testing reduceWhich
+
+ √ reduceWhich is a Function
+ √ Returns the minimum of an array
+ √ Returns the maximum of an array
+ √ Returns the object with the minimum specified value in an array
Testing remove
- ✔ remove is a Function
- ✔ Removes elements from an array for which the given function returns false
+ √ remove is a Function
+ √ Removes elements from an array for which the given function returns false
Testing removeNonASCII
- ✔ removeNonASCII is a Function
- ✔ Removes non-ASCII characters
+ √ removeNonASCII is a Function
+ √ Removes non-ASCII characters
Testing removeVowels
- ✔ removeVowels is a Function
+ √ removeVowels is a Function
Testing reverseString
- ✔ reverseString is a Function
- ✔ Reverses a string.
+ √ reverseString is a Function
+ √ Reverses a string.
+
+ Testing RGBToHex
+
+ √ RGBToHex is a Function
+ √ Converts the values of RGB components to a color code.
Testing round
- ✔ round is a Function
- ✔ round(1.005, 2) returns 1.01
- ✔ round(123.3423345345345345344, 11) returns 123.34233453453
- ✔ round(3.342, 11) returns 3.342
- ✔ round(1.005) returns 1
- ✔ round([1.005, 2]) returns NaN
- ✔ round(string) returns NaN
- ✔ round() returns NaN
- ✔ round(132, 413, 4134) returns NaN
- ✔ round({a: 132}, 413) returns NaN
- ✔ round(123.3423345345345345344, 11) takes less than 2s to run
+ √ round is a Function
+ √ round(1.005, 2) returns 1.01
+ √ round(123.3423345345345345344, 11) returns 123.34233453453
+ √ round(3.342, 11) returns 3.342
+ √ round(1.005) returns 1
+ √ round([1.005, 2]) returns NaN
+ √ round(string) returns NaN
+ √ round() returns NaN
+ √ round(132, 413, 4134) returns NaN
+ √ round({a: 132}, 413) returns NaN
+ √ round(123.3423345345345345344, 11) takes less than 2s to run
Testing runAsync
- ✔ runAsync is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ runAsync is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing runPromisesInSeries
- ✔ runPromisesInSeries is a Function
+ √ runPromisesInSeries is a Function
Testing sample
- ✔ sample is a Function
- ✔ Returns a random element from the array
- ✔ Works for single-element arrays
- ✔ Returns undefined for empty array
+ √ sample is a Function
+ √ Returns a random element from the array
+ √ Works for single-element arrays
+ √ Returns undefined for empty array
Testing sampleSize
- ✔ sampleSize is a Function
- ✔ Returns a single element without n specified
- ✔ Returns a random sample of specified size from an array
- ✔ Returns all elements in an array if n >= length
- ✔ Returns an empty array if original array is empty
- ✔ Returns an empty array if n = 0
+ √ sampleSize is a Function
+ √ Returns a single element without n specified
+ √ Returns a random sample of specified size from an array
+ √ Returns all elements in an array if n >= length
+ √ Returns an empty array if original array is empty
+ √ Returns an empty array if n = 0
Testing scrollToTop
- ✔ scrollToTop is a Function
- ✔ Tested on 09/02/2018 by @chalarangelo
+ √ scrollToTop is a Function
+ √ Tested on 09/02/2018 by @chalarangelo
Testing sdbm
- ✔ sdbm is a Function
- ✔ Hashes the input string into a whole number.
+ √ sdbm is a Function
+ √ Hashes the input string into a whole number.
Testing serializeCookie
- ✔ serializeCookie is a Function
- ✔ Serializes the cookie
+ √ serializeCookie is a Function
+ √ Serializes the cookie
Testing setStyle
- ✔ setStyle is a Function
+ √ setStyle is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing shallowClone
- ✔ shallowClone is a Function
- ✔ Shallow cloning works
- ✔ Does not clone deeply
+ √ shallowClone is a Function
+ √ Shallow cloning works
+ √ Does not clone deeply
Testing show
- ✔ show is a Function
+ √ show is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing shuffle
- ✔ shuffle is a Function
- ✔ Shuffles the array
- ✔ New array contains all original elements
- ✔ Works for empty arrays
- ✔ Works for single-element arrays
+ √ shuffle is a Function
+ √ Shuffles the array
+ √ New array contains all original elements
+ √ Works for empty arrays
+ √ Works for single-element arrays
Testing similarity
- ✔ similarity is a Function
- ✔ Returns an array of elements that appear in both arrays.
+ √ similarity is a Function
+ √ Returns an array of elements that appear in both arrays.
Testing size
- ✔ size is a Function
- ✔ Get size of arrays, objects or strings.
- ✔ Get size of arrays, objects or strings.
+ √ size is a Function
+ √ Get size of arrays, objects or strings.
+ √ Get size of arrays, objects or strings.
Testing sleep
- ✔ sleep is a Function
+ √ sleep is a Function
Testing solveRPN
- ✔ solveRPN is a Function
+ √ solveRPN is a Function
Testing sortCharactersInString
- ✔ sortCharactersInString is a Function
- ✔ Alphabetically sorts the characters in a string.
+ √ sortCharactersInString is a Function
+ √ Alphabetically sorts the characters in a string.
Testing sortedIndex
- ✔ sortedIndex is a Function
- ✔ Returns the lowest index at which value should be inserted into array in order to maintain its sort order.
- ✔ Returns the lowest index at which value should be inserted into array in order to maintain its sort order.
+ √ sortedIndex is a Function
+ √ Returns the lowest index at which value should be inserted into array in order to maintain its sort order.
+ √ Returns the lowest index at which value should be inserted into array in order to maintain its sort order.
Testing sortedIndexBy
- ✔ sortedIndexBy is a Function
- ✔ Returns the lowest index to insert the element without messing up the list order
+ √ sortedIndexBy is a Function
+ √ Returns the lowest index to insert the element without messing up the list order
Testing sortedLastIndex
- ✔ sortedLastIndex is a Function
- ✔ Returns the highest index to insert the element without messing up the list order
+ √ sortedLastIndex is a Function
+ √ Returns the highest index to insert the element without messing up the list order
Testing sortedLastIndexBy
- ✔ sortedLastIndexBy is a Function
- ✔ Returns the highest index to insert the element without messing up the list order
+ √ sortedLastIndexBy is a Function
+ √ Returns the highest index to insert the element without messing up the list order
Testing speechSynthesis
- ✔ speechSynthesis is a Function
+ √ speechSynthesis is a Function
Testing splitLines
- ✔ splitLines is a Function
- ✔ Splits a multiline string into an array of lines.
+ √ splitLines is a Function
+ √ Splits a multiline string into an array of lines.
Testing spreadOver
- ✔ spreadOver is a Function
- ✔ Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function.
+ √ spreadOver is a Function
+ √ Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function.
Testing standardDeviation
- ✔ standardDeviation is a Function
- ✔ Returns the standard deviation of an array of numbers
- ✔ Returns the standard deviation of an array of numbers
+ √ standardDeviation is a Function
+ √ Returns the standard deviation of an array of numbers
+ √ Returns the standard deviation of an array of numbers
Testing stripHTMLTags
- ✔ stripHTMLTags is a Function
- ✔ Removes HTML tags
+ √ stripHTMLTags is a Function
+ √ Removes HTML tags
Testing sum
- ✔ sum is a Function
- ✔ Returns the sum of two or more numbers/arrays.
+ √ sum is a Function
+ √ Returns the sum of two or more numbers/arrays.
Testing sumBy
- ✔ sumBy is a Function
+ √ sumBy is a Function
Testing sumPower
- ✔ sumPower is a Function
- ✔ Returns the sum of the powers of all the numbers from start to end
- ✔ Returns the sum of the powers of all the numbers from start to end
- ✔ Returns the sum of the powers of all the numbers from start to end
+ √ sumPower is a Function
+ √ Returns the sum of the powers of all the numbers from start to end
+ √ Returns the sum of the powers of all the numbers from start to end
+ √ Returns the sum of the powers of all the numbers from start to end
Testing symmetricDifference
- ✔ symmetricDifference is a Function
- ✔ Returns the symmetric difference between two arrays.
+ √ symmetricDifference is a Function
+ √ Returns the symmetric difference between two arrays.
Testing symmetricDifferenceBy
- ✔ symmetricDifferenceBy is a Function
- ✔ Returns the symmetric difference between two arrays, after applying the provided function to each array element of both
+ √ symmetricDifferenceBy is a Function
+ √ Returns the symmetric difference between two arrays, after applying the provided function to each array element of both
Testing symmetricDifferenceWith
- ✔ symmetricDifferenceWith is a Function
- ✔ Returns the symmetric difference between two arrays, using a provided function as a comparator
+ √ symmetricDifferenceWith is a Function
+ √ Returns the symmetric difference between two arrays, using a provided function as a comparator
Testing tail
- ✔ tail is a Function
- ✔ Returns tail
- ✔ Returns tail
+ √ tail is a Function
+ √ Returns tail
+ √ Returns tail
Testing take
- ✔ take is a Function
- ✔ Returns an array with n elements removed from the beginning.
- ✔ Returns an array with n elements removed from the beginning.
+ √ take is a Function
+ √ Returns an array with n elements removed from the beginning.
+ √ Returns an array with n elements removed from the beginning.
Testing takeRight
- ✔ takeRight is a Function
- ✔ Returns an array with n elements removed from the end
- ✔ Returns an array with n elements removed from the end
+ √ takeRight is a Function
+ √ Returns an array with n elements removed from the end
+ √ Returns an array with n elements removed from the end
Testing takeRightWhile
- ✔ takeRightWhile is a Function
- ✔ Removes elements until the function returns true
+ √ takeRightWhile is a Function
+ √ Removes elements until the function returns true
Testing takeWhile
- ✔ takeWhile is a Function
- ✔ Removes elements until the function returns true
+ √ takeWhile is a Function
+ √ Removes elements until the function returns true
Testing throttle
- ✔ throttle is a Function
-
- Testing timeTaken
-
- ✔ timeTaken is a Function
+ √ throttle is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing times
- ✔ times is a Function
- ✔ Runs a function the specified amount of times
+ √ times is a Function
+ √ Runs a function the specified amount of times
+
+ Testing timeTaken
+
+ √ timeTaken is a Function
+ √ Tested by @chalarangelo on 16/02/2018
Testing toCamelCase
- ✔ toCamelCase is a Function
- ✔ toCamelCase('some_database_field_name') returns someDatabaseFieldName
- ✔ toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized
- ✔ toCamelCase('some-javascript-property') return someJavascriptProperty
- ✔ toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens
- ✔ toCamelCase() throws a error
- ✔ toCamelCase([]) throws a error
- ✔ toCamelCase({}) throws a error
- ✔ toCamelCase(123) throws a error
- ✔ toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run
+ √ toCamelCase is a Function
+ √ toCamelCase('some_database_field_name') returns someDatabaseFieldName
+ √ toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized
+ √ toCamelCase('some-javascript-property') return someJavascriptProperty
+ √ toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens
+ √ toCamelCase() throws a error
+ √ toCamelCase([]) throws a error
+ √ toCamelCase({}) throws a error
+ √ toCamelCase(123) throws a error
+ √ toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run
Testing toCurrency
- ✔ toCurrency is a Function
- ✔ currency: Euro | currencyLangFormat: Local
- ✔ currency: US Dollar | currencyLangFormat: English (United States)
- ✔ currency: Japanese Yen | currencyLangFormat: Local
+ √ toCurrency is a Function
+ √ currency: Euro | currencyLangFormat: Local
+ √ currency: US Dollar | currencyLangFormat: English (United States)
+ √ currency: Japanese Yen | currencyLangFormat: Local
Testing toDecimalMark
- ✔ toDecimalMark is a Function
- ✔ convert a float-point arithmetic to the Decimal mark form
-
- Testing toKebabCase
-
- ✔ toKebabCase is a Function
- ✔ toKebabCase('camelCase') returns camel-case
- ✔ toKebabCase('some text') returns some-text
- ✔ toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens
- ✔ toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html
- ✔ toKebabCase() return undefined
- ✔ toKebabCase([]) throws an error
- ✔ toKebabCase({}) throws an error
- ✔ toKebabCase(123) throws an error
- ✔ toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run
-
- Testing toOrdinalSuffix
-
- ✔ toOrdinalSuffix is a Function
- ✔ Adds an ordinal suffix to a number
- ✔ Adds an ordinal suffix to a number
- ✔ Adds an ordinal suffix to a number
- ✔ Adds an ordinal suffix to a number
-
- Testing toSafeInteger
-
- ✔ toSafeInteger is a Function
- ✔ Number(toSafeInteger(3.2)) is a number
- ✔ Converts a value to a safe integer
- ✔ toSafeInteger('4.2') returns 4
- ✔ toSafeInteger(4.6) returns 5
- ✔ toSafeInteger([]) returns 0
- ✔ isNaN(toSafeInteger([1.5, 3124])) is true
- ✔ isNaN(toSafeInteger('string')) is true
- ✔ isNaN(toSafeInteger({})) is true
- ✔ isNaN(toSafeInteger()) is true
- ✔ toSafeInteger(Infinity) returns 9007199254740991
- ✔ toSafeInteger(3.2) takes less than 2s to run
-
- Testing toSnakeCase
-
- ✔ toSnakeCase is a Function
- ✔ toSnakeCase('camelCase') returns camel_case
- ✔ toSnakeCase('some text') returns some_text
- ✔ toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens
- ✔ toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html
- ✔ toSnakeCase() returns undefined
- ✔ toSnakeCase([]) throws an error
- ✔ toSnakeCase({}) throws an error
- ✔ toSnakeCase(123) throws an error
- ✔ toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run
+ √ toDecimalMark is a Function
+ √ convert a float-point arithmetic to the Decimal mark form
Testing toggleClass
- ✔ toggleClass is a Function
+ √ toggleClass is a Function
+ √ Tested by @chalarangelo on 16/02/2018
+
+ Testing toKebabCase
+
+ √ toKebabCase is a Function
+ √ toKebabCase('camelCase') returns camel-case
+ √ toKebabCase('some text') returns some-text
+ √ toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens
+ √ toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html
+ √ toKebabCase() return undefined
+ √ toKebabCase([]) throws an error
+ √ toKebabCase({}) throws an error
+ √ toKebabCase(123) throws an error
+ √ toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run
Testing tomorrow
- ✔ tomorrow is a Function
- ✔ Returns the correct year
- ✔ Returns the correct month
- ✔ Returns the correct date
+ √ tomorrow is a Function
+ √ Returns the correct year
+ √ Returns the correct month
+ √ Returns the correct date
+
+ Testing toOrdinalSuffix
+
+ √ toOrdinalSuffix is a Function
+ √ Adds an ordinal suffix to a number
+ √ Adds an ordinal suffix to a number
+ √ Adds an ordinal suffix to a number
+ √ Adds an ordinal suffix to a number
+
+ Testing toSafeInteger
+
+ √ toSafeInteger is a Function
+ √ Number(toSafeInteger(3.2)) is a number
+ √ Converts a value to a safe integer
+ √ toSafeInteger('4.2') returns 4
+ √ toSafeInteger(4.6) returns 5
+ √ toSafeInteger([]) returns 0
+ √ isNaN(toSafeInteger([1.5, 3124])) is true
+ √ isNaN(toSafeInteger('string')) is true
+ √ isNaN(toSafeInteger({})) is true
+ √ isNaN(toSafeInteger()) is true
+ √ toSafeInteger(Infinity) returns 9007199254740991
+ √ toSafeInteger(3.2) takes less than 2s to run
+
+ Testing toSnakeCase
+
+ √ toSnakeCase is a Function
+ √ toSnakeCase('camelCase') returns camel_case
+ √ toSnakeCase('some text') returns some_text
+ √ toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens
+ √ toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html
+ √ toSnakeCase() returns undefined
+ √ toSnakeCase([]) throws an error
+ √ toSnakeCase({}) throws an error
+ √ toSnakeCase(123) throws an error
+ √ toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run
Testing transform
- ✔ transform is a Function
- ✔ Transforms an object
+ √ transform is a Function
+ √ Transforms an object
Testing truncateString
- ✔ truncateString is a Function
- ✔ Truncates a "boomerang" up to a specified length.
+ √ truncateString is a Function
+ √ Truncates a "boomerang" up to a specified length.
Testing truthCheckCollection
- ✔ truthCheckCollection is a Function
- ✔ second argument is truthy on all elements of a collection
+ √ truthCheckCollection is a Function
+ √ second argument is truthy on all elements of a collection
Testing unary
- ✔ unary is a Function
- ✔ Discards arguments after the first one
+ √ unary is a Function
+ √ Discards arguments after the first one
Testing uncurry
- ✔ uncurry is a Function
- ✔ Works without a provided value for n
- ✔ Works without n = 2
- ✔ Works withoutn = 3
+ √ uncurry is a Function
+ √ Works without a provided value for n
+ √ Works without n = 2
+ √ Works withoutn = 3
Testing unescapeHTML
- ✔ unescapeHTML is a Function
- ✔ Unescapes escaped HTML characters.
+ √ unescapeHTML is a Function
+ √ Unescapes escaped HTML characters.
Testing unflattenObject
- ✔ unflattenObject is a Function
- ✔ Unflattens an object with the paths for keys
+ √ unflattenObject is a Function
+ √ Unflattens an object with the paths for keys
Testing unfold
- ✔ unfold is a Function
- ✔ Works with a given function, producing an array
+ √ unfold is a Function
+ √ Works with a given function, producing an array
Testing union
- ✔ union is a Function
- ✔ union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4]
- ✔ union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ]
- ✔ union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3]
- ✔ union([], []) returns []
- ✔ union() throws an error
- ✔ union(true, str) throws an error
- ✔ union(false, true) throws an error
- ✔ union(123, {}) throws an error
- ✔ union([], {}) throws an error
- ✔ union(undefined, null) throws an error
- ✔ union([1, 2, 3], [4, 3, 2]) takes less than 2s to run
+ √ union is a Function
+ √ union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4]
+ √ union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ]
+ √ union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3]
+ √ union([], []) returns []
+ √ union() throws an error
+ √ union(true, str) throws an error
+ √ union(false, true) throws an error
+ √ union(123, {}) throws an error
+ √ union([], {}) throws an error
+ √ union(undefined, null) throws an error
+ √ union([1, 2, 3], [4, 3, 2]) takes less than 2s to run
Testing unionBy
- ✔ unionBy is a Function
- ✔ Produces the appropriate results
+ √ unionBy is a Function
+ √ Produces the appropriate results
Testing unionWith
- ✔ unionWith is a Function
- ✔ Produces the appropriate results
+ √ unionWith is a Function
+ √ Produces the appropriate results
Testing uniqueElements
- ✔ uniqueElements is a Function
- ✔ uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5]
- ✔ uniqueElements([1, 23, 53]) returns [1, 23, 53]
- ✔ uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, '']
- ✔ uniqueElements() returns []
- ✔ uniqueElements(null) returns []
- ✔ uniqueElements(undefined) returns []
- ✔ uniqueElements('strt') returns ['s', 't', 'r']
- ✔ uniqueElements(1, 1, 2543, 534, 5) throws an error
- ✔ uniqueElements({}) throws an error
- ✔ uniqueElements(true) throws an error
- ✔ uniqueElements(false) throws an error
- ✔ uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run
+ √ uniqueElements is a Function
+ √ uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5]
+ √ uniqueElements([1, 23, 53]) returns [1, 23, 53]
+ √ uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, '']
+ √ uniqueElements() returns []
+ √ uniqueElements(null) returns []
+ √ uniqueElements(undefined) returns []
+ √ uniqueElements('strt') returns ['s', 't', 'r']
+ √ uniqueElements(1, 1, 2543, 534, 5) throws an error
+ √ uniqueElements({}) throws an error
+ √ uniqueElements(true) throws an error
+ √ uniqueElements(false) throws an error
+ √ uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run
Testing untildify
- ✔ untildify is a Function
- ✔ Contains no tildes
- ✔ Does not alter the rest of the path
- ✔ Does not alter paths without tildes
+ √ untildify is a Function
+ √ Contains no tildes
+ √ Does not alter the rest of the path
+ √ Does not alter paths without tildes
Testing unzip
- ✔ unzip is a Function
- ✔ unzip([['a', 1, true], ['b', 2, false]]) equals [['a', 'b'], [1, 2], [true, false]]
- ✔ unzip([['a', 1, true], ['b', 2]]) equals [['a', 'b'], [1, 2], [true]]
+ √ unzip is a Function
+ √ unzip([['a', 1, true], ['b', 2, false]]) equals [['a', 'b'], [1, 2], [true, false]]
+ √ unzip([['a', 1, true], ['b', 2]]) equals [['a', 'b'], [1, 2], [true]]
Testing unzipWith
- ✔ unzipWith is a Function
- ✔ unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300]
+ √ unzipWith is a Function
+ √ unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300]
+
+ Testing URLJoin
+
+ √ URLJoin is a Function
+ √ Returns proper URL
+ √ Returns proper URL
+
+ Testing UUIDGeneratorBrowser
+
+ √ UUIDGeneratorBrowser is a Function
+ √ Tested 09/02/2018 by @chalarangelo
+
+ Testing UUIDGeneratorNode
+
+ √ UUIDGeneratorNode is a Function
+ √ Contains dashes in the proper places
+ √ Only contains hexadecimal digits
Testing validateNumber
- ✔ validateNumber is a Function
- ✔ validateNumber(9) returns true
- ✔ validateNumber(234asd.slice(0, 2)) returns true
- ✔ validateNumber(1232) returns true
- ✔ validateNumber(1232 + 13423) returns true
- ✔ validateNumber(1232 * 2342 * 123) returns true
- ✔ validateNumber(1232.23423536) returns true
- ✔ validateNumber(234asd) returns false
- ✔ validateNumber(e234d) returns false
- ✔ validateNumber(false) returns false
- ✔ validateNumber(true) returns false
- ✔ validateNumber(null) returns false
- ✔ validateNumber(123 * asd) returns false
+ √ validateNumber is a Function
+ √ validateNumber(9) returns true
+ √ validateNumber(234asd.slice(0, 2)) returns true
+ √ validateNumber(1232) returns true
+ √ validateNumber(1232 + 13423) returns true
+ √ validateNumber(1232 * 2342 * 123) returns true
+ √ validateNumber(1232.23423536) returns true
+ √ validateNumber(234asd) returns false
+ √ validateNumber(e234d) returns false
+ √ validateNumber(false) returns false
+ √ validateNumber(true) returns false
+ √ validateNumber(null) returns false
+ √ validateNumber(123 * asd) returns false
Testing without
- ✔ without is a Function
- ✔ without([2, 1, 2, 3], 1, 2) returns [3]
- ✔ without([]) returns []
- ✔ without([3, 1, true, '3', true], '3', true) returns [3, 1]
- ✔ without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n']
- ✔ without() throws an error
- ✔ without(null) throws an error
- ✔ without(undefined) throws an error
- ✔ without() throws an error
- ✔ without({}) throws an error
+ √ without is a Function
+ √ without([2, 1, 2, 3], 1, 2) returns [3]
+ √ without([]) returns []
+ √ without([3, 1, true, '3', true], '3', true) returns [3, 1]
+ √ without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n']
+ √ without() throws an error
+ √ without(null) throws an error
+ √ without(undefined) throws an error
+ √ without() throws an error
+ √ without({}) throws an error
Testing words
- ✔ words is a Function
- ✔ words('I love javaScript!!') returns [I, love, javaScript]
- ✔ words('python, javaScript & coffee') returns [python, javaScript, coffee]
- ✔ words(I love javaScript!!) returns an array
- ✔ words() throws a error
- ✔ words(null) throws a error
- ✔ words(undefined) throws a error
- ✔ words({}) throws a error
- ✔ words([]) throws a error
- ✔ words(1234) throws a error
+ √ words is a Function
+ √ words('I love javaScript!!') returns [I, love, javaScript]
+ √ words('python, javaScript & coffee') returns [python, javaScript, coffee]
+ √ words(I love javaScript!!) returns an array
+ √ words() throws a error
+ √ words(null) throws a error
+ √ words(undefined) throws a error
+ √ words({}) throws a error
+ √ words([]) throws a error
+ √ words(1234) throws a error
Testing xProd
- ✔ xProd is a Function
- ✔ xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
+ √ xProd is a Function
+ √ xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
Testing yesNo
- ✔ yesNo is a Function
- ✔ yesNo(Y) returns true
- ✔ yesNo(yes) returns true
- ✔ yesNo(foo, true) returns true
- ✔ yesNo(No) returns false
- ✔ yesNo() returns false
- ✔ yesNo(null) returns false
- ✔ yesNo(undefined) returns false
- ✔ yesNo([123, null]) returns false
- ✔ yesNo([Yes, No]) returns false
- ✔ yesNo({ 2: Yes }) returns false
- ✔ yesNo([Yes, No], true) returns true
- ✔ yesNo({ 2: Yes }, true) returns true
+ √ yesNo is a Function
+ √ yesNo(Y) returns true
+ √ yesNo(yes) returns true
+ √ yesNo(foo, true) returns true
+ √ yesNo(No) returns false
+ √ yesNo() returns false
+ √ yesNo(null) returns false
+ √ yesNo(undefined) returns false
+ √ yesNo([123, null]) returns false
+ √ yesNo([Yes, No]) returns false
+ √ yesNo({ 2: Yes }) returns false
+ √ yesNo([Yes, No], true) returns true
+ √ yesNo({ 2: Yes }, true) returns true
Testing zip
- ✔ zip is a Function
- ✔ zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]]
- ✔ zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]]
- ✔ zip([]) returns []
- ✔ zip(123) returns []
- ✔ zip([a, b], [1, 2], [true, false]) returns an Array
- ✔ zip([a], [1, 2], [true, false]) returns an Array
- ✔ zip(null) throws an error
- ✔ zip(undefined) throws an error
+ √ zip is a Function
+ √ zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]]
+ √ zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]]
+ √ zip([]) returns []
+ √ zip(123) returns []
+ √ zip([a, b], [1, 2], [true, false]) returns an Array
+ √ zip([a], [1, 2], [true, false]) returns an Array
+ √ zip(null) throws an error
+ √ zip(undefined) throws an error
Testing zipObject
- ✔ zipObject is a Function
- ✔ zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined}
- ✔ zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2}
- ✔ zipObject([a, b, c], string) returns { a: s, b: t, c: r }
- ✔ zipObject([a], string) returns { a: s }
- ✔ zipObject() throws an error
- ✔ zipObject([string], null) throws an error
- ✔ zipObject(null, [1]) throws an error
- ✔ zipObject(string) throws an error
- ✔ zipObject(test, string) throws an error
+ √ zipObject is a Function
+ √ zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined}
+ √ zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2}
+ √ zipObject([a, b, c], string) returns { a: s, b: t, c: r }
+ √ zipObject([a], string) returns { a: s }
+ √ zipObject() throws an error
+ √ zipObject([string], null) throws an error
+ √ zipObject(null, [1]) throws an error
+ √ zipObject(string) throws an error
+ √ zipObject(test, string) throws an error
Testing zipWith
√ zipWith is a Function
- √ Runs the function provided
√ Sends a GET request
+ √ Runs the function provided
√ Runs promises in series
√ Sends a POST request
+ √ Works as expecting, passing arguments properly
√ Works with multiple promises
- total: 945
- passing: 945
- duration: 4.9s
+ total: 970
+ passing: 970
+ duration: 2.4s
diff --git a/test/throttle/throttle.test.js b/test/throttle/throttle.test.js
index 4de75afdb..fcd88a603 100644
--- a/test/throttle/throttle.test.js
+++ b/test/throttle/throttle.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/timeTaken/timeTaken.test.js b/test/timeTaken/timeTaken.test.js
index 45d8aa0eb..fd72e9d13 100644
--- a/test/timeTaken/timeTaken.test.js
+++ b/test/timeTaken/timeTaken.test.js
@@ -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();
-});
\ No newline at end of file
+});
diff --git a/test/toggleClass/toggleClass.test.js b/test/toggleClass/toggleClass.test.js
index f7424a31d..f0bbe14d6 100644
--- a/test/toggleClass/toggleClass.test.js
+++ b/test/toggleClass/toggleClass.test.js
@@ -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();
-});
\ No newline at end of file
+});