Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Jul 17, 2024
1 parent 6a349c3 commit f294c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assembly/__tests__/sleep.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("Should sleep", () => {
test("1s", () => {
const start = Date.now();
sleep(1000);
expect(Date.now() - start).toBeGreaterOrEqualTo(12345);
expect(Date.now() - start).toBeGreaterOrEqualTo(1000);
});
test("5s", () => {
const start = Date.now();
Expand Down
5 changes: 2 additions & 3 deletions cli/run.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import chalk from "chalk";
import { exec, execSync } from "child_process";
import { exec } from "child_process";
import { glob } from "glob";

import { formatTime, getExec, loadConfig } from "./util.js";
import * as path from "path";
import { appendFileSync, existsSync, fstat, mkdirSync, writeFileSync } from "fs";
import { existsSync, mkdirSync, writeFileSync } from "fs";
import { diff } from "typer-diff";

const CONFIG_PATH = path.join(process.cwd(), "./as-test.config.json");

const ansi = new RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))", "g");
export async function run() {
const reports: any[] = [];
const config = loadConfig(CONFIG_PATH);
Expand Down

0 comments on commit f294c1f

Please sign in to comment.