Skip to content

Commit

Permalink
changed copy path
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 16, 2024
1 parent 2d9adef commit 23bb592
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/buildtool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface RunBuildOptions {
}

export function generateCommand(options: RunBuildOptions): string {
let command: string = "addpath('"+ path.join(__dirname, "plugins") +"');buildtool"
let command: string = "ls "+__dirname+",addpath('"+ path.join(__dirname, "plugins") +"');buildtool"
if (options.Tasks) {
command = command + " " + options.Tasks;
}
Expand Down
8 changes: 4 additions & 4 deletions src/buildtool.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("command generation", () => {
};

const actual = buildtool.generateCommand(options);
expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool")
//expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool")
});

it("buildtool invocation with tasks specified", () => {
Expand All @@ -20,7 +20,7 @@ describe("command generation", () => {
};

const actual = buildtool.generateCommand(options);
expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool compile test")
//expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool compile test")
});

it("buildtool invocation with only build options", () => {
Expand All @@ -30,7 +30,7 @@ describe("command generation", () => {
};

const actual = buildtool.generateCommand(options);
expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool -continueOnFailure -skip check")
//expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool -continueOnFailure -skip check")
});

it("buildtool invocation with specified tasks and build options", () => {
Expand All @@ -40,6 +40,6 @@ describe("command generation", () => {
};

const actual = buildtool.generateCommand(options);
expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool compile test -continueOnFailure -skip check")
//expect(actual).toBe("addpath('"+ path.join(__dirname, "plugins") +"');buildtool compile test -continueOnFailure -skip check")
});
});

0 comments on commit 23bb592

Please sign in to comment.