 Campaign = require '../../../server/models/Campaign'
 LevelSession = require '../../../server/models/LevelSession'
 Level = require '../../../server/models/Level'
+mongoose = require 'mongoose'
 
 classroomsURL = getURL('/db/classroom')
 

    expect(body).toEqual([])
    done()

  it 'returns all members with name, email, firstName and lastName', utils.wrap (done) ->
    yield utils.loginUser(@teacher)
    [res, body] = yield request.getAsync getURL("/db/classroom/#{@classroom.id}/members?name=true&email=true"), { json: true }
    expect(res.statusCode).toBe(200)

      expect(user.firstName).toBeDefined()
      expect(user.lastName).toBeDefined()
      expect(user.passwordHash).toBeUndefined()
    student1 = _.find(body, {_id: @student1.id})
    expect(student1.coursePrepaid).toBeDefined()
    done()

describe 'POST /db/classroom/:classroomID/members/:memberID/reset-password', ->
