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 = '/venues';
  
  
  var response;
  var responseBody;
  
  
  const post = async function (request_body) {
      return baseUrl
          .post(pm.substitute(apiEndPoint))
          .set('Accept', 'application/json')
          .set('Content-Type', 'application/json')
  
          .send(pm.substitute(request_body));
  };
  
  const get = async function (request_body) {
      return baseUrl
          .get(pm.substitute(apiEndPoint))
  
  
          .set('Accept', 'application/json')
          .send();
  };
  
  let requestBody = ``;
  
  let r = {};
  
  describe('Guest - List Venues', function () {
      before(async function () {
          response = await get(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 200", function () {
          expect(response.status).to.equal(200);
      })
  
  
      it("created venue should be present", function () {
          let found = false;
          let last_venue_id = pm.environment.get("last_venue_id");
          for (var i = 0; i < r.data.length; i++) {
              if (r.data[i].id === last_venue_id) {
                  found = true;
                  break;
              }
  
          }
          expect(found).to.be.true;
  
      })
  
  
  });
  
              
  