Skip to content

Commit

Permalink
Merge pull request #1040 from dan1elt0m/fix-image-pull
Browse files Browse the repository at this point in the history
Fix version DockerImage
  • Loading branch information
dan1elt0m authored May 26, 2023
2 parents 8b73ffa + d9ef651 commit d135355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typescript/src/docker-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export class DockerImage {

public static version() {
const pj = require("../package.json"); // eslint-disable-line @typescript-eslint/no-var-requires
return `v${pj.version}`;
return pj.version;
}
}
2 changes: 1 addition & 1 deletion typescript/tests/docker-image.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("DockerImage", () => {
test("DockerImage version check", () => {
const imageVersion = DockerImage.version();

const expectedVersion = `v${require('../package.json').version}`;
const expectedVersion = `${require('../package.json').version}`;

expect(imageVersion).toBe(expectedVersion);
});
Expand Down

0 comments on commit d135355

Please sign in to comment.