Skip to content

Commit 1dbd977

Browse files
committed
Refresh Option inlining snapshots after rebasing onto master
The Temporal tests that master added call Option.isNone and Option.map, which are now inlined. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLpf7RN1MiRcubPgRn Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent 01e3b54 commit 1dbd977

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎tests/tests/src/stdlib/Stdlib_TemporalTests.mjs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import * as Test from "./Test.mjs";
44
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.mjs";
5-
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.mjs";
65
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.mjs";
76
import * as Primitive_object from "@rescript/runtime/lib/es6/Primitive_object.mjs";
87
import * as Primitive_option from "@rescript/runtime/lib/es6/Primitive_option.mjs";
@@ -328,7 +327,9 @@ Test.run([
328327
57
329328
],
330329
"getTimeZoneTransition without a transition"
331-
], Stdlib_Option.isNone(Primitive_option.fromNullable(utc.getTimeZoneTransition("previous"))), eq, true);
330+
], Primitive_option.fromNullable(utc.getTimeZoneTransition("previous")) === undefined, eq, true);
331+
332+
let opt = utc.withTimeZone("America/New_York").getTimeZoneTransition("next");
332333

333334
Test.run([
334335
[
@@ -338,7 +339,7 @@ Test.run([
338339
54
339340
],
340341
"getTimeZoneTransition with a transition"
341-
], Stdlib_Option.map(Primitive_option.fromNullable(utc.withTimeZone("America/New_York").getTimeZoneTransition("next")), transition => transition.toString()), eq, "2024-03-10T03:00:00-04:00[America/New_York]");
342+
], !(opt == null) ? Primitive_option.some(opt.toString()) : undefined, eq, "2024-03-10T03:00:00-04:00[America/New_York]");
342343

343344
Test.run([
344345
[

0 commit comments

Comments
 (0)