test('replaces the old entry with the new one', () => {
    expect(utils.updateEntryWithId(
      [unrelatedEntry, oldEntry, unrelatedEntry],
      newEntry,
    )[1].id).toEqual(newEntry.id)