From 60a931fa768af21637d8f46eeb46fe3f4d818ad0 Mon Sep 17 00:00:00 2001 From: yoshino Date: Mon, 19 Sep 2022 23:21:45 +0900 Subject: [PATCH] chore: `http` to `https` in src & test (#272) --- lib/deployer.js | 2 +- test/parse_config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/deployer.js b/lib/deployer.js index 70502c4..c817e53 100644 --- a/lib/deployer.js +++ b/lib/deployer.js @@ -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; diff --git a/test/parse_config.js b/test/parse_config.js index 1e3a65b..be8b8b2 100644 --- a/test/parse_config.js +++ b/test/parse_config.js @@ -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({ @@ -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({