Skip to content

Commit cea3f5b

Browse files
dnlsandiegoKent C. Dodds
authored and
Kent C. Dodds
committed
chore: rename internal utility sel to select (#5)
1 parent 9d0a07f commit cea3f5b

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
"contributions": [
2929
"doc"
3030
]
31+
},
32+
{
33+
"login": "dnlsandiego",
34+
"name": "Daniel Sandiego",
35+
"avatar_url": "https://avatars0.githubusercontent.com/u/8008023?v=4",
36+
"profile": "https://www.dnlsandiego.com",
37+
"contributions": [
38+
"code"
39+
]
3140
}
3241
]
3342
}

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[![downloads][downloads-badge]][npmtrends]
1313
[![MIT License][license-badge]][license]
1414

15-
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)
15+
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
1616
[![PRs Welcome][prs-badge]][prs]
1717
[![Code of Conduct][coc-badge]][coc]
1818

@@ -354,8 +354,8 @@ Thanks goes to these people ([emoji key][emojis]):
354354
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
355355

356356
<!-- prettier-ignore -->
357-
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") |
358-
| :---: | :---: |
357+
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8008023?v=4" width="100px;"/><br /><sub><b>Daniel Sandiego</b></sub>](https://www.dnlsandiego.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=dnlsandiego "Code") |
358+
| :---: | :---: | :---: |
359359

360360
<!-- ALL-CONTRIBUTORS-LIST:END -->
361361

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import ReactDOM from 'react-dom'
22
import {Simulate} from 'react-dom/test-utils'
33

44
// we may expose this eventually
5-
function sel(id) {
5+
function select(id) {
66
return `[data-testid="${id}"]`
77
}
88

99
// we may expose this eventually
1010
function queryDivByTestId(div, id) {
11-
return div.querySelector(sel(id))
11+
return div.querySelector(select(id))
1212
}
1313

1414
function render(ui, {container = document.createElement('div')} = {}) {

0 commit comments

Comments
 (0)