class SaveHandlerStub {

  /*
    Saving a document involves two steps.

    - syncing files (e.g. images) with a backend
    - storing a snapshot of the document's content (e.g. a XML serialization)
  */
  saveDocument(params) {
    console.info('Simulating save ...', params)

    return params.fileManager.sync()
    .then(() => {
      // Here you would run a converter (HTML/XML) usually
      // and send the result to a REST endpoint.
      console.info('Creating document snapshot...')
    })

  }
}

export default SaveHandlerStub

@@ -213,22 +213,29 @@
 ocument(
-params
+%7BfileManager%7D
 ) %7B%0A    
@@ -272,16 +272,8 @@
 ...'
-, params
 )%0A%0A 
@@ -286,15 +286,8 @@
 urn 
-params.
 file

Use explicit params for SaveHandlerStub.