Skip to content

Commit

Permalink
chore: remove mis-added comments in expect-utils (jestjs#14673)
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed Nov 2, 2023
1 parent 49af781 commit 544a4b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/expect-utils/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ const hasPropertyInObject = (object: object, key: string | symbol): boolean => {
// the prototype chain for string keys but not for non-enumerable symbols.
// (Otherwise, it could find values such as a Set or Map's Symbol.toStringTag,
// with unexpected results.)
// export const getObjectKeys = (object: object): Array<string | symbol> => [
// ...Object.keys(object),
// ...Object.getOwnPropertySymbols(object).filter(
// s => Object.getOwnPropertyDescriptor(object, s)?.enumerable,
// ),
// ];
export const getObjectKeys = (object: object): Array<string | symbol> => {
return [
...Object.keys(object),
Expand Down

0 comments on commit 544a4b8

Please sign in to comment.