hunk.code_window: import Transforms from '../transforms'
   /**
    * Transform.
    *
    * @type {Transform}
  
hunk.labels: keep add keep keep keep keep
hunk.after_edit: /**
    * Debug.
    *
    * @type {Function}
    */
   const debug = Debug('slate:transform')
  
hunk.file_path: src/models/transform.js
hunk.type: add
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)
      .toggleMark('bold')
      .apply()
  
    assert.deepEqual(next.selection.toJS(), range.toJS())
  
    return next
  }
  