Skip to content

Commit 60a931f

Browse files
authored
chore: http to https in src & test (#272)
1 parent 31eda50 commit 60a931f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/deployer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function(args) {
4141
help += ' branch: [branch]\n';
4242
help += ' message: [message]\n\n';
4343
help += ' extend_dirs: [extend directory]\n\n';
44-
help += 'For more help, you can check the docs: ' + underline('http://hexo.io/docs/deployment.html');
44+
help += 'For more help, you can check the docs: ' + underline('https://hexo.io/docs/deployment.html');
4545

4646
console.log(help);
4747
return;

test/parse_config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ describe('parse config', () => {
127127
// http
128128
parseConfig({
129129
repo: {
130-
url: 'http://github.com/hexojs/hexojs.github.io.git',
130+
url: 'https://github.com/hexojs/hexojs.github.io.git',
131131
token: 'plain_text_token'
132132
}
133-
})[0].url.should.eql('http://[email protected]/hexojs/hexojs.github.io.git');
133+
})[0].url.should.eql('https://[email protected]/hexojs/hexojs.github.io.git');
134134

135135
// token config for git scheme should be ignored
136136
parseConfig({
@@ -147,10 +147,10 @@ describe('parse config', () => {
147147
// http
148148
parseConfig({
149149
repo: {
150-
url: 'http://github.com/hexojs/hexojs.github.io.git',
150+
url: 'https://github.com/hexojs/hexojs.github.io.git',
151151
token: '$GIT_TOKEN'
152152
}
153-
})[0].url.should.eql('http://[email protected]/hexojs/hexojs.github.io.git');
153+
})[0].url.should.eql('https://[email protected]/hexojs/hexojs.github.io.git');
154154

155155
// token config for git scheme should be ignored
156156
parseConfig({

0 commit comments

Comments
 (0)