 User = require "./helpers/User"
 request = require "./helpers/request"
 settings = require "settings-sharelatex"
+{db, ObjectId} = require("../../../app/js/infrastructure/mongojs")
 
 try_read_access = (user, project_id, test, callback) ->
 	async.series [

		it 'should deny access before the token is used', (done) ->
			try_read_access(@other1, @project_id, (response, body) =>
				expect(response.statusCode).to.equal 302
				expect(body).to.match /.*\/restricted.*/
			, done)


		test(response, body)
		callback()


describe 'TokenAccess', ->
	before (done) ->
