Skip to content

Commit

Permalink
Update test/built-ins/Temporal/ZonedDateTime/from/argument-propertyba…
Browse files Browse the repository at this point in the history
…g-invalid-offset-string.js

Co-authored-by: Philip Chimento <[email protected]>
  • Loading branch information
catamorphism and ptomato authored Oct 31, 2024
1 parent 7e06789 commit 4419fc2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ offsetOptions.forEach((offsetOption) => {
assert.throws(
typeof(offset) === 'string' || (typeof offset === "object" && offset !== null) ? RangeError : TypeError,
() => Temporal.ZonedDateTime.from(arg, { offset: offsetOption }),
typeof(offset) === 'symbol' ? "symbol is not a valid offset string"
: `"${offset} is not a valid offset string (with offset option ${offsetOption})`
`"${String(offset)} is not a valid offset string (with offset option ${offsetOption})`
);
});
});

0 comments on commit 4419fc2

Please sign in to comment.