Skip to content

Commit

Permalink
chore: http to https in src & test (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin authored Sep 19, 2022
1 parent 31eda50 commit 60a931f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function(args) {
help += ' branch: [branch]\n';
help += ' message: [message]\n\n';
help += ' extend_dirs: [extend directory]\n\n';
help += 'For more help, you can check the docs: ' + underline('http://hexo.io/docs/deployment.html');
help += 'For more help, you can check the docs: ' + underline('https://hexo.io/docs/deployment.html');

console.log(help);
return;
Expand Down
8 changes: 4 additions & 4 deletions test/parse_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ describe('parse config', () => {
// http
parseConfig({
repo: {
url: 'http://github.com/hexojs/hexojs.github.io.git',
url: 'https://github.com/hexojs/hexojs.github.io.git',
token: 'plain_text_token'
}
})[0].url.should.eql('http://plain_text_token@github.com/hexojs/hexojs.github.io.git');
})[0].url.should.eql('https://plain_text_token@github.com/hexojs/hexojs.github.io.git');

// token config for git scheme should be ignored
parseConfig({
Expand All @@ -147,10 +147,10 @@ describe('parse config', () => {
// http
parseConfig({
repo: {
url: 'http://github.com/hexojs/hexojs.github.io.git',
url: 'https://github.com/hexojs/hexojs.github.io.git',
token: '$GIT_TOKEN'
}
})[0].url.should.eql('http://env_token@github.com/hexojs/hexojs.github.io.git');
})[0].url.should.eql('https://env_token@github.com/hexojs/hexojs.github.io.git');

// token config for git scheme should be ignored
parseConfig({
Expand Down

0 comments on commit 60a931f

Please sign in to comment.