test syncType in RequestParser

This commit is contained in:
Brian Gough
2017-08-17 15:57:05 +01:00
parent 5b5f7b0690
commit a8aaf58e64

View File

@@ -242,3 +242,13 @@ describe "RequestParser", ->
it "should return an error", ->
@callback.calledWith("relative path in root resource")
.should.equal true
describe "with an unknown syncType", ->
beforeEach ->
@validRequest.compile.options.syncType = "unexpected"
@RequestParser.parse @validRequest, @callback
@data = @callback.args[0][1]
it "should return an error", ->
@callback.calledWith("syncType attribute should be one of: full, incremental")
.should.equal true