const chai = require('chai');
const chaiHttp = require('chai-http');
const { v4: uuidv4 } = require('uuid');

const TestHelper = require('../../../test-helper');

const assert = chai.assert;
const expect = chai.expect;

chai.use(chaiHttp);

describe('Integration - OPTIONS /household-members/:uuid', function() {
  let server;
  const testHelper = new TestHelper();

  before('get server', async function() {
    this.timeout(30000);
    server = await testHelper.getServer();
  });

  after('cleanup', async function() {
    await testHelper.cleanup();
  });

  it('should return 200', async function() {
    const res = await chai.request(server)
      .options(`/household-members/${uuidv4()}`)
      .set('Content-Type', 'application/vnd.api+json');
    expect(res).to.have.status(200);
    assert.deepEqual(res.body, {});
  });
});
