@@ -1 +1,1638 @@
+// Put %60items.json%60 in your %60APIGymnastics%60 directory...%0Avar items = require('items.json');%0A%0A// TODO: Setup mocha and chai...%0A%0Atest('this is the easy one', function()%7B%0A  expect(Array.isArray(items)).to.be.true; // What.%0A  // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray%0A%0A  expect(items.length).to.equal(FILL_ME_IN); // It's haunting me now...%0A%7D);%0A%0Atest('finding the average price', function()%7B%0A  var yourAnswer = %22start with %60items%60; use %60Array%60 methods%22;%0A%0A  expect(yourAnswer).to.be.closeTo(23.63, 0.01);%0A%7D);%0A%0Atest('finding that perfect $15 item', function()%7B%0A  /**%0A   * @param %7BArray%7D items to search through%0A   * @return %7BArray%7D of %60items%60 with %60price%60 between %60min%60 and %60max%60 USD%0A   */%0A  function pricedBetween(items, min, max)%7B%0A    // Just a suggestion, really...%0A  %7D%0A%0A  expect( pricedBetween(items, 14, 18) ).to.deep.equal(%5B%0A    // Can you find their names _without_ code first?%0A  %5D);%0A%7D);%0A%0Atest('pond hopping', function()%7B%0A  expect( /* your answer */ ).to.deep.equal(%7B%0A    name: %221970s Schlitz Malt Liquor Glass Beer Pitcher%22,%0A    price: 18.00%0A  %7D);%0A%7D);%0A%0Atest('just wood or _reclaimed_ wood?', function()%7B%0A  var actual = wooden(items); // Who defined %60wooden%60...? Oh.%0A%0A  expect( actual ).to.deep.equal( /* an Array of String names... */ );%0A%7D);%0A%0Atest('this is just SEO bait, I know it...', function()%7B%0A  var actual = octomatter(items); // Just one way to do it... Plus, %22octomatter%22!%0A%0A  expect(actual).to.deep.equal(/* Look, I can't do _everything_ for you! */);%0A%7D);%0A%0Atest('true craftsmen... women... people. Birds?', function()%7B%0A  expect(makerSellers(items)).to.equal(18);%0A%7D);
 %0A

Update Etsy.js