mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Fixed server tests.
This commit is contained in:
parent
239b130d9c
commit
06a61d214e
2 changed files with 1 additions and 10 deletions
|
@ -62,7 +62,7 @@ UserSchema.statics.updateMailChimp = (doc, callback) ->
|
|||
doc.updatedMailChimp = true
|
||||
callback?()
|
||||
|
||||
mc.lists.subscribe params, onSuccess, onFailure
|
||||
mc?.lists.subscribe params, onSuccess, onFailure
|
||||
|
||||
|
||||
UserSchema.pre('save', (next) ->
|
||||
|
|
|
@ -27,15 +27,6 @@ describe '/file', ->
|
|||
dropGridFS ->
|
||||
done()
|
||||
|
||||
it 'can\'t be created by ordinary users.', (done) ->
|
||||
func = (err, res, body) ->
|
||||
expect(res.statusCode).toBe(403)
|
||||
expect(body.metadata).toBeUndefined()
|
||||
done()
|
||||
|
||||
loginJoe ->
|
||||
request.post(options, func)
|
||||
|
||||
it 'can\'t be created if invalid (property path is required)', (done) ->
|
||||
func = (err, res, body) ->
|
||||
expect(res.statusCode).toBe(422)
|
||||
|
|
Loading…
Reference in a new issue