private static getKeyForExpectation()

in src/assertion.ts [102:113]


  private static getKeyForExpectation<T>(
    map: IEpicExpectationMap<T>,
    expectation: EpicExpectation<T>,
  ) {
    for (const key of Object.keys(map)) {
      if (map[key] === expectation) {
        return key;
      }
    }

    return '?';
  }