codecombat/spec/server/functional/level_thang_component.spec.coffee

14 lines
336 B
CoffeeScript
Raw Normal View History

require '../common'
request = require '../request'
describe 'Level Thang Component', ->
url = getURL('/db/thang.component')
it 'get schema', (done) ->
2014-06-30 22:16:26 -04:00
request.get {uri: url+'/schema'}, (err, res, body) ->
expect(res.statusCode).toBe(200)
body = JSON.parse(body)
expect(body.type).toBeDefined()
done()