Skip to content

Commit d706f84

Browse files
authored
chore: rename main (#211)
1 parent 1c55766 commit d706f84

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
release:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
height="80"
77
width="80"
88
alt="hedgehog"
9-
src="https://raw.githubusercontent.com/testing-library/angular-testing-library/master/other/hedgehog.png"
9+
src="https://raw.githubusercontent.com/testing-library/angular-testing-library/main/other/hedgehog.png"
1010
/>
1111
</a>
1212

@@ -43,7 +43,7 @@ practices.</p>
4343
<img
4444
width="500"
4545
alt="TestingJavaScript.com Learn the smart, efficient way to test any JavaScript application."
46-
src="https://raw.githubusercontent.com/testing-library/react-testing-library/master/other/testingjavascript.jpg"
46+
src="https://raw.githubusercontent.com/testing-library/react-testing-library/main/other/testingjavascript.jpg"
4747
/>
4848
</a>
4949
</div>
@@ -139,7 +139,7 @@ describe('Counter', () => {
139139
});
140140
```
141141

142-
[See more examples](https://github.com/testing-library/angular-testing-library/tree/master/apps/example-app/src/app/examples)
142+
[See more examples](https://github.com/testing-library/angular-testing-library/tree/main/apps/example-app/src/app/examples)
143143

144144
## Installation
145145

@@ -270,8 +270,8 @@ Links:
270270

271271
[npm]: https://www.npmjs.com/
272272
[node]: https://nodejs.org
273-
[build-badge]: https://circleci.com/gh/testing-library/angular-testing-library/tree/master.svg?style=shield
274-
[build]: https://circleci.com/gh/testing-library/angular-testing-library/tree/master
273+
[build-badge]: https://circleci.com/gh/testing-library/angular-testing-library/tree/main.svg?style=shield
274+
[build]: https://circleci.com/gh/testing-library/angular-testing-library/tree/main
275275
[coverage]: https://codecov.io/github/testing-library/angular-testing-library
276276
[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/angular-testing-library.svg?style=flat-square
277277
[version-badge]: https://img.shields.io/npm/v/@testing-library/angular.svg?style=flat-square
@@ -281,12 +281,12 @@ Links:
281281
[discord-badge]: https://img.shields.io/discord/723559267868737556.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square
282282
[discord]: https://discord.gg/testing-library
283283
[license-badge]: https://img.shields.io/npm/l/@testing-library/angular.svg?style=flat-square
284-
[license]: https://github.com/testing-library/angular-testing-library/blob/master/LICENSE
284+
[license]: https://github.com/testing-library/angular-testing-library/blob/main/LICENSE
285285
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
286286
[prs]: http://makeapullrequest.com
287287
[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square
288288
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
289-
[coc]: https://github.com/testing-library/angular-testing-library/blob/master/CODE_OF_CONDUCT.md
289+
[coc]: https://github.com/testing-library/angular-testing-library/blob/main/CODE_OF_CONDUCT.md
290290
[github-watch-badge]: https://img.shields.io/github/watchers/testing-library/angular-testing-library.svg?style=social
291291
[github-watch]: https://github.com/testing-library/angular-testing-library/watchers
292292
[github-star-badge]: https://img.shields.io/github/stars/testing-library/angular-testing-library.svg?style=social

apps/example-app/src/app/examples/09-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ActivatedRoute } from '@angular/router';
33
import { map } from 'rxjs/operators';
44

55
@Component({
6-
selector: 'app-master',
6+
selector: 'app-main',
77
template: `
88
<a [routerLink]="'./detail/one'">Load one</a> | <a [routerLink]="'./detail/two'">Load two</a> |
99
<a [routerLink]="'./detail/three'">Load three</a> |

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"nx.json": "*"
1111
},
1212
"affected": {
13-
"defaultBase": "master"
13+
"defaultBase": "main"
1414
},
1515
"npmScope": "testing-library",
1616
"tasksRunnerOptions": {

projects/testing-library/src/lib/testing-library.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function replaceFindWithFindAndDetectChanges<T>(originalQueriesForContainer: T):
371371
const getByQuery = originalQueriesForContainer[key.replace('find', 'get')];
372372
if (key.startsWith('find') && getByQuery) {
373373
newQueries[key] = async (text, options, waitOptions) => {
374-
// original implementation at https://github.com/testing-library/dom-testing-library/blob/master/src/query-helpers.js
374+
// original implementation at https://github.com/testing-library/dom-testing-library/blob/main/src/query-helpers.js
375375
const result = await waitForWrapper(
376376
detectChangesForMountedFixtures,
377377
() => getByQuery(text, options),

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
pkgRoot: 'dist/@testing-library/angular',
3-
branches: ['master', { name: 'beta', prerelease: true }],
3+
branches: ['main', { name: 'beta', prerelease: true }],
44
};

0 commit comments

Comments
 (0)