Skip to content

Commit 4e7d406

Browse files
cpojerFacebook Github Bot 4
authored andcommitted
Minor cosmetic website changes.
Summary: Closes jestjs#887 Differential Revision: D3167872 fb-gh-sync-id: 38063d0d620b2851b1001100bb5977d9c25d7c13 fbshipit-source-id: 38063d0d620b2851b1001100bb5977d9c25d7c13
1 parent 67cdabb commit 4e7d406

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

blog/2016-04-12-jest-11.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ expect(mockFn.calls.length).toEqual(1);
7373

7474
We recently wrote about some [performance improvements](http://facebook.github.io/jest/blog/2016/03/11/javascript-unit-testing-performance.html) we've made in Jest. Most notably, startup time has been improved and we are now in a comfortable place with regards to performance.
7575

76-
#### Jasmine and Test Assertion improvements
76+
#### Jasmine and Test Assertion Improvements
7777

7878
When Jest was open sourced it shipped with Jasmine 1. Jest was designed to work with any test assertion library and optional Jasmine 2 support was added through an [external contribution](https://github.com/facebook/jest/pull/330) at the end of last year. This change delivers better performance and provides a better APIs over the previous version of Jasmine. As such, we have converted all our JavaScript tests at Facebook to Jasmine 2. With Jest 11 we are making Jasmine 2 the new default. Jasmine 1 can be enabled through the [`testRunner`](http://facebook.github.io/jest/docs/api.html#testrunner-string) configuration option.
7979

website/core/Site.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ var Site = React.createClass({
1313
? this.props.title + ' · Jest'
1414
: 'Jest · ' + tagline;
1515
var description = this.props.description || tagline;
16+
var url =
17+
'https://facebook.github.io/jest/' + (this.props.url || 'index.html');
18+
1619
return (
1720
<html>
1821
<head>
@@ -22,7 +25,7 @@ var Site = React.createClass({
2225
<meta name="viewport" content="width=device-width" />
2326
<meta property="og:title" content={title} />
2427
<meta property="og:type" content="website" />
25-
<meta property="og:url" content="https://facebook.github.io/jest/index.html" />
28+
<meta property="og:url" content={url} />
2629
<meta property="og:image" content="https://facebook.github.io/jest/img/opengraph.png" />
2730
<meta property="og:description" content={description} />
2831

website/layout/BlogPostLayout.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
var BlogPost = require('BlogPost');
99
var BlogSidebar = require('BlogSidebar');
10-
var Marked = require('Marked');
11-
var MetadataBlog = require('MetadataBlog');
1210
var React = require('React');
1311
var Site = require('Site');
1412

@@ -17,6 +15,7 @@ var BlogPostLayout = React.createClass({
1715
return (
1816
<Site
1917
section="blog"
18+
url={'blog/' + this.props.metadata.path}
2019
title={this.props.metadata.title}
2120
description={this.props.children.trim().split('\n')[0]}>
2221
<section className="content wrap documentationContent">

0 commit comments

Comments
 (0)