hunk.code_window:   }]
     // Define the operation.
     const operation = {
       type: 'set_selection',
       properties,
       inverse,
     }
     // Apply the operation.
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     properties: props,
  
hunk.file_path: src/transforms/operations.js
hunk.type: replace
file: 
  import assert from 'assert'
  
  export default function (state) {
    const { document, selection } = state
    const texts = document.getTexts()
    const first = texts.first()
    const range = selection.merge({
      anchorKey: first.key,
      anchorOffset: 0,
      focusKey: first.key,
      focusOffset: 2
    })
  
    const next = state
      .transform()
      .moveTo(range)
      .addMark('bold')
      .apply()
  
    assert.deepEqual(next.selection.toJS(), range.toJS())
  
    return next
  }
  