var request = require('request');
var assert = require('assert');
var helpers = require('../../../lib/test_helpers.js');

describe('hljomaholl', function() {
  // The only thing that changes is the form attribute, so why not just re-use the object
  var fieldsToCheckFor = [
    'date', 'time', 'image', 'title', 'description', 'location', 'buyTicketURL',
    'moreInfoURL'
  ];

  it ('should return an array of items with correct fields', function(done) {
    var params = helpers.testRequestParams('/hljomaholl');
    var resultHandler = helpers.testRequestHandlerForFields(
      done, fieldsToCheckFor, null
    );
    request(params, resultHandler);
  });
});

var request = require('request');
var assert = require('assert');
var helpers = require('../../../lib/test_helpers.js');

describe('hljomaholl', function() {
  // The only thing that changes is the form attribute, so why not just re-use the object
  var fieldsToCheckFor = [
    'date', 'time', 'image', 'title', 'description', 'location', 'buyTicketURL',
    'moreInfoURL'
  ];

  it ('should return an array of items with correct fields', function(done) {
    var params = helpers.testRequestParams('/hljomaholl');
    var resultHandler = helpers.testRequestHandlerForFields(
      done, fieldsToCheckFor, null, true
    );
    request(params, resultHandler);
  });
});

Allow hljomaholl results to be empty