From 161611449c3db3e6c36638a3eeccdff65fdfb452 Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Sat, 9 Mar 2024 14:17:07 -0500 Subject: [PATCH] format --- test/datetime/proto.test.js | 4 +++- test/duration/proto.test.js | 4 +++- test/interval/proto.test.js | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/datetime/proto.test.js b/test/datetime/proto.test.js index 71fba90f..e3c7bd03 100644 --- a/test/datetime/proto.test.js +++ b/test/datetime/proto.test.js @@ -4,6 +4,8 @@ import { DateTime } from "../../src/luxon"; test("DateTime prototype properties should not throw when accessed", () => { const d = DateTime.now(); expect(() => - Object.getOwnPropertyNames(Object.getPrototypeOf(d)).forEach((name) => Object.getPrototypeOf(d)[name]) + Object.getOwnPropertyNames(Object.getPrototypeOf(d)).forEach( + (name) => Object.getPrototypeOf(d)[name] + ) ).not.toThrow(); }); diff --git a/test/duration/proto.test.js b/test/duration/proto.test.js index 40132ac9..2b424db0 100644 --- a/test/duration/proto.test.js +++ b/test/duration/proto.test.js @@ -3,6 +3,8 @@ import { Duration } from "../../src/luxon"; test("Duration prototype properties should not throw when addressed", () => { const d = Duration.fromObject({ hours: 1 }); expect(() => - Object.getOwnPropertyNames(Object.getPrototypeOf(d)).forEach((name) => Object.getPrototypeOf(d)[name]) + Object.getOwnPropertyNames(Object.getPrototypeOf(d)).forEach( + (name) => Object.getPrototypeOf(d)[name] + ) ).not.toThrow(); }); diff --git a/test/interval/proto.test.js b/test/interval/proto.test.js index ddf873ac..831d86ef 100644 --- a/test/interval/proto.test.js +++ b/test/interval/proto.test.js @@ -4,6 +4,8 @@ import { DateTime } from "../../src/luxon"; test("Interval prototype properties should not throw when addressed", () => { const i = DateTime.fromISO("2018-01-01").until(DateTime.fromISO("2018-01-02")); expect(() => - Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((name) => Object.getPrototypeOf(i)[name]) + Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach( + (name) => Object.getPrototypeOf(i)[name] + ) ).not.toThrow(); });