Skip to content

Commit 8fbfb97

Browse files
Update port number in test config (#2049)
* feat: update port number in test config * chore: use declared port in object * tests: update baseURL in redirect url
1 parent 97e4e26 commit 8fbfb97

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/config/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Defaults set from default.js
44
*/
55

6-
const port = 3000;
6+
const port = 7337;
77
const NODE_ENV = process.env.NODE_ENV;
88
module.exports = {
9-
port: 3000,
9+
port,
1010
enableFileLogs: false,
1111
// Console logs are set to avoid the winston error of no defined transports
1212
enableConsoleLogs: true,

test/utils/github.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
const defaultClientId = config.get("githubOauth.clientId");
2+
const baseURL = config.get("services.rdsApi.baseUrl");
23

34
const generateGithubAuthRedirectUrl = function ({
45
baseUrl = "https://github.com/login/oauth/authorize",
56
responseType = "code",
6-
redirectUri = "http://localhost:3000/auth/github/callback",
7+
redirectUri = `${baseURL}/auth/github/callback`,
78
scope = "user:email",
89
state = "",
910
clientId = defaultClientId,

0 commit comments

Comments
 (0)