Skip to content

Commit

Permalink
fixed dbExist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
anso3 committed Dec 10, 2021
1 parent ebc8b6a commit b19c406
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/integration/__snapshots__/welcome.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exports[`test welcome page should render arango page correctly 1`] = `
const dbHost = \\"arangodb.learndatabases.dev\\";
const username = \\"\\";
const dbPassword = \\"\\";
const dbExists = ;
const dbExists = \\"\\";
const database = \\"Arango\\";
const credentials = document.createElement(\\"pre\\");
Expand Down Expand Up @@ -104,7 +104,7 @@ exports[`test welcome page should render arango page correctly 1`] = `
return hljs.highlightAuto(code).value;
},
});
const markedHTML = marked(r);
const markedHTML = marked.parse(r);
const markedHTMLwithUserData = markedHTML
.replace(/@username/gi, username)
.replace(/@dbPassword/gi, dbPassword);
Expand Down Expand Up @@ -266,7 +266,7 @@ exports[`test welcome page should render elasticsearch page correctly 1`] = `
const dbHost = \\"elastic.learndatabases.dev\\";
const username = \\"\\";
const dbPassword = \\"\\";
const dbExists = ;
const dbExists = \\"\\";
const database = \\"Elasticsearch\\";
const credentials = document.createElement(\\"pre\\");
Expand Down Expand Up @@ -294,7 +294,7 @@ exports[`test welcome page should render elasticsearch page correctly 1`] = `
return hljs.highlightAuto(code).value;
},
});
const markedHTML = marked(r);
const markedHTML = marked.parse(r);
const markedHTMLwithUserData = markedHTML
.replace(/@username/gi, username)
.replace(/@dbPassword/gi, dbPassword);
Expand Down Expand Up @@ -456,7 +456,7 @@ exports[`test welcome page should render postgres page correctly 1`] = `
const dbHost = \\"learndatabases.dev\\";
const username = \\"\\";
const dbPassword = \\"\\";
const dbExists = ;
const dbExists = \\"\\";
const database = \\"Postgres\\";
const credentials = document.createElement(\\"pre\\");
Expand Down Expand Up @@ -484,7 +484,7 @@ exports[`test welcome page should render postgres page correctly 1`] = `
return hljs.highlightAuto(code).value;
},
});
const markedHTML = marked(r);
const markedHTML = marked.parse(r);
const markedHTMLwithUserData = markedHTML
.replace(/@username/gi, username)
.replace(/@dbPassword/gi, dbPassword);
Expand Down
2 changes: 1 addition & 1 deletion views/tutorial.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
const dbHost = "<%= dbHost %>";
const username = "<%= username %>";
const dbPassword = "<%= dbPassword %>";
const dbExists = <%= dbExists %>;
const dbExists = "<%= dbExists %>";
const database = "<%= database %>";
const credentials = document.createElement("pre");
Expand Down

0 comments on commit b19c406

Please sign in to comment.