doug-martin/promise-utils

2013-06-06 23:05:45
8.0
9.0
10.0
✓20.0
✓21.0
✓22.0
✓23.0
✓24.0
✓25.0
26.0
27.0
28.0
29.0
✓14.0
✓15.0
✓16.0
✓17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
✓6.0
✓6.0
6.0
1..111 ok 1 promise-utils at: as a monad: should pluck the value at the specified index ok 2 promise-utils at: as a function: should pluck the value at the specified index ok 3 promise-utils avg: as a monad: should average an array ok 4 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 5 promise-utils avg: as a function: should average an array ok 6 promise-utils avg: as a function: should throw errors for items that are not numbers ok 7 promise-utils .cartesian: as a monad: should find the cartesian product ok 8 promise-utils .cartesian: as a function: should find the cartesian product ok 9 promise-utils chaining: should allow chaining of operations ok 10 promise-utils .compact: as a monad: should compact an array ok 11 promise-utils .compact: as a function: should compact an array ok 12 promise-utils .difference: as a monad: should find the difference between two arrays ok 13 promise-utils .difference: as a function: should find the difference between two arrays ok 14 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 15 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 16 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 17 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 18 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 19 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 20 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 21 promise-utils .every: as a monad: should catch thrown errors ok 22 promise-utils .every: as a monad: should catch async errors ok 23 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 24 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 25 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 26 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 27 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 28 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 29 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 30 promise-utils .every: as a function: should catch thrown errors ok 31 promise-utils .every: as a function: should catch async errors ok 32 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 33 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 34 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 35 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 36 promise-utils .filter: as a monad: should catch thrown errors ok 37 promise-utils .filter: as a monad: should catch async errors ok 38 promise-utils .filter: as a function: should loop through results of a promise return the results ok 39 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 40 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 41 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 42 promise-utils .filter: as a function: should catch thrown errors ok 43 promise-utils .filter: as a function: should catch async errors ok 44 promise-utils .flatten: as a monad: should flatten properly ok 45 promise-utils .flatten: as a function: should flatten properly 1..111 ok 1 promise-utils at: as a monad: should pluck the value at the specified index ok 2 promise-utils at: as a function: should pluck the value at the specified index ok 3 promise-utils avg: as a monad: should average an array ok 4 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 5 promise-utils avg: as a function: should average an array ok 6 promise-utils avg: as a function: should throw errors for items that are not numbers ok 7 promise-utils .cartesian: as a monad: should find the cartesian product ok 8 promise-utils .cartesian: as a function: should find the cartesian product ok 9 promise-utils chaining: should allow chaining of operations ok 10 promise-utils .compact: as a monad: should compact an array ok 11 promise-utils .compact: as a function: should compact an array ok 12 promise-utils .difference: as a monad: should find the difference between two arrays ok 13 promise-utils .difference: as a function: should find the difference between two arrays ok 14 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 15 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 16 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 17 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 18 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 19 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 20 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 21 promise-utils .every: as a monad: should catch thrown errors ok 22 promise-utils .every: as a monad: should catch async errors ok 23 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 24 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 25 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 26 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 27 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 28 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 29 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 30 promise-utils .every: as a function: should catch thrown errors ok 31 promise-utils .every: as a function: should catch async errors ok 32 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 33 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 34 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 35 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 36 promise-utils .filter: as a monad: should catch thrown errors ok 37 promise-utils .filter: as a monad: should catch async errors ok 38 promise-utils .filter: as a function: should loop through results of a promise return the results ok 39 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 40 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 41 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 42 promise-utils .filter: as a function: should catch thrown errors ok 43 promise-utils .filter: as a function: should catch async errors ok 44 promise-utils .flatten: as a monad: should flatten properly ok 45 promise-utils .flatten: as a function: should flatten properly ok 46 promise-utils: as a monad: should support invoke ok 47 promise-utils: as a function: should support invoke ok 48 promise-utils .map: as a monad: should loop through results of a promise return the results ok 49 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 50 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 51 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 52 promise-utils .map: as a monad: should catch thrown errors ok 53 promise-utils .map: as a monad: should catch async errors ok 54 promise-utils .map: as a function: should loop through results of a promise return the results ok 55 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 56 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 57 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 58 promise-utils .map: as a function: should catch thrown errors ok 59 promise-utils .map: as a function: should catch async errors ok 60 promise-utils .max: as a monad: should find the max value of an array ok 61 promise-utils .max: as a function: should find the max value of an array ok 62 promise-utils .min: as a monad: should find the min value of an array ok 63 promise-utils .min: as a function: should find the min value of an array ok 64 promise-utils .multiply: as a monad: should multiply an array ok 65 promise-utils .multiply: as a function: should multiply an array ok 66 promise-utils .permutations: as a monad: should find permutations of an array ok 67 promise-utils .permutations: as a function: should find permutations of an array ok 68 promise-utils .pluck: as a monad: should pluck properties ok 69 promise-utils .pluck: as a function: should pluck properties ok 70 promise-utils .powerSet: as a monad: should find the powerset ok 71 promise-utils .powerSet: as a function: should find the powerset ok 72 promise-utils reduce: as a monad: should reduce the array ok 73 promise-utils reduce: as a function: should reduce the array ok 74 promise-utils reduceRight: as a monad: should reduceRight the array ok 75 promise-utils reduceRight: as a function: should reduceRight the array ok 76 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 77 promise-utils .removeDuplicates: as a function: should remove duplicates ok 78 promise-utils .rotate: as a monad: should rotate an array ok 79 promise-utils .rotate: as a functi