mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
test syncType in RequestParser
This commit is contained in:
parent
b901884248
commit
c7a9487216
1 changed files with 10 additions and 0 deletions
|
@ -242,3 +242,13 @@ describe "RequestParser", ->
|
||||||
it "should return an error", ->
|
it "should return an error", ->
|
||||||
@callback.calledWith("relative path in root resource")
|
@callback.calledWith("relative path in root resource")
|
||||||
.should.equal true
|
.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
|
||||||
|
|
Loading…
Reference in a new issue