ata.items = () =>
        Object.keys(data.qtys).map((name) => ({
          name,
          quantity: data.qtys[name],
        }));

      test(items.children.length === 1, 'el#inv-items has one child');
      data.qtys['item'] = 0;

      test(items.children.length === 2, 'el#inv-items has 1 child');
      test(
        items.children[0].innerText === 'item',
        'el#inv-items has correct innerText'
      );
    </script>
  </body>
</html>
