Skip to content

Commit 94c7e3f

Browse files
lencioniFacebook Github Bot 7
authored andcommitted
Use https instead of http in a bunch of places
Summary:http is an anti-pattern. Let's use https wherever we can. Closes jestjs#875 Differential Revision: D3161397 fb-gh-sync-id: bef58442996b46effc778d2b37312223992b9c2b fbshipit-source-id: bef58442996b46effc778d2b37312223992b9c2b
1 parent cc4509d commit 94c7e3f

File tree

7 files changed

+119
-76
lines changed

7 files changed

+119
-76
lines changed

README.md

Lines changed: 109 additions & 66 deletions
Large diffs are not rendered by default.

website/core/Prism.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var unindent = require('unindent');
88
/* http://prismjs.com/download.html?themes=prism&languages=markup+clike+javascript+jsx */
99
/**
1010
* Prism: Lightweight, robust, elegant syntax highlighting
11-
* MIT license http://www.opensource.org/licenses/mit-license.php/
12-
* @author Lea Verou http://lea.verou.me
11+
* MIT license https://www.opensource.org/licenses/mit-license.php/
12+
* @author Lea Verou https://lea.verou.me
1313
*/
1414

1515
// Private helper vars

website/core/Site.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ var Site = React.createClass({
2222
<meta name="viewport" content="width=device-width" />
2323
<meta property="og:title" content={title} />
2424
<meta property="og:type" content="website" />
25-
<meta property="og:url" content="http://facebook.github.io/jest/index.html" />
26-
<meta property="og:image" content="http://facebook.github.io/jest/img/opengraph.png" />
25+
<meta property="og:url" content="https://facebook.github.io/jest/index.html" />
26+
<meta property="og:image" content="https://facebook.github.io/jest/img/opengraph.png" />
2727
<meta property="og:description" content={description} />
2828

2929
<link rel="shortcut icon" href="/jest/img/favicon.png" />

website/server/convert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ function execute() {
9898
globEach('src/jest/blog/*.*', rmFile);
9999

100100
const gettingStarted = splitHeader(fs.readFileSync(DOCS_MD_DIR + 'GettingStarted.md', 'utf8')).content
101-
.replace(/\(\/jest\//g, '(http://facebook.github.io/jest/');
101+
.replace(/\(\/jest\//g, '(https://facebook.github.io/jest/');
102102
const api = splitHeader(fs.readFileSync(DOCS_MD_DIR + 'API.md', 'utf8')).content
103-
.replace(/\(\/jest\//g, '(http://facebook.github.io/jest/')
104-
.replace(/\(#/g, '(http://facebook.github.io/jest/docs/api.html#');
103+
.replace(/\(\/jest\//g, '(https://facebook.github.io/jest/')
104+
.replace(/\(#/g, '(https://facebook.github.io/jest/docs/api.html#');
105105

106106
const readme = fs.readFileSync('../README.md', 'utf8')
107107
.replace(

website/server/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ glob('src/**/*.*', function(er, files) {
5757

5858
queue.push(function(cb) {
5959
server.close();
60-
console.log('It is live at: http://facebook.github.io/jest/')
60+
console.log('It is live at: https://facebook.github.io/jest/')
6161
cb();
6262
});
6363
});

website/src/jest/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var index = React.createClass({
6161
<li>Provides a <a href="/jest/docs/mock-functions.html">manual mocking library</a>.</li>
6262
<li>Runs your tests with a fake DOM implementation (via <a href="https://github.com/tmpvar/jsdom" target="_blank">jsdom</a>) on the command line.</li>
6363
<li>Runs tests in parallel processes to minimize test runtime.</li>
64-
<li>Works with any compile-to-JS language and integrates seamlessly with <a href="http://babeljs.io" target="_blank">Babel</a>.</li>
64+
<li>Works with any compile-to-JS language and integrates seamlessly with <a href="https://babeljs.io" target="_blank">Babel</a>.</li>
6565
<li>Creates coverage reports.</li>
6666
</ul>
6767
</div>

website/src/jest/support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var support = React.createClass({
2626
Check out the <a href="/jest/docs/troubleshooting.html">Troubleshooting</a> documentation entry.
2727

2828
<H2>Stack Overflow</H2>
29-
<p>Many members of the community use Stack Overflow to ask questions. Read through the <a href="http://stackoverflow.com/questions/tagged/jestjs">existing questions</a> tagged with <strong>jestjs</strong> or <a href="http://stackoverflow.com/questions/ask">ask your own</a>!</p>
29+
<p>Many members of the community use Stack Overflow to ask questions. Read through the <a href="https://stackoverflow.com/questions/tagged/jestjs">existing questions</a> tagged with <strong>jestjs</strong> or <a href="https://stackoverflow.com/questions/ask">ask your own</a>!</p>
3030
<H2>Discord</H2>
3131
<p>Join <a href="https://discordapp.com/channels/102860784329052160/103622435865104384" target="_blank">the <strong>#jest</strong> channel</a> on <a href="http://www.reactiflux.com/">Reactiflux</a> to ask questions and find answers.</p>
3232
</div>

0 commit comments

Comments
 (0)