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 847faa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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
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

0 comments on commit 847faa6

Please sign in to comment.