diff options
Diffstat (limited to 'std/testing/format.ts')
-rw-r--r-- | std/testing/format.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/std/testing/format.ts b/std/testing/format.ts index 953347c27..28937d567 100644 --- a/std/testing/format.ts +++ b/std/testing/format.ts @@ -360,11 +360,13 @@ const getKeysOfEnumerableProperties = (object: {}): Array<string | symbol> => { const keys: Array<string | symbol> = Object.keys(object).sort(); if (Object.getOwnPropertySymbols) { - Object.getOwnPropertySymbols(object).forEach((symbol): void => { - if (Object.getOwnPropertyDescriptor(object, symbol)!.enumerable) { - keys.push(symbol); + Object.getOwnPropertySymbols(object).forEach( + (symbol): void => { + if (Object.getOwnPropertyDescriptor(object, symbol)!.enumerable) { + keys.push(symbol); + } } - }); + ); } return keys; |