text: const { expect } = require('chai')
  const Hubspot = require('..')
  const fakeHubspotApi = require('./helpers/fake_hubspot_api')
  
  describe('broadcasts', () => {
    const broadcastsGetEndpoint = {
      path: '/broadcast/v1/broadcasts',
      response: [],
    }
    fakeHubspotApi.setupServer({ getEndpoints: [broadcastsGetEndpoint] })
  
    describe('get', () => {
      it('Should return details on a set of broadcast messages', () => {
        const hubspot = new Hubspot({
          accessToken: process.env.ACCESS_TOKEN || 'fake-token',
        })
  
        return hubspot.broadcasts.get().then((data) => expect(data).to.be.a('array'))
      })
    })
  })
  