text: const supertest = require('supertest');
  const expect = require('chai').expect;
  const mocha = require('mocha');
  const tv4 = require('tv4');
  const fs = require('fs');
  const pm = require('../../pm');const debug=require('debug');var log = debug('bn-api');
  
  const baseUrl = supertest(pm.environment.get('server'));
  
  const apiEndPoint = '/events/{{external_event_id}}';
  
  
  var response;
  var responseBody;
  
  
  const put = async function (request_body) {
      return baseUrl
          .put(pm.substitute(apiEndPoint))
          .set('Accept', 'application/json')
          .set('Content-Type', 'application/json')
          .set('Authorization', pm.substitute('Bearer {{org_member_token}}'))
  
          .send(pm.substitute(request_body));
  };
  
  const get = async function (request_body) {
      return baseUrl
          .get(pm.substitute(apiEndPoint))
  
          .set('Authorization', pm.substitute('Bearer {{org_member_token}}'))
  
          .set('Accept', 'application/json')
          .send();
  };
  
  let requestBody = `{
      "name": "It's my party",
      "event_start": "2059-11-13T12:00:00",
      "override_status": "SoldOut",
      "age_limit": 18
  }`;
  
  let r = {};
  describe('OrgMember  - Update External Event To Be Sold Out', function () {
      before(async function () {
          response = await put(requestBody);
          log(response.request.header);
          log(response.request.url);
          log(response.request._data);
          log(response.request.method);
          responseBody = JSON.stringify(response.body);
          //log(pm);
          log(response.status);
          log(responseBody);
  
          r = JSON.parse(responseBody);
      });
  
      after(async function () {
          // add after methods
  
  
      });
  
      it("should be 201", function () {
          expect(response.status).to.equal(200);
      })
  
  
      it("should have correct fee_in_cents", function () {
          expect(r.override_status).to.equal("SoldOut");
      });
  
  
  });
  
              
  