-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): cherry pick updates from dev (#10694)
**Related Issue:** #10482 ## Summary - **build: update browserslist db (#10629)** - **docs(angular): update example to use custom elements directly (#10686)** - **build(deps): update dependency @floating-ui/dom to v1.6.12 (#10681)** - **build(deps): update dependency @cspell/eslint-plugin to v8.15.6 (#10680)** - **build(deps): update dependency chokidar to v4 (#10643)** --------- Co-authored-by: Calcite Admin <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d5f19d1
commit 7ccd607
Showing
11 changed files
with
23,280 additions
and
16,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,5 +83,8 @@ | |
} | ||
} | ||
} | ||
}, | ||
"cli": { | ||
"analytics": false | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 23 additions & 16 deletions
39
examples/components/angular/src/app/app.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,38 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { CalciteComponentsModule } from '@esri/calcite-components-angular'; | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { | ||
ComponentFixture, | ||
ComponentFixtureAutoDetect, | ||
TestBed, | ||
} from '@angular/core/testing'; | ||
import { AppComponent } from './app.component'; | ||
|
||
let app: AppComponent; | ||
let fixture: ComponentFixture<AppComponent>; | ||
|
||
describe('AppComponent', () => { | ||
beforeEach(() => | ||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [CalciteComponentsModule], | ||
declarations: [AppComponent], | ||
}).compileComponents(), | ||
); | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
providers: [{ provide: ComponentFixtureAutoDetect, useValue: true }], | ||
imports: [AppComponent], | ||
}); | ||
|
||
fixture = TestBed.createComponent(AppComponent); | ||
app = fixture.componentInstance; | ||
}); | ||
|
||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
|
||
it(`should have as title 'calcite-components-angular-example'`, () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
it(`should have 'calcite-components-angular-example' as title`, () => { | ||
expect(app.title).toEqual('calcite-components-angular-example'); | ||
}); | ||
|
||
it('should render calcite-loader with label', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
fixture.detectChanges(); | ||
const compiled = fixture.nativeElement as HTMLElement; | ||
expect(compiled.querySelector('calcite-loader')?.label).toBe('Loading...'); | ||
const loaderElement: HTMLCalciteLoaderElement = | ||
fixture.nativeElement.querySelector('calcite-loader')!; | ||
|
||
expect(loaderElement?.label).toBe('Loading...'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.