Skip to content

Commit e1e60c3

Browse files
committed
chore(repo): rename default branch to main
1 parent dd0d769 commit e1e60c3

45 files changed

Lines changed: 61 additions & 61 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
command: npm run prettier:check
184184
- run:
185185
name: Lint commits
186-
command: npx commitlint -V --from=origin/master
186+
command: npx commitlint -V --from=origin/main
187187
- run:
188188
name: Lint code style
189189
command: npm run lint -- --ignore-pattern e2e/ --ignore-pattern tests-e2e/
@@ -343,7 +343,7 @@ jobs:
343343
pattern: 'e2e/.*'
344344
value: << pipeline.git.branch >>
345345
- matches:
346-
pattern: 'master|alpha|beta|next|rc'
346+
pattern: 'main|alpha|beta|next|rc'
347347
value: << pipeline.git.branch >>
348348
- matches:
349349
pattern: 'renovate/e2e/a5/.*'
@@ -541,7 +541,7 @@ workflows:
541541
# filters:
542542
# branches:
543543
# ignore:
544-
# - master
544+
# - main
545545
# - alpha
546546
# - beta
547547
# - next

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: 'CodeQL'
22

33
on:
44
push:
5-
branches: ['master']
5+
branches: ['main']
66
pull_request:
7-
branches: ['master']
7+
branches: ['main']
88
schedule:
99
- cron: '56 9 * * 0'
1010

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[<img src="https://img.shields.io/gitter/room/help-me-mom/ng-mocks" alt="chat on gitter" width="90" height="20" />](https://gitter.im/ng-mocks/community)
22
[<img src="https://img.shields.io/npm/v/ng-mocks" alt="npm version" width="88" height="20" />](https://www.npmjs.com/package/ng-mocks)
3-
[<img src="https://img.shields.io/circleci/build/github/help-me-mom/ng-mocks/master" alt="build status" width="88" height="20" />](https://app.circleci.com/pipelines/github/help-me-mom/ng-mocks?branch=master)
4-
[<img src="https://img.shields.io/coveralls/github/help-me-mom/ng-mocks/master" alt="coverage status" width="104" height="20" />](https://coveralls.io/github/help-me-mom/ng-mocks?branch=master)
3+
[<img src="https://img.shields.io/circleci/build/github/help-me-mom/ng-mocks/main" alt="build status" width="88" height="20" />](https://app.circleci.com/pipelines/github/help-me-mom/ng-mocks?branch=main)
4+
[<img src="https://img.shields.io/coveralls/github/help-me-mom/ng-mocks/main" alt="coverage status" width="104" height="20" />](https://coveralls.io/github/help-me-mom/ng-mocks?branch=main)
55

66
# Mock components, services and more out of annoying dependencies for simplification of Angular testing
77

@@ -35,7 +35,7 @@ The current version of the library **has been tested** and **can be used** with:
3535
## Important links
3636

3737
- **[Documentation with examples of Angular testing](https://ng-mocks.sudo.eu)**
38-
- [CHANGELOG](https://github.com/help-me-mom/ng-mocks/blob/master/CHANGELOG.md)
38+
- [CHANGELOG](https://github.com/help-me-mom/ng-mocks/blob/main/CHANGELOG.md)
3939
- [GitHub repo](https://github.com/help-me-mom/ng-mocks)
4040
- [NPM package](https://www.npmjs.com/package/ng-mocks)
4141

docs/articles/api/MockComponent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Please, pay attention to comments in the code.
128128
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockComponent/test.spec.ts&initialpath=%3Fspec%3DMockComponent)
129129
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockComponent/test.spec.ts&initialpath=%3Fspec%3DMockComponent)
130130

131-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockComponent/test.spec.ts"
131+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockComponent/test.spec.ts"
132132
describe('MockComponent', () => {
133133
beforeEach(() => {
134134
return MockBuilder(TargetComponent, ItsModule);

docs/articles/api/MockDirective.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Please, pay attention to comments in the code.
129129
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockDirective-Attribute/test.spec.ts&initialpath=%3Fspec%3DMockDirective%3AAttribute)
130130
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockDirective-Attribute/test.spec.ts&initialpath=%3Fspec%3DMockDirective%3AAttribute)
131131

132-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockDirective-Attribute/test.spec.ts"
132+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockDirective-Attribute/test.spec.ts"
133133
describe('MockDirective:Attribute', () => {
134134
beforeEach(() => {
135135
// DependencyDirective is a declaration in ItsModule.
@@ -205,7 +205,7 @@ if we want to assert on its nested elements.
205205
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockDirective-Structural/test.spec.ts&initialpath=%3Fspec%3DMockDirective%3AStructural)
206206
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockDirective-Structural/test.spec.ts&initialpath=%3Fspec%3DMockDirective%3AStructural)
207207

208-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockDirective-Structural/test.spec.ts"
208+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockDirective-Structural/test.spec.ts"
209209
describe('MockDirective:Structural', () => {
210210
// IMPORTANT: by default structural directives are not rendered.
211211
// Because they might require a context which should be provided.

docs/articles/api/MockInstance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Please, pay attention to comments in the code.
275275
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockInstance/test.spec.ts&initialpath=%3Fspec%3DMockInstance)
276276
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockInstance/test.spec.ts&initialpath=%3Fspec%3DMockInstance)
277277

278-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockInstance/test.spec.ts"
278+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockInstance/test.spec.ts"
279279
describe('MockInstance', () => {
280280
// Creates a scope to reset customizations automatically after this test.
281281
MockInstance.scope();
@@ -312,7 +312,7 @@ Please, pay attention to comments in the code.
312312
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockInstance/component.spec.ts&initialpath=%3Fspec%3DMockInstance%3Acomponent)
313313
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockInstance/component.spec.ts&initialpath=%3Fspec%3DMockInstance%3Acomponent)
314314

315-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockInstance/component.spec.ts"
315+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockInstance/component.spec.ts"
316316
describe('MockInstance:component', () => {
317317
// Creates a scope to reset customizations automatically after this test.
318318
MockInstance.scope();

docs/articles/api/MockModule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Please, pay attention to comments in the code.
104104
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockModule/test.spec.ts&initialpath=%3Fspec%3DMockModule)
105105
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockModule/test.spec.ts&initialpath=%3Fspec%3DMockModule)
106106

107-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockModule/test.spec.ts"
107+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockModule/test.spec.ts"
108108
describe('MockModule', () => {
109109
beforeEach(() => {
110110
// DependencyModule is an import of ItsModule.

docs/articles/api/MockPipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Please, pay attention to comments in the code.
126126
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockPipe/test.spec.ts&initialpath=%3Fspec%3DMockPipe)
127127
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockPipe/test.spec.ts&initialpath=%3Fspec%3DMockPipe)
128128

129-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockPipe/test.spec.ts"
129+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockPipe/test.spec.ts"
130130
// A fake transform function.
131131
const fakeTransform = (...args: string[]) => JSON.stringify(args);
132132

docs/articles/api/MockProvider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Please, pay attention to comments in the code.
242242
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockProvider/test.spec.ts&initialpath=%3Fspec%3DMockProvider)
243243
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockProvider/test.spec.ts&initialpath=%3Fspec%3DMockProvider)
244244

245-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockProvider/test.spec.ts"
245+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockProvider/test.spec.ts"
246246
describe('MockProvider', () => {
247247
const mockObj = { value: 123 };
248248

docs/articles/api/MockRender.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Please, pay attention to comments in the code.
537537
- [Try it on CodeSandbox](https://codesandbox.io/p/sandbox/github/help-me-mom/ng-mocks-sandbox/tree/tests/?file=/src/examples/MockRender/test.spec.ts&initialpath=%3Fspec%3DMockRender)
538538
- [Try it on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox/tree/tests?file=src/examples/MockRender/test.spec.ts&initialpath=%3Fspec%3DMockRender)
539539

540-
```ts title="https://github.com/help-me-mom/ng-mocks/blob/master/examples/MockRender/test.spec.ts"
540+
```ts title="https://github.com/help-me-mom/ng-mocks/blob/main/examples/MockRender/test.spec.ts"
541541
describe('MockRender', () => {
542542
// Do not forget to return the promise of MockBuilder.
543543
beforeEach(() => MockBuilder(TargetComponent, ChildModule));

0 commit comments

Comments
 (0)