/**
 * Created by dcorns on 5/17/14.
 */
'use strict';
var request = require('supertest');
var chai =  require('chai');
var expect = chai.expect;
var should = chai.should();

<<<<<<< HEAD
//uncomment this to start server before test
=======
//user to start server if not already started
>>>>>>> master
//var app = require('../../server.js').app;

it ('get /api/user should return json data array', function(done){
  request('http://127.0.0.1:8080')
    .get('/api/users')
    .set('Accept', 'application/json')
    .expect('Content Type','/json/')
    .expect(200)
    .end(function (err,res){
      if (err) return done(err);
      expect(err).to.eql(null);
      should.exist('res.body');
      expect(res.body).to.be.an('array');
      should.exist('res.body[0]');
      expect(res.body[0]).to.have.property('lastName');
      done();
    });

  });

@@ -172,20 +172,8 @@
 );%0A%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD
 %0A//u
@@ -218,77 +218,8 @@
 est%0A
-=======%0A//user to start server if not already started%0A%3E%3E%3E%3E%3E%3E%3E master%0A
 //va

Fix Merge conflict