import { add, total } from '../src/cart';

describe('cart', () => {
  it('adds items', () => {
    expect(add([], 2)).toEqual([2]);
  });

  it('totals items', () => {
    expect(total([1, 2])).toBe(3);
  });
});
