以下coffeescript代码有什么问题

时间:2014-05-14 04:05:23

标签: javascript syntax coffeescript

我对咖啡脚本很新。我一直收到错误:

error: unmatched OUTDENT
        product = new Model2({

以下是代码:

describe 'Test case 1', ->
    describe 'Method 1', ->
        it 'should compile this code into javascript', (done) ->
            Model1 = mongoose.model 'Model1', schema.Model1
            Model2 = mongoose.model 'Model2', schema.Model2
            product = new Model2({
                test: 'This is a test'
            })

您能否帮我确定该代码中的错误位置?

提前致谢

0 个答案:

没有答案