OSDN Git Service

Regular updates
[twpd/master.git] / jest.md
diff --git a/jest.md b/jest.md
index 629fb60..b3b7c90 100644 (file)
--- a/jest.md
+++ b/jest.md
@@ -2,7 +2,7 @@
 title: Jest
 category: JavaScript libraries
 layout: 2017/sheet
-updated: 2017-09-01
+updated: 2020-06-17
 weight: -3
 tags: [Featurable]
 intro: |
@@ -33,7 +33,7 @@ npm install --save-dev jest babel-jest
 npm test -- --watch
 ```
 
-See: [Getting started](http://facebook.github.io/jest/docs/en/getting-started.html)
+See: [Getting started](https://facebook.github.io/jest/docs/en/getting-started.html)
 
 ### Writing tests
 
@@ -45,7 +45,7 @@ describe('My work', () => {
 })
 ```
 
-See: [describe()](http://facebook.github.io/jest/docs/en/api.html#describename-fn), [test()](http://facebook.github.io/jest/docs/en/api.html#testname-fn), [expect()](http://facebook.github.io/jest/docs/en/expect.html#content)
+See: [describe()](https://facebook.github.io/jest/docs/en/api.html#describename-fn), [test()](https://facebook.github.io/jest/docs/en/api.html#testname-fn), [expect()](https://facebook.github.io/jest/docs/en/expect.html#content)
 
 ### BDD syntax
 
@@ -58,7 +58,7 @@ describe('My work', () => {
 ```
 
 `it` is an alias for `test`.
-See: [test()](http://facebook.github.io/jest/docs/en/api.html#testname-fn)
+See: [test()](https://facebook.github.io/jest/docs/en/api.html#testname-fn)
 
 ### Setup
 
@@ -72,7 +72,7 @@ beforeAll(() => { ... })
 afterAll(() => { ... })
 ```
 
-See: [afterAll() and more](http://facebook.github.io/jest/docs/en/api.html#afterallfn)
+See: [afterAll() and more](https://facebook.github.io/jest/docs/en/api.html#afterallfn)
 
 ### Focusing tests
 
@@ -81,7 +81,7 @@ describe.only(···)
 it.only(···) // alias: fit()
 ```
 
-See: [test.only](http://facebook.github.io/jest/docs/en/api.html#testonlyname-fn)
+See: [test.only](https://facebook.github.io/jest/docs/en/api.html#testonlyname-fn)
 
 
 ### Skipping tests
@@ -91,7 +91,7 @@ describe.skip(···)
 it.skip(···) // alias: xit()
 ```
 
-See: [test.skip](http://facebook.github.io/jest/docs/en/api.html#testskipname-fn)
+See: [test.skip](https://facebook.github.io/jest/docs/en/api.html#testskipname-fn)
 
 
 ### Optional flags
@@ -117,7 +117,7 @@ expect(value)
 ```
 
 Note that `toEqual` is a deep equality check.
-See: [expect()](http://facebook.github.io/jest/docs/en/expect.html#expectvalue)
+See: [expect()](https://facebook.github.io/jest/docs/en/expect.html#expectvalue)
 
 ### Snapshots
 
@@ -218,7 +218,7 @@ test('works with async/await', async () => {
 {: data-line="2"}
 
 Return promises, or use async/await.
-See: [Async tutorial](http://facebook.github.io/jest/docs/en/tutorial-async.html)
+See: [Async tutorial](https://facebook.github.io/jest/docs/en/tutorial-async.html)
 
 ### Snapshots
 
@@ -231,7 +231,7 @@ it('works', () => {
 {: data-line="3"}
 
 First run creates a snapshot. Subsequent runs match the saved snapshot.
-See: [Snapshot testing](http://facebook.github.io/jest/docs/en/snapshot-testing.html)
+See: [Snapshot testing](https://facebook.github.io/jest/docs/en/snapshot-testing.html)
 
 ### React test renderer
 
@@ -243,7 +243,7 @@ import renderer from 'react-test-renderer'
 ```jsx
 it('works', () => {
   const tree = renderer.create(
-    <Link page="http://www.facebook.com">Facebook</Link>
+    <Link page="https://www.facebook.com">Facebook</Link>
   ).toJSON()
 
   expect(tree).toMatchSnapshot()
@@ -252,7 +252,7 @@ it('works', () => {
 {: data-line="2,3,4"}
 
 React's test renderer can be used for Jest snapshots.
-See: [Snapshot test](http://facebook.github.io/jest/docs/en/tutorial-react-native.html#snapshot-test)
+See: [Snapshot test](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#snapshot-test)
 
 ### Timers
 
@@ -268,7 +268,7 @@ it('works', () => {
 })
 ```
 
-See: [Timer Mocks](http://facebook.github.io/jest/docs/en/timer-mocks.html)
+See: [Timer Mocks](https://facebook.github.io/jest/docs/en/timer-mocks.html)
 
 ## Mock functions
 
@@ -282,7 +282,7 @@ const fn = jest.fn()
 const fn = jest.fn(n => n * n)
 ```
 
-See: [Mock functions](http://facebook.github.io/jest/docs/en/mock-functions.html#using-a-mock-function)
+See: [Mock functions](https://facebook.github.io/jest/docs/en/mock-functions.html#using-a-mock-function)
 
 ### Assertions
 
@@ -319,7 +319,7 @@ Fn.mock.instances
 ```
 {: data-line="1"}
 
-See: [.mock property](http://facebook.github.io/jest/docs/en/mock-functions.html#mock-property)
+See: [.mock property](https://facebook.github.io/jest/docs/en/mock-functions.html#mock-property)
 
 ### Calls
 
@@ -336,7 +336,7 @@ fn.mock.calls[1][0]    // → 456
 ```
 {: data-line="1,2,3"}
 
-See: [.mock property](http://facebook.github.io/jest/docs/en/mock-functions.html#mock-property)
+See: [.mock property](https://facebook.github.io/jest/docs/en/mock-functions.html#mock-property)
 
 ### Return values
 
@@ -368,5 +368,5 @@ fn()    // → 2
 ## References
 {: .-one-column}
 
-- <http://facebook.github.io/jest/>
+- <https://facebook.github.io/jest/>
 {: .-also-see}