Skip to content

Commit

Permalink
fix indentation in workflow (hackclub#2745)
Browse files Browse the repository at this point in the history
* fix indentation in workflow

* make test use workdir on machine
  • Loading branch information
JosiasAurel authored Dec 21, 2024
1 parent 3014a78 commit 553c8db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [opened, reopened, edited, synchronize]

env:
PUBLIC_MAX_LOOP_TIME_MS: 1500
PUBLIC_MAX_ITERATIONS: 2000
PUBLIC_MAX_LOOP_TIME_MS: 1500
PUBLIC_MAX_ITERATIONS: 2000

jobs:
build:
Expand Down
8 changes: 4 additions & 4 deletions src/lib/engine/error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ test('detect infinite while loops', () => {
fn();
});

console.log(res?.description);
const workDir = process.cwd();
const expectedError = `RangeError: Potential infinite loop
at eval (/Volumes/Code/code/hackclub/sprig/src/lib/engine/error.test.ts:1:152)`;
at eval (${workDir}/src/lib/engine/error.test.ts:1:152)`;
expect(res?.description).toBe(expectedError);
});

Expand All @@ -41,9 +41,9 @@ test('detect infinite for loop', () => {
fn();
});

console.log(res?.description);
const workDir = process.cwd();
const expectedError = `RangeError: Potential infinite loop
at eval (/Volumes/Code/code/hackclub/sprig/src/lib/engine/error.test.ts:1:148)`;
at eval (${workDir}/src/lib/engine/error.test.ts:1:148)`;
expect(res?.description).toBe(expectedError);
});

Expand Down

0 comments on commit 553c8db

Please sign in to comment.