Skip to content

Commit

Permalink
Update port number in test config (#2049)
Browse files Browse the repository at this point in the history
* feat: update port number in test config

* chore: use declared port in object

* tests: update baseURL in redirect url
  • Loading branch information
prakashchoudhary07 authored Jun 18, 2024
1 parent 97e4e26 commit 8fbfb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/config/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* Defaults set from default.js
*/

const port = 3000;
const port = 7337;
const NODE_ENV = process.env.NODE_ENV;
module.exports = {
port: 3000,
port,
enableFileLogs: false,
// Console logs are set to avoid the winston error of no defined transports
enableConsoleLogs: true,
Expand Down
3 changes: 2 additions & 1 deletion test/utils/github.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const defaultClientId = config.get("githubOauth.clientId");
const baseURL = config.get("services.rdsApi.baseUrl");

const generateGithubAuthRedirectUrl = function ({
baseUrl = "https://github.com/login/oauth/authorize",
responseType = "code",
redirectUri = "http://localhost:3000/auth/github/callback",
redirectUri = `${baseURL}/auth/github/callback`,
scope = "user:email",
state = "",
clientId = defaultClientId,
Expand Down

0 comments on commit 8fbfb97

Please sign in to comment.