text: const {expect} = require('chai')
  const request = require('supertest')
  const db = require('../db')
  const app = require('../index')
  const User = db.model('user')
  
  describe('Cart routes', () => {
    beforeEach(() => {
      return db.sync({force: true})
    })
  
    describe('/api/cart/', () => {
      const codysEmail = 'cody@email.com'
      const ourCart = [1, 2, 3]
  
      beforeEach(async () => {
        return await User.create({
          email: codysEmail,
          cart: ourCart
        })
      })
  
      it('GET /api/cart', async () => {
        const res = await request(app)
          .get('/api/cart')
          .expect(200)
  
        expect(res.body).to.be.an('array')
        expect(res.body).to.be.deep.equal([])
      })
  
      // it('PUT /api/cart/add', async () => {
      //   const res = await request(app)
      //     .put('/api/cart/add')
      //     .send({
      //       cart: ourCart
      //     })
      //     .expect(200)
      //   expect(res.body).to.be.an('array')
      //   expect(res.body.cart).to.be.deep.equal([1, 2, 3])
      // })
    })
  })
  