Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Apr 6, 2024
1 parent ecf3e34 commit 59e0fcd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
shell: lint
- run: pnpm run lint

fmt:
Expand All @@ -25,6 +27,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
shell: lint
- run: pnpm run fmt

test-nodejs:
Expand Down
2 changes: 1 addition & 1 deletion src/ReaderEither.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Either } from "fp-ts/Either"
/**
* Utility functions to accommodate `fp-ts/ReaderEither`.
*
* @since 0.15.0
*/
import type { Either } from "fp-ts/Either"
import type { ReaderEither } from "fp-ts/ReaderEither"
import { identity } from "fp-ts/function"
import { runReader } from "./Reader"
Expand Down
2 changes: 1 addition & 1 deletion src/ReaderIO.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { IO } from "fp-ts/IO"
/**
* Utility functions to accommodate `fp-ts/ReaderIO`.
*
* @since 0.16.0
*/
import type { IO } from "fp-ts/IO"
import type { ReaderIO } from "fp-ts/ReaderIO"
import { identity } from "fp-ts/function"
import { runReader } from "./Reader"
Expand Down
4 changes: 2 additions & 2 deletions src/ReaderTask.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ReaderTask } from "fp-ts/ReaderTask"
import type { Task } from "fp-ts/Task"
/**
* Utility functions to accommodate `fp-ts/ReaderTask`.
*
* @since 0.15.0
*/
import type { ReaderTask } from "fp-ts/ReaderTask"
import type { Task } from "fp-ts/Task"
import { identity } from "fp-ts/function"
import { runReader } from "./Reader"

Expand Down
10 changes: 5 additions & 5 deletions src/ReaderTaskEither.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { Either } from "fp-ts/Either"
import type * as RTE from "fp-ts/ReaderTaskEither"
import type { Task } from "fp-ts/Task"
import * as TE from "fp-ts/TaskEither"
import type { TaskEither } from "fp-ts/TaskEither"
/**
* Utility functions to accommodate `fp-ts/ReaderTaskEither`.
*
* @since 0.15.0
*/
import type { Either } from "fp-ts/Either"
import type * as RTE from "fp-ts/ReaderTaskEither"
import type { Task } from "fp-ts/Task"
import * as TE from "fp-ts/TaskEither"
import type { TaskEither } from "fp-ts/TaskEither"
import { flow, identity } from "fp-ts/function"
import { runReader } from "./Reader"
import {
Expand Down
10 changes: 4 additions & 6 deletions test/Monad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ describe("Monad", () => {

it("doesn't execute action if condition fails", () => {
let exe = false
const set: IO<boolean> = () => {
exe = true
}
// biome-ignore lint/suspicious/noAssignInExpressions: Intentional.
const set: IO<boolean> = () => (exe = true)

expect(exe).toBe(false)

Expand Down Expand Up @@ -262,9 +261,8 @@ describe("Monad", () => {

it("doesn't execute action if condition succeeds", () => {
let exe = false
const set: IO<boolean> = () => {
exe = true
}
// biome-ignore lint/suspicious/noAssignInExpressions: Intentional.
const set: IO<boolean> = () => (exe = true)

expect(exe).toBe(false)

Expand Down
2 changes: 1 addition & 1 deletion test/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const flushPromises = (): Promise<void> =>

describe("Task", () => {
// Bun doesn't support fake timers yet.
const desc = 'advanceTimersByTime' in jest ? describe : describe.skip;
const desc = "advanceTimersByTime" in jest ? describe : describe.skip
desc("sleep", () => {
it("waits the specified period of time", async () => {
jest.useFakeTimers()
Expand Down

0 comments on commit 59e0fcd

Please sign in to comment.