Skip to content

Commit 9d73083

Browse files
tim-smarteffect-bot
authored andcommitted
fix some tests using old assert
1 parent 3362b25 commit 9d73083

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/effect/test/Effect/filtering.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as Either from "effect/Either"
55
import { pipe } from "effect/Function"
66
import * as Ref from "effect/Ref"
77
import { assertLeft, assertRight, deepStrictEqual } from "effect/test/util"
8+
import { strictEqual } from "node:assert"
89

910
const exactlyOnce = <R, A, A1>(
1011
value: A,
@@ -218,7 +219,7 @@ describe("Effect", () => {
218219
orElse: () => Effect.succeed(0)
219220
})
220221
)
221-
assert.strictEqual(result, 0)
222+
strictEqual(result, 0)
222223
}))
223224
})
224225

@@ -232,7 +233,7 @@ describe("Effect", () => {
232233
}),
233234
Effect.flip
234235
)
235-
assert.strictEqual(result, "boom")
236+
strictEqual(result, "boom")
236237
}))
237238
})
238239
})

packages/effect/test/Effect/optional-wrapping-unwrapping.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { assert, describe, it } from "@effect/vitest"
12
import * as Effect from "effect/Effect"
23
import * as Option from "effect/Option"
3-
import * as it from "effect/test/utils/extend"
4-
import { assert, describe } from "vitest"
54

65
describe("Effect", () => {
76
describe("transposeOption", () => {

packages/effect/test/RcMap.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@ describe("RcMap", () => {
113113
idleTimeToLive: 1000
114114
})
115115

116-
assert.deepStrictEqual(acquired, [])
117-
assert.strictEqual(yield* Effect.scoped(RcMap.get(map, "foo")), "foo")
118-
assert.deepStrictEqual(acquired, ["foo"])
119-
assert.deepStrictEqual(released, [])
116+
deepStrictEqual(acquired, [])
117+
strictEqual(yield* Effect.scoped(RcMap.get(map, "foo")), "foo")
118+
deepStrictEqual(acquired, ["foo"])
119+
deepStrictEqual(released, [])
120120

121121
yield* TestClock.adjust(500)
122-
assert.deepStrictEqual(released, [])
122+
deepStrictEqual(released, [])
123123

124124
yield* RcMap.touch(map, "foo")
125125
yield* TestClock.adjust(500)
126-
assert.deepStrictEqual(released, [])
126+
deepStrictEqual(released, [])
127127
yield* TestClock.adjust(500)
128-
assert.deepStrictEqual(released, ["foo"])
128+
deepStrictEqual(released, ["foo"])
129129
}))
130130

131131
it.scoped("capacity", () =>

0 commit comments

Comments
 (0)