We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ccc19a commit e8d67d7Copy full SHA for e8d67d7
assertions/directoryExist.ts
@@ -2,7 +2,7 @@ import { RunResult } from "../engine/run_result";
2
import * as fs from "fs";
3
4
export class DirectoryExist {
5
- public static run(result: RunResult, directory: string): void {
+ public static run(directory: string): void {
6
if(!fs.existsSync(directory)) {
7
throw new Error("directory " + directory + " does not exist");
8
}
assertions/index.ts
@@ -18,8 +18,8 @@ export class Assertions {
18
return this;
19
20
21
- public directoryExits(result: RunResult, directory: string): Assertions {
22
- DirectoryExist.run(result, directory);
+ public directoryExits(directory: string): Assertions {
+ DirectoryExist.run(directory);
23
24
25
0 commit comments