Skip to content

Commit e8d67d7

Browse files
modified assertion directoryExist
1 parent 6ccc19a commit e8d67d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assertions/directoryExist.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { RunResult } from "../engine/run_result";
22
import * as fs from "fs";
33

44
export class DirectoryExist {
5-
public static run(result: RunResult, directory: string): void {
5+
public static run(directory: string): void {
66
if(!fs.existsSync(directory)) {
77
throw new Error("directory " + directory + " does not exist");
88
}

assertions/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export class Assertions {
1818
return this;
1919
}
2020

21-
public directoryExits(result: RunResult, directory: string): Assertions {
22-
DirectoryExist.run(result, directory);
21+
public directoryExits(directory: string): Assertions {
22+
DirectoryExist.run(directory);
2323
return this;
2424
}
2525
}

0 commit comments

Comments
 (0)