Fix tests
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2026-03-22 01:46:30 +01:00
parent bba8d838b7
commit 39125943ec
2 changed files with 2 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test" import { describe, expect, test } from "bun:test"
import { Option } from "effect" import { Option } from "effect"
import * as PropertyPath from "./PropertyPath.ts" import * as PropertyPath from "./PropertyPath.js"
describe("immutableSet with arrays", () => { describe("immutableSet with arrays", () => {
@@ -59,12 +59,6 @@ describe("immutableSet with arrays", () => {
expect(result).toEqual(Option.none()) expect(result).toEqual(Option.none())
}) })
test("curried form works with arrays", () => {
const setSecond = PropertyPath.immutableSet([1], 42)
const result = setSecond([10, 20, 30])
expect(result).toEqual(Option.some([10, 42, 30]))
})
test("empty path returns Option.some of the value itself", () => { test("empty path returns Option.some of the value itself", () => {
const arr = [1, 2, 3] const arr = [1, 2, 3]
const result = PropertyPath.immutableSet(arr, [], [9, 9, 9] as any) const result = PropertyPath.immutableSet(arr, [], [9, 9, 9] as any)

View File

@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test" import { describe, expect, test } from "bun:test"
import { Chunk, Effect, Ref, SubscriptionRef } from "effect" import { Chunk, Effect, Ref, SubscriptionRef } from "effect"
import * as SubscriptionSubRef from "./SubscriptionSubRef.ts" import * as SubscriptionSubRef from "./SubscriptionSubRef.js"
describe("SubscriptionSubRef with array refs", () => { describe("SubscriptionSubRef with array refs", () => {