mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-20 20:42:44 -05:00
21 lines
471 B
CoffeeScript
21 lines
471 B
CoffeeScript
|
require '../common'
|
||
|
|
||
|
describe 'Level', ->
|
||
|
|
||
|
level =
|
||
|
name: "King's Peak 3"
|
||
|
description: 'Climb a mountain.'
|
||
|
permissions: simplePermissions
|
||
|
|
||
|
url = getURL('/db/level')
|
||
|
|
||
|
it 'clears things first', (done) ->
|
||
|
clearModels [Level], (err) ->
|
||
|
expect(err).toBeNull()
|
||
|
done()
|
||
|
|
||
|
it 'can make a Level.', (done) ->
|
||
|
loginJoe (joe) ->
|
||
|
request.post {uri:url, json:level}, (err, res, body) ->
|
||
|
expect(res.statusCode).toBe(200)
|
||
|
done()
|