Skip to content

Commit 131aa94

Browse files
committed
main - 839dfba test(multiple): Update tests to use exhaustive checkNoChanges by default (#31069)
1 parent ecbaeb1 commit 131aa94

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

docs-content/examples-highlighted/material/checkbox/checkbox-harness/checkbox-harness-example.spec-ts.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<span class="hljs-keyword">import</span> {ComponentFixture, TestBed} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core/testing&#x27;</span>;
44
<span class="hljs-keyword">import</span> {MatCheckboxHarness} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/checkbox/testing&#x27;</span>;
55
<span class="hljs-keyword">import</span> {CheckboxHarnessExample} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./checkbox-harness-example&#x27;</span>;
6+
<span class="hljs-keyword">import</span> {provideCheckNoChangesConfig} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
67

78
describe(<span class="hljs-string">&#x27;CheckboxHarnessExample&#x27;</span>, <span class="hljs-function">() =&gt;</span> {
89
<span class="hljs-keyword">let</span> fixture: ComponentFixture&lt;CheckboxHarnessExample&gt;;
910
<span class="hljs-keyword">let</span> loader: HarnessLoader;
1011

1112
beforeEach(<span class="hljs-function">() =&gt;</span> {
13+
TestBed.configureTestingModule({<span class="hljs-attr">providers</span>: [provideCheckNoChangesConfig({<span class="hljs-attr">exhaustive</span>: <span class="hljs-literal">false</span>})]});
1214
fixture = TestBed.createComponent(CheckboxHarnessExample);
1315
fixture.detectChanges();
1416
loader = TestbedHarnessEnvironment.loader(fixture);

docs-content/examples-source/material/checkbox/checkbox-harness/checkbox-harness-example.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
33
import {ComponentFixture, TestBed} from '@angular/core/testing';
44
import {MatCheckboxHarness} from '@angular/material/checkbox/testing';
55
import {CheckboxHarnessExample} from './checkbox-harness-example';
6+
import {provideCheckNoChangesConfig} from '@angular/core';
67

78
describe('CheckboxHarnessExample', () => {
89
let fixture: ComponentFixture<CheckboxHarnessExample>;
910
let loader: HarnessLoader;
1011

1112
beforeEach(() => {
13+
TestBed.configureTestingModule({providers: [provideCheckNoChangesConfig({exhaustive: false})]});
1214
fixture = TestBed.createComponent(CheckboxHarnessExample);
1315
fixture.detectChanges();
1416
loader = TestbedHarnessEnvironment.loader(fixture);

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "20.1.0-next.0+sha-936d179",
3+
"version": "20.1.0-next.0+sha-839dfba",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -259,15 +259,15 @@
259259
},
260260
"homepage": "https://github.com/angular/components#readme",
261261
"peerDependencies": {
262-
"@angular/cdk": "20.1.0-next.0+sha-936d179",
263-
"@angular/cdk-experimental": "20.1.0-next.0+sha-936d179",
262+
"@angular/cdk": "20.1.0-next.0+sha-839dfba",
263+
"@angular/cdk-experimental": "20.1.0-next.0+sha-839dfba",
264264
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
265265
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
266-
"@angular/material": "20.1.0-next.0+sha-936d179",
267-
"@angular/material-experimental": "20.1.0-next.0+sha-936d179",
268-
"@angular/material-moment-adapter": "20.1.0-next.0+sha-936d179",
269-
"@angular/material-luxon-adapter": "20.1.0-next.0+sha-936d179",
270-
"@angular/material-date-fns-adapter": "20.1.0-next.0+sha-936d179"
266+
"@angular/material": "20.1.0-next.0+sha-839dfba",
267+
"@angular/material-experimental": "20.1.0-next.0+sha-839dfba",
268+
"@angular/material-moment-adapter": "20.1.0-next.0+sha-839dfba",
269+
"@angular/material-luxon-adapter": "20.1.0-next.0+sha-839dfba",
270+
"@angular/material-date-fns-adapter": "20.1.0-next.0+sha-839dfba"
271271
},
272272
"devDependencies": {
273273
"@angular/cdk": "workspace:*",

0 commit comments

Comments
 (0)