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:
dario-piotrowicz
2021-09-13 22:38:50 +01:00
committed by Andrew Kushnir
parent 1986407ab5
commit 4ef9d247b6
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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;