summaryrefslogtreecommitdiff
path: root/testing/format.ts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/format.ts')
-rw-r--r--testing/format.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/testing/format.ts b/testing/format.ts
index 7a0d8c173..06c1b6818 100644
--- a/testing/format.ts
+++ b/testing/format.ts
@@ -360,13 +360,11 @@ 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;