Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dobon authored Dec 5, 2024
1 parent 0bdd790 commit bc566c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/datetime/format.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ test("DateTime#toISOTime({precision}) truncates time to desired precision", () =
test("DateTime#toISOTime({precision}) throws when the precision is invalid", () => {
expect(() => dt.toISOTime({ precision: "ms" })).toThrow(InvalidUnitError);
expect(() => dt.toISOTime({ precision: "xxx" })).toThrow(InvalidUnitError);
expect(() => dt.toISOTime({ precision: null })).toThrow(InvalidUnitError);
expect(() => dt.toISOTime({ precision: null })).toThrow(TypeError);
expect(() => dt.toISOTime({ precision: "days" })).toThrow(InvalidUnitError);
expect(() => dt.toISOTime({ precision: "months" })).toThrow(InvalidUnitError);
expect(() => dt.toISOTime({ precision: "years" })).toThrow(InvalidUnitError);
Expand Down

0 comments on commit bc566c8

Please sign in to comment.