let mongoose = require('mongoose')
let House = require('../api/models/houseModel')

let chai = require('chai')
let chaiHttp = require('chai-http')
let server = require('../server')
let should = chai.should()

chai.use(chaiHttp)

// Parent block
describe('Houses', () => {
  /*
   * Test the /GET route
   */
  describe('/GET api/v1/houses', () => {
    it('should GET all houses', (done) => {
      chai.request(server)
        .get('/api/v1/houses')
        .end((err, res) => {
          res.should.have.status(200)
          res.body.should.be.a('array')
          done()
        })
    })
  })

  describe('/POST api/v1/houses', () => {
    it('should not POST a house without Authorization', (done) => {
      let house = {
        short_description: "Up on the mountain",
        long_description: "Nothing like a house not by the sea, but up high on mountain Kerkis.",
        price: 200
      }
      chai.request(server)
        .post('/api/v1/houses')
        .send(house)
        .end((err, res) => {
          res.should.have.status(401)
          done()
        })
    })
    // it('it should POST a house', (done) => {
    //   let house = {
    //     short_description: "Up on the mountain",
    //     long_description: "Nothing like a house not by the sea, but up high on mountain Kerkis.",
    //     price: 200
    //   }
    //   chai.request(server)
    //     .post('/api/v1/houses')
    //     .send(house)
    //     .end((err, res) => {
    //       res.should.have.status(200)
    //       res.body.should.be.a('object')
    //       res.body.house.should.have.property('short_description')
    //       res.body.house.should.have.property('long_description')
    //       res.body.house.should.have.property('price')
    //       res.body.house.should.have.property('created_at')
    //       done()
    //     })
    // })
  })

})

@@ -269,44 +269,9 @@
 %3E %7B%0A
-  /*%0A   * Test the /GET route%0A   */
 %0A
+
   de
@@ -472,24 +472,24 @@
 status(200)%0A
-
           re
@@ -557,16 +557,558 @@
 )%0A  %7D)%0A%0A
+  describe('/GET api/v1/houses/:houseId', () =%3E %7B%0A    it('should GET a house', (done) =%3E %7B%0A      chai.request(server)%0A        .get('/api/v1/houses/594fdbf2579f162b199576eb')%0A        .end((err, res) =%3E %7B%0A          res.should.have.status(200)%0A          res.body.should.be.a('object')%0A          res.body.should.have.property('short_description')%0A          res.body.should.have.property('long_description')%0A          res.body.should.have.property('price')%0A          res.body.should.have.property('owner')%0A          done()%0A        %7D)%0A    %7D)%0A  %7D)%0A%0A
   descri

Add test for showing a single House by houseId.