Skip to content

Commit 5d70585

Browse files
thonatosJacksonTian
authored andcommitted
test: add unittest config for passport
1 parent 20bd42b commit 5d70585

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/config.unittest.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ exports.mongoose = {
1515
server: { poolSize: 20 },
1616
},
1717
};
18+
19+
exports.passportGithub = {
20+
key: process.env.EGG_PASSPORT_GITHUB_CLIENT_ID || 'test',
21+
secret: process.env.EGG_PASSPORT_GITHUB_CLIENT_SECRET || 'test',
22+
};
23+
24+
exports.passportLocal = {
25+
usernameField: 'name',
26+
passwordField: 'pass',
27+
};

0 commit comments

Comments
 (0)