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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 0
1..111
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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together
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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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
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 not ok 72 promise-utils reduce: as a monad: should reduce the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 73 promise-utils reduce: as a function: should reduce the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 74 promise-utils reduceRight: as a monad: should reduceRight the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 75 promise-utils reduceRight: as a function: should reduceRight the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together
2013-06-05 16:39:01
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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together # tests 111 # pass 111 # fail 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 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 not ok 72 promise-utils reduce: as a monad: should reduce the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 73 promise-utils reduce: as a function: should reduce the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 74 promise-utils reduceRight: as a monad: should reduceRight the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method not ok 75 promise-utils reduceRight: as a function: should reduceRight the array Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method Object doesn't support this property or method 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 function: should rotate an array ok 80 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 81 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 82 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 83 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 84 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 85 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 86 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 87 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 88 promise-utils .some: as a monad: should catch thrown errors ok 89 promise-utils .some: as a monad: should catch async errors ok 90 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 91 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 92 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 93 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 94 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 95 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 96 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 97 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 98 promise-utils .some: as a function: should catch thrown errors ok 99 promise-utils .some: as a function: should catch async errors ok 100 promise-utils .sort: as a monad: should sort an array ok 101 promise-utils .sort: as a function: should sort an array ok 102 promise-utils .sum: as a monad: should sum values of an array ok 103 promise-utils .sum: as a function: should sum values of an array ok 104 promise-utils .transpose: as a monad: should transpose an array of arrays ok 105 promise-utils .transpose: as a function: should transpose an array of arrays ok 106 promise-utils .union: as a monad: should union arrays ok 107 promise-utils .union: as a function: should union arrays ok 108 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 109 promise-utils .valuesAt: as a function: should find values at particular indexes ok 110 promise-utils .zip: as a monad: should zip arrays together ok 111 promise-utils .zip: as a function: should zip arrays together
2013-06-05 08:12:50
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
timeout waiting to hear back from iexplore/8.0
2013-05-10 18:52:40
✓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..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results 1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 61 promise-utils .min: as a function: should find the min value of an array ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers 1..105 ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 67 promise-utils .pluck: as a function: should pluck properties ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together
2013-05-10 16:12:22
✓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..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
timeout waiting to hear back from safari/6.0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together
2013-05-10 06:15:15
✓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
timeout waiting to hear back from safari/6.0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together
2013-05-10 06:09:04
✓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
timeout waiting to hear back from safari/6.0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an array ok 61 promise-utils .min: as a function: should find the min value of an array ok 62 promise-utils .multiply: as a monad: should multiply an array ok 63 promise-utils .multiply: as a function: should multiply an array ok 64 promise-utils .permutations: as a monad: should find permutations of an array ok 65 promise-utils .permutations: as a function: should find permutations of an array ok 66 promise-utils .pluck: as a monad: should pluck properties ok 67 promise-utils .pluck: as a function: should pluck properties ok 68 promise-utils .powerSet: as a monad: should find the powerset ok 69 promise-utils .powerSet: as a function: should find the powerset ok 70 promise-utils .removeDuplicates: as a monad: should remove duplicates ok 71 promise-utils .removeDuplicates: as a function: should remove duplicates ok 72 promise-utils .rotate: as a monad: should rotate an array ok 73 promise-utils .rotate: as a function: should rotate an array ok 74 promise-utils .some: as a monad: should loop through results of a promise and return true if some items pass ok 75 promise-utils .some: as a monad: should loop through results of a promise and return false if not items pass ok 76 promise-utils .some: as a monad: should Loop through each item in an array and return true if some items pass ok 77 promise-utils .some: as a monad: should Loop through each item in an array and return false if no items pass ok 78 promise-utils .some: as a monad: should wait for inner promises to complete and return true if some items pass ok 79 promise-utils .some: as a monad: should wait for inner promises to complete and return false if no items pass ok 80 promise-utils .some: as a monad: should should accept non array items but still loop and return true if the item passes ok 81 promise-utils .some: as a monad: should should accept non array items but still loop and return false if the item does not pass ok 82 promise-utils .some: as a monad: should catch thrown errors ok 83 promise-utils .some: as a monad: should catch async errors ok 84 promise-utils .some: as a function: should loop through results of a promise and return true if some items pass ok 85 promise-utils .some: as a function: should loop through results of a promise and return false if not items pass ok 86 promise-utils .some: as a function: should Loop through each item in an array and return true if some items pass ok 87 promise-utils .some: as a function: should Loop through each item in an array and return false if no items pass ok 88 promise-utils .some: as a function: should wait for inner promises to complete and return true if some items pass ok 89 promise-utils .some: as a function: should wait for inner promises to complete and return false if no items pass ok 90 promise-utils .some: as a function: should should accept non array items but still loop and return true if the item passes ok 91 promise-utils .some: as a function: should should accept non array items but still loop and return false if the item does not pass ok 92 promise-utils .some: as a function: should catch thrown errors ok 93 promise-utils .some: as a function: should catch async errors ok 94 promise-utils .sort: as a monad: should sort an array ok 95 promise-utils .sort: as a function: should sort an array ok 96 promise-utils .sum: as a monad: should sum values of an array ok 97 promise-utils .sum: as a function: should sum values of an array ok 98 promise-utils .transpose: as a monad: should transpose an array of arrays ok 99 promise-utils .transpose: as a function: should transpose an array of arrays ok 100 promise-utils .union: as a monad: should union arrays ok 101 promise-utils .union: as a function: should union arrays ok 102 promise-utils .valuesAt: as a monad: should find values at particular indexes ok 103 promise-utils .valuesAt: as a function: should find values at particular indexes ok 104 promise-utils .zip: as a monad: should zip arrays together ok 105 promise-utils .zip: as a function: should zip arrays together # tests 105 # pass 105 # fail 0
1..105 ok 1 promise-utils avg: as a monad: should average an array ok 2 promise-utils avg: as a monad: should throw errors for items that are not numbers ok 3 promise-utils avg: as a function: should average an array ok 4 promise-utils avg: as a function: should throw errors for items that are not numbers ok 5 promise-utils .cartesian: as a monad: should find the cartesian product ok 6 promise-utils .cartesian: as a function: should find the cartesian product ok 7 promise-utils chaining: should allow chaining of operations ok 8 promise-utils .compact: as a monad: should compact an array ok 9 promise-utils .compact: as a function: should compact an array ok 10 promise-utils .difference: as a monad: should find the difference between two arrays ok 11 promise-utils .difference: as a function: should find the difference between two arrays ok 12 promise-utils .every: as a monad: should loop through results of a promise and return true if all items pass ok 13 promise-utils .every: as a monad: should loop through results of a promise and return false if all items do not pass ok 14 promise-utils .every: as a monad: should Loop through each item in an array and return true if all items pass ok 15 promise-utils .every: as a monad: should Loop through each item in an array and return false if all items do not pass ok 16 promise-utils .every: as a monad: should wait for inner promises to complete and return true if all items pass ok 17 promise-utils .every: as a monad: should wait for inner promises to complete and return false if all items do not pass ok 18 promise-utils .every: as a monad: should should accept non array items but still loop and return the non array item ok 19 promise-utils .every: as a monad: should catch thrown errors ok 20 promise-utils .every: as a monad: should catch async errors ok 21 promise-utils .every: as a function: should loop through results of a promise and return true if all items pass ok 22 promise-utils .every: as a function: should loop through results of a promise and return false if all items do not pass ok 23 promise-utils .every: as a function: should Loop through each item in an array and return true if all items pass ok 24 promise-utils .every: as a function: should Loop through each item in an array and return false if all items do not pass ok 25 promise-utils .every: as a function: should wait for inner promises to complete and return true if all items pass ok 26 promise-utils .every: as a function: should wait for inner promises to complete and return false if all items do not pass ok 27 promise-utils .every: as a function: should should accept non array items but still loop and return the non array item ok 28 promise-utils .every: as a function: should catch thrown errors ok 29 promise-utils .every: as a function: should catch async errors ok 30 promise-utils .filter: as a monad: should loop through results of a promise return the results ok 31 promise-utils .filter: as a monad: should Loop through each item in an array and return the results ok 32 promise-utils .filter: as a monad: should wait for inner promises to complete and return the original array ok 33 promise-utils .filter: as a monad: should should accept non array items but still loop and return the non array item ok 34 promise-utils .filter: as a monad: should catch thrown errors ok 35 promise-utils .filter: as a monad: should catch async errors ok 36 promise-utils .filter: as a function: should loop through results of a promise return the results ok 37 promise-utils .filter: as a function: should Loop through each item in an array and return the results ok 38 promise-utils .filter: as a function: should wait for inner promises to complete and return the original array ok 39 promise-utils .filter: as a function: should should accept non array items but still loop and return the non array item ok 40 promise-utils .filter: as a function: should catch thrown errors ok 41 promise-utils .filter: as a function: should catch async errors ok 42 promise-utils .flatten: as a monad: should flatten properly ok 43 promise-utils .flatten: as a function: should flatten properly ok 44 promise-utils: as a monad: should support invoke ok 45 promise-utils: as a function: should support invoke ok 46 promise-utils .map: as a monad: should loop through results of a promise return the results ok 47 promise-utils .map: as a monad: should Loop through each item in an array and return the results ok 48 promise-utils .map: as a monad: should wait for inner promises to complete and return the original array ok 49 promise-utils .map: as a monad: should should accept non array items but still loop and return the non array item ok 50 promise-utils .map: as a monad: should catch thrown errors ok 51 promise-utils .map: as a monad: should catch async errors ok 52 promise-utils .map: as a function: should loop through results of a promise return the results ok 53 promise-utils .map: as a function: should Loop through each item in an array and return the results ok 54 promise-utils .map: as a function: should wait for inner promises to complete and return the original array ok 55 promise-utils .map: as a function: should should accept non array items but still loop and return the non array item ok 56 promise-utils .map: as a function: should catch thrown errors ok 57 promise-utils .map: as a function: should catch async errors ok 58 promise-utils .max: as a monad: should find the max value of an array ok 59 promise-utils .max: as a function: should find the max value of an array ok 60 promise-utils .min: as a monad: should find the min value of an