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(); });