Merge branch 'master' into add-toCurrency
This commit is contained in:
148
test/testlog
148
test/testlog
@ -1,6 +1,6 @@
|
||||
Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Test log for: Sun Jan 28 2018 16:40:59 GMT+0200 (GTB Standard Time)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test C:\Users\King David\Desktop\github-repo\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
|
||||
|
||||
|
||||
@ -8,14 +8,20 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ anagrams is a Function
|
||||
√ Generates all anagrams of a string
|
||||
√ Works for single-letter strings
|
||||
√ Works for empty strings
|
||||
|
||||
|
||||
Testing arrayToHtmlList
|
||||
|
||||
√ arrayToHtmlList is a Function
|
||||
√ Generates and fills a list element
|
||||
|
||||
Testing ary
|
||||
|
||||
√ ary is a Function
|
||||
√ Discards arguments with index >=n
|
||||
|
||||
|
||||
Testing atob
|
||||
|
||||
@ -23,6 +29,12 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
√ atob("Zm9vYmFy") equals "foobar"
|
||||
√ atob("Z") returns ""
|
||||
|
||||
Testing attempt
|
||||
|
||||
√ attempt is a Function
|
||||
√ Returns a value
|
||||
√ Returns an error
|
||||
|
||||
Testing average
|
||||
|
||||
√ average is a Function
|
||||
@ -51,14 +63,17 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing bind
|
||||
|
||||
√ bind is a Function
|
||||
√ Binds to an object context
|
||||
|
||||
Testing bindAll
|
||||
|
||||
√ bindAll is a Function
|
||||
√ Binds to an object context
|
||||
|
||||
Testing bindKey
|
||||
|
||||
√ bindKey is a Function
|
||||
√ Binds function to an object context
|
||||
|
||||
Testing bottomVisible
|
||||
|
||||
@ -173,6 +188,8 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing countBy
|
||||
|
||||
√ countBy is a Function
|
||||
√ Works for functions
|
||||
√ Works for property names
|
||||
|
||||
Testing countOccurrences
|
||||
|
||||
@ -205,6 +222,16 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ decapitalize is a Function
|
||||
|
||||
Testing debounce
|
||||
|
||||
√ debounce is a Function
|
||||
|
||||
Testing decapitalize
|
||||
|
||||
√ decapitalize is a Function
|
||||
√ Works with default parameter
|
||||
√ Works with second parameter set to true
|
||||
|
||||
Testing deepClone
|
||||
|
||||
√ deepClone is a Function
|
||||
@ -460,6 +487,7 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing hasClass
|
||||
|
||||
√ hasClass is a Function
|
||||
√ element has the specified class
|
||||
|
||||
Testing hasFlags
|
||||
|
||||
@ -957,6 +985,10 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ over is a Function
|
||||
|
||||
Testing overArgs
|
||||
|
||||
√ overArgs is a Function
|
||||
|
||||
Testing palindrome
|
||||
|
||||
√ palindrome is a Function
|
||||
@ -994,6 +1026,11 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ pickBy is a Function
|
||||
|
||||
Testing pipeAsyncFunctions
|
||||
|
||||
√ pipeAsyncFunctions is a Function
|
||||
√ pipeAsyncFunctions result should be 15
|
||||
|
||||
Testing pipeFunctions
|
||||
|
||||
√ pipeFunctions is a Function
|
||||
@ -1075,6 +1112,10 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ README is a Function
|
||||
|
||||
Testing rearg
|
||||
|
||||
√ rearg is a Function
|
||||
|
||||
Testing redirect
|
||||
|
||||
√ redirect is a Function
|
||||
@ -1118,7 +1159,16 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing round
|
||||
|
||||
√ round is a Function
|
||||
√ Rounds a number to a specified amount of digits.
|
||||
√ 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
|
||||
|
||||
@ -1288,6 +1338,10 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
|
||||
√ takeWhile is a Function
|
||||
|
||||
Testing throttle
|
||||
|
||||
√ throttle is a Function
|
||||
|
||||
Testing times
|
||||
|
||||
√ times is a Function
|
||||
@ -1299,15 +1353,21 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing toCamelCase
|
||||
|
||||
√ toCamelCase is a Function
|
||||
√ Converts a string to camelCase
|
||||
√ Converts a string to camelCase
|
||||
√ Converts a string to camelCase
|
||||
√ Converts a string to camelCase
|
||||
√ 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
|
||||
|
||||
|
||||
Testing toDecimalMark
|
||||
|
||||
√ toDecimalMark is a Function
|
||||
@ -1320,10 +1380,15 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing toKebabCase
|
||||
|
||||
√ toKebabCase is a Function
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ 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
|
||||
|
||||
@ -1340,19 +1405,30 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing toSafeInteger
|
||||
|
||||
√ toSafeInteger is a Function
|
||||
√ Number(toSafeInteger(3.2)) is a number
|
||||
√ Converts a value to a safe integer
|
||||
√ Converts a value to a safe integer
|
||||
√ Converts a value to a safe integer
|
||||
√ Converts a value to a safe integer
|
||||
√ 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
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ string converts to snake case
|
||||
√ 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
|
||||
|
||||
@ -1384,7 +1460,17 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing union
|
||||
|
||||
√ union is a Function
|
||||
√ Returns every element that exists in any of the two arrays once
|
||||
√ 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
|
||||
|
||||
@ -1397,7 +1483,18 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing uniqueElements
|
||||
|
||||
√ uniqueElements is a Function
|
||||
√ Returns all unique values of an array
|
||||
√ 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
|
||||
|
||||
@ -1519,10 +1616,9 @@ Test log for: Sun Jan 28 2018 14:42:53 GMT-0500 (Eastern Standard Time)
|
||||
Testing zipWith
|
||||
|
||||
√ zipWith is a Function
|
||||
√ Works with multiple promises
|
||||
|
||||
|
||||
total: 649
|
||||
passing: 649
|
||||
duration: 499ms
|
||||
|
||||
|
||||
total: 721
|
||||
passing: 721
|
||||
duration: 3.1s
|
||||
Reference in New Issue
Block a user