Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Aug 3, 2023
1 parent 91fd1c5 commit 5797d3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("The VersionInfo component", () => {
const message = "#7934 refactor code and resolve eslint error";
const commit = "01046133761de880aebce08a7bf11dd858117837";
const date = "Thu, 23 Jun 2022 20:00:02 +0300";
const githubUrl = "https:/geosolutions-it/MapStore/tree/sha_commit";
const githubUrl = "https:/geosolutions-it/MapStore/tree/";

const vd = ReactDOM.render(
<VersionInfo
Expand Down Expand Up @@ -63,7 +63,7 @@ describe("The VersionInfo component", () => {
expect(versionValue.textContent.trim()).toBe(version);
expect(messageValue.textContent.trim()).toBe(message);
expect(commitValue.textContent.trim()).toBe(commit);
expect(commitValue.innerHTML.trim()).toBe('<a href="https:/geosolutions-it/MapStore/tree/sha_commit" target="_blank" class="v_githubUrl">01046133761de880aebce08a7bf11dd858117837</a>');
expect(commitValue.innerHTML.trim()).toBe(`<a href="https:/geosolutions-it/MapStore/tree/${__COMMITHASH__}" target="_blank" class="v_githubUrl">${__COMMITHASH__}</a>`);
expect(dateValue.textContent.trim()).toBe(date);
expect(githubUrlValue.textContent.trim()).toBe(commit);
});
Expand Down

0 comments on commit 5797d3c

Please sign in to comment.