Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
just unpublish this kata
expected [ 97, 5994.26, 2275.23 ] to deeply equal [ 97, 5994.240000000001, 2275.240000000001 ]
I've missed this in here.
Just fixed it.
Thanks!
On the Fixed Test: Cart #3, multiple items
products = [{price: 12.75, tax: 99}, {price: 99.00, tax: 12}, {price: 75.23, tax: 47}]
The result expected is
[ 3, 110.5881, 35.3581 ]
Are you sure about this? The price and the tax appear to be the values for the third item only: 75.231.47 = 110.5882; 75.230.47 = 35.3581
I could do random tests but, in order to determine what the result should be, I would have to replicate most of the function logic again in the tests. Seems redundant tbh.
Fixed! It was the export in the default solution.
(node:1) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
Something is wrong with the configuration of this kata.