Skip to content

Commit 3a7701c

Browse files
deiningljharb
authored andcommitted
[Docs] fixing typos
1 parent cc0a6c0 commit 3a7701c

15 files changed

+19
-19
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ lib-cov
1414
coverage
1515
.nyc_output
1616

17-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
1818
.grunt
1919

2020
# node-waf configuration
2121
.lock-wscript
2222

23-
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2424
build/Release
2525

2626
# Dependency directory

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ library from v2 to v3, it is hard to categorize changes in terms of sem
424424

425425
### Documentation
426426

427-
- Update docs to use `prop-types` ([#894](https://github.com/enzymejs/enzyme/pull/894), [#890](https://github.com/enzymejs/enzyme/issue/890))
427+
- Update docs to use `prop-types` ([#894](https://github.com/enzymejs/enzyme/pull/894), [#890](https://github.com/enzymejs/enzyme/issues/890))
428428

429429
## 2.8.1
430430

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Tests for a method "foo" are stored in `packages/enzyme-test-suite/test/shared/m
101101
### Style & Linting
102102

103103
This codebase adheres to the [Airbnb Styleguide](https://github.com/airbnb/javascript) and is
104-
enforced using [ESLint](http://eslint.org/).
104+
enforced using [ESLint](https://eslint.org).
105105

106106
As with the test suite, the linter will not fully pass unless it is running on *built* Enzyme. This is because the ESLint `import/*` rules rely on finding the target files in the filesystem (which won't be there unless they've been built).
107107

INTHEWILD.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Organizations
2121
- [Simple](https://github.com/simplefinance)
2222
- [Grab](https://github.com/grab)
2323
- [Megalytic](https://megalytic.com/)
24-
- [Chroma](http://hichroma.com/)
24+
- [Chroma](https://www.chromatic.com)
2525
- [Mavens](https://github.com/mavens)
2626
- [Cucumber](https://cucumber.io)
2727
- [Genoa Telepsychiatry](https://genoatelepsychiatry.com)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Running Enzyme Tests
7676

7777
Enzyme is unopinionated regarding which test runner or assertion library you use, and should be
7878
compatible with all major test runners and assertion libraries out there. The documentation and
79-
examples for enzyme use [Mocha](https://mochajs.org/) and [Chai](http://chaijs.com/), but you
79+
examples for enzyme use [Mocha](https://mochajs.org) and [Chai](https://chaijs.com), but you
8080
should be able to extrapolate to your framework of choice.
8181

8282
If you are interested in using enzyme with custom assertions and convenience functions for

docs/api/mount.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Full DOM rendering is ideal for use cases where you have components that may int
55
Full DOM rendering requires that a full DOM API be available at the global scope. This means that
66
it must be run in an environment that at least “looks like” a browser environment. If you do not
77
want to run your tests inside of a browser, the recommended approach to using `mount` is to depend
8-
on a library called [jsdom](https://github.com/tmpvar/jsdom) which is essentially a headless browser
8+
on a library called [jsdom](https://github.com/jsdom/jsdom) which is essentially a headless browser
99
implemented completely in JS.
1010

1111
**Note**: unlike shallow or static rendering, full rendering actually mounts the component in the DOM, which means that tests can affect each other if they are all using the same DOM. Keep that in mind while writing your tests and, if necessary, use [`.unmount()`](ReactWrapper/unmount.md) or something similar as cleanup.

docs/api/render.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Use enzyme's `render` function to generate HTML from your React tree, and analyz
44

55
`render` returns a wrapper very similar to the other renderers in enzyme, [`mount`](mount.md) and
66
[`shallow`](shallow.md); however, `render` uses a third party HTML parsing and traversal library
7-
[Cheerio](http://cheeriojs.github.io/cheerio/). We believe that Cheerio handles parsing and
7+
[Cheerio](https://cheerio.js.org). We believe that Cheerio handles parsing and
88
traversing HTML extremely well, and duplicating this functionality ourselves would be a
99
disservice.
1010

docs/guides/browserify.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Using enzyme with Browserify
22

33
If you are using a test runner that runs code in a browser-based environment, you may be using
4-
[browserify](http://browserify.org/) in order to bundle your React code.
4+
[browserify](https://browserify.org) in order to bundle your React code.
55

66
Prior to enzyme 3.0 there were some issues with conditional requires that were used
77
to maintain backwards compatibility with React versions. With enzyme 3.0+, this

docs/guides/jest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Configure with Jest
44

5-
To run the setup file to configure Enzyme and the Adapter (as shown in the [Installation docs](https://enzymejs.github.io/enzyme/docs/installation/)) with Jest, set `setupFilesAfterEnv` (previously `setupTestFrameworkScriptFile`) in your config file (check [Jest's documentation](http://jestjs.io/docs/en/configuration) for the possible locations of that config file) to literally the string `<rootDir>` and the path to your setup file.
5+
To run the setup file to configure Enzyme and the Adapter (as shown in the [Installation docs](https://enzymejs.github.io/enzyme/docs/installation/)) with Jest, set `setupFilesAfterEnv` (previously `setupTestFrameworkScriptFile`) in your config file (check [Jest's documentation](https://jestjs.io/docs/en/configuration) for the possible locations of that config file) to literally the string `<rootDir>` and the path to your setup file.
66

77
```json
88
{

docs/guides/jsdom.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using enzyme with JSDOM
22

3-
[JSDOM](https://github.com/tmpvar/jsdom) is a JavaScript based headless browser that can be used to create a realistic testing environment.
3+
[JSDOM](https://github.com/jsdom/jsdom) is a JavaScript based headless browser that can be used to create a realistic testing environment.
44

55
Since enzyme's [`mount`](../api/mount.md) API requires a DOM, JSDOM is required in order to use
66
`mount` if you are not already in a browser environment (ie, a Node environment).
@@ -42,7 +42,7 @@ global.cancelAnimationFrame = function (id) {
4242
copyProps(window, global);
4343
```
4444

45-
Here is the sample of [jsdom old API](https://github.com/tmpvar/jsdom/blob/master/lib/old-api.md) as well.
45+
Here is the sample of [jsdom old API](https://github.com/jsdom/jsdom/blob/11.0.0/lib/old-api.md) as well.
4646

4747
`jsdom ~<v10`:
4848

@@ -108,7 +108,7 @@ may want to try using a browser-based test runner such as [Karma](../guides/karm
108108
Some times you may need to switch between different versions of node, you can use a CLI tool called
109109
`nvm` to quickly switch between node versions.
110110

111-
To install `nvm`, use the curl script from http://nvm.sh, and then:
111+
To install `nvm`, use the curl script from https://nvm.sh, and then:
112112

113113
```bash
114114
nvm install 4

docs/guides/migration-from-2-to-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ console.log(wrapper.find('.bar').length); // 2
223223

224224
Since `<Foo/>` has the className `bar` it is returned as the _hostNode_. As expected the `<div>` with the className `bar` is also returned
225225

226-
To avoid this you can explicity query for the DOM node: `wrapper.find('div.bar')`. Alternatively if you would like to only find host nodes use [hostNodes()](https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/hostNodes.html)
226+
To avoid this you can explicitly query for the DOM node: `wrapper.find('div.bar')`. Alternatively if you would like to only find host nodes use [hostNodes()](https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/hostNodes.html)
227227

228228
## For `mount`, updates are sometimes required when they weren't before
229229

docs/guides/react-native.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Enzyme.configure({ adapter: new Adapter() });
2727
To use enzyme's `mount` until a React Native adapter exists, an emulated DOM must be loaded.
2828

2929
While some have had success with [react-native-mock-renderer](https://github.com/Root-App/react-native-mock-render),
30-
the recommended approach is to use [https://github.com/tmpvar/jsdom](JSDOM),
30+
the recommended approach is to use [JSDOM](https://github.com/jsdom/jsdom),
3131
as documented for enzyme at the [JSDOM](https://enzymejs.github.io/enzyme/docs/guides/jsdom.html) documentation page.
3232

3333
JSDOM will allow all of the `enzyme` behavior you would expect. While Jest snapshot testing can be used with

packages/enzyme-test-suite/test/ReactWrapper-spec.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ describeWithDOM('mount', () => {
18571857
const p = wrapper.find('p');
18581858
expect(wrapper.find('p').text()).to.equal('0');
18591859
wrapper.find(Child).prop('onClick')();
1860-
// TOOD: this is a difference between mount and shallow
1860+
// TODO: this is a difference between mount and shallow
18611861
// this is 1, because the wrapper has updated
18621862
expect(p.text()).to.equal('1');
18631863
expect(wrapper.find('p').text()).to.equal('1');

packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ describe('shallow', () => {
930930
))).to.throw('FaultyFooProvider.getChildContext(): key "foo" is not defined in childContextTypes');
931931
});
932932

933-
it('allows overridding context with the context option', () => {
933+
it('allows overriding context with the context option', () => {
934934
const wrapper = shallow(<TestComponent />);
935935

936936
const fooProvider = wrapper.find(FooProvider).dive();
@@ -2521,7 +2521,7 @@ describe('shallow', () => {
25212521
const p = wrapper.find('p');
25222522
expect(wrapper.find('p').text()).to.equal('0');
25232523
wrapper.find(Child).prop('onClick')();
2524-
// TOOD: this is a difference between mount and shallow
2524+
// TODO: this is a difference between mount and shallow
25252525
// this is still 0 because the wrapper won't be updated
25262526
expect(p.text()).to.equal('0');
25272527
expect(wrapper.find('p').text()).to.equal('1');

packages/enzyme-test-suite/test/Utils-spec.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ describe('Utils', () => {
744744
});
745745
});
746746

747-
it('returns false when it recieves any other value than "false" or null', () => {
747+
it('returns false when it receives any other value than "false" or null', () => {
748748
const values = [undefined, true, 'test', []];
749749

750750
values.forEach((value) => {

0 commit comments

Comments
 (0)