src/model/transaction/__tests__/removeEntitiesAtEdges-test.js
// Creates an entity with the given key and mutability
Creates an entity with the given key and mutability
Creates an entity with the given key and mutability
function ensureEntityWithMutability(contentState, key, mutability) {
  return contentState.setEntityMap(
    contentState.getAllEntities().set(
      key,
      new DraftEntityInstance({
        mutability,
      }),
    ),
  );
}
function ensureEntityWithMutability ( contentState , key , mutability ) { return contentState . setEntityMap ( contentState . getAllEntities ( ) . set ( key , new DraftEntityInstance ( { mutability , } ) , ) , ) ; }
Creates an entity with the given key and mutability
Creates an entity with the given key and mutability