Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Mar 9, 2024
1 parent 5763215 commit 1616114
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/datetime/proto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
4 changes: 3 additions & 1 deletion test/duration/proto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
4 changes: 3 additions & 1 deletion test/interval/proto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 1616114

Please sign in to comment.