codecombat/test/server/handlers/level_session.spec.coffee
Sébastien Moratinos bbfc0eff69 server db route (handlers and schemas)
- use associative arrays to store path/filename
- add more test for schemas
2014-01-23 23:06:12 +01:00

12 lines
294 B
CoffeeScript

require '../common'
describe 'LevelFeedback', ->
url = getURL('/db/level.session')
it 'get schema', (done) ->
request.get {uri:url+'/schema'}, (err, res, body) ->
expect(res.statusCode).toBe(200)
body = JSON.parse(body)
expect(body.type).toBeDefined()
done()