mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(docs-infra): fix typos in app component (and its tests) (#43439)
fix some minor typos found in the app.component.ts and app.component.spec.ts files PR Close #43439
This commit is contained in:
committed by
Andrew Kushnir
parent
1986407ab5
commit
4ef9d247b6
@@ -967,7 +967,7 @@ describe('AppComponent', () => {
|
||||
jasmine.clock().tick(1); // triggers the HTTP response for the document
|
||||
const toolbar = fixture.debugElement.query(By.css('.app-toolbar'));
|
||||
|
||||
// Initially, `isTransitoning` is true.
|
||||
// Initially, `isTransitioning` is true.
|
||||
expect(component.isTransitioning).toBe(true);
|
||||
expect(toolbar.classes.transitioning).toBe(true);
|
||||
|
||||
@@ -976,7 +976,7 @@ describe('AppComponent', () => {
|
||||
expect(component.isTransitioning).toBe(false);
|
||||
expect(toolbar.classes.transitioning).toBeFalsy();
|
||||
|
||||
// While a document is being rendered, `isTransitoning` is set to true.
|
||||
// While a document is being rendered, `isTransitioning` is set to true.
|
||||
triggerDocViewerEvent('docReady');
|
||||
fixture.detectChanges();
|
||||
expect(component.isTransitioning).toBe(true);
|
||||
|
||||
@@ -50,7 +50,7 @@ export class AppComponent implements OnInit {
|
||||
*
|
||||
* * `page-...`: computed from the current document id (e.g. events, guide-security, tutorial-toh-pt2)
|
||||
* * `folder-...`: computed from the top level folder for an id (e.g. guide, tutorial, etc)
|
||||
* * `view-...`: computef from the navigation view (e.g. SideNav, TopBar, etc)
|
||||
* * `view-...`: computed from the navigation view (e.g. SideNav, TopBar, etc)
|
||||
*/
|
||||
@HostBinding('class')
|
||||
hostClasses = '';
|
||||
@@ -160,7 +160,7 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
this.docVersions = [...computedVersions, ...versions];
|
||||
|
||||
// Find the current version - eithers title matches the current deployment mode
|
||||
// Find the current version - either title matches the current deployment mode
|
||||
// or its title matches the major version of the current version info
|
||||
this.currentDocVersion = this.docVersions.find(version =>
|
||||
version.title === this.deployment.mode || version.title === `v${versionInfo.major}`) as NavigationNode;
|
||||
|
||||
Reference in New Issue
Block a user