Skip to content

Commit 775e37e

Browse files
Remove some leftover gen adapters (#5653)
1 parent 52d5963 commit 775e37e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

packages/cli/test/Options.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,18 @@ describe("Options", () => {
151151
}).pipe(runEffect))
152152

153153
it("validates a option with choices", () =>
154-
Effect.gen(function*($) {
154+
Effect.gen(function*() {
155155
const option = Options.choice("animal", ["cat", "dog"])
156156
const args1 = Array.make("--animal", "cat")
157157
const args2 = Array.make("--animal", "dog")
158-
const result1 = yield* $(process(option, args1, CliConfig.defaultConfig))
159-
const result2 = yield* $(process(option, args2, CliConfig.defaultConfig))
158+
const result1 = yield* process(option, args1, CliConfig.defaultConfig)
159+
const result2 = yield* process(option, args2, CliConfig.defaultConfig)
160160
expect(result1).toEqual([[], "cat"])
161161
expect(result2).toEqual([[], "dog"])
162162
}).pipe(runEffect))
163163

164164
it("validates an option with choices that map to values", () =>
165-
Effect.gen(function*($) {
165+
Effect.gen(function*() {
166166
type Animal = Dog | Cat
167167
class Dog extends Data.TaggedClass("Dog")<{}> {}
168168
class Cat extends Data.TaggedClass("Dog")<{}> {}
@@ -174,8 +174,8 @@ describe("Options", () => {
174174
])
175175
const args1 = Array.make("--animal", "cat")
176176
const args2 = Array.make("--animal", "dog")
177-
const result1 = yield* $(process(option, args1, CliConfig.defaultConfig))
178-
const result2 = yield* $(process(option, args2, CliConfig.defaultConfig))
177+
const result1 = yield* process(option, args1, CliConfig.defaultConfig)
178+
const result2 = yield* process(option, args2, CliConfig.defaultConfig)
179179
expect(result1).toEqual([[], cat])
180180
expect(result2).toEqual([[], dog])
181181
}).pipe(runEffect))

packages/effect/src/TestClock.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -438,17 +438,17 @@ export class TestClockImpl implements TestClock {
438438
export const live = (data: Data): Layer.Layer<TestClock, never, Annotations.TestAnnotations | Live.TestLive> =>
439439
layer.scoped(
440440
TestClock,
441-
core.gen(function*($) {
442-
const live = yield* $(Live.TestLive)
443-
const annotations = yield* $(Annotations.TestAnnotations)
444-
const clockState = yield* $(core.sync(() => ref.unsafeMake(data)))
445-
const warningState = yield* $(circular.makeSynchronized(WarningData.start))
446-
const suspendedWarningState = yield* $(circular.makeSynchronized(SuspendedWarningData.start))
441+
core.gen(function*() {
442+
const live = yield* Live.TestLive
443+
const annotations = yield* Annotations.TestAnnotations
444+
const clockState = yield* core.sync(() => ref.unsafeMake(data))
445+
const warningState = yield* circular.makeSynchronized(WarningData.start)
446+
const suspendedWarningState = yield* circular.makeSynchronized(SuspendedWarningData.start)
447447
const testClock = new TestClockImpl(clockState, live, annotations, warningState, suspendedWarningState)
448-
yield* $(fiberRuntime.withClockScoped(testClock))
449-
yield* $(fiberRuntime.addFinalizer(
448+
yield* fiberRuntime.withClockScoped(testClock)
449+
yield* fiberRuntime.addFinalizer(
450450
() => core.zipRight(testClock.warningDone(), testClock.suspendedWarningDone())
451-
))
451+
)
452452
return testClock
453453
})
454454
)

0 commit comments

Comments
 (0)