mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 00:58:00 -05:00
26 lines
474 B
CoffeeScript
26 lines
474 B
CoffeeScript
require '../common'
|
|
|
|
describe 'Campaign', ->
|
|
|
|
raw =
|
|
name:'Battlefield 1942'
|
|
description:'Vacation all over the world!'
|
|
levels: []
|
|
permissions:[
|
|
target:'not_the_public'
|
|
access:'owner'
|
|
]
|
|
|
|
campaign = new Campaign(raw)
|
|
|
|
it 'clears things first', (done) ->
|
|
Campaign.remove {}, (err) ->
|
|
expect(err).toBeNull()
|
|
done()
|
|
|
|
it 'can be saved', (done) ->
|
|
campaign.save (err) ->
|
|
expect(err).toBeNull()
|
|
done()
|
|
|
|
|