Skip to content

Commit b74bf38

Browse files
authored
fix(standalone-apis): correct typos in testing section (#5)
1 parent 4055bd4 commit b74bf38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standalone-apis/testing-a-standalone-component-using-the-angular-testbed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ No need to call `TestBed.configureTestingModule` before creating a component fix
2929

3030
## Creating a test host component for a standalone component
3131

32-
To interact with a standalone component throuhg its component API, we add it to the Angular testing modules `imports` array:
32+
To interact with a standalone component through its component API, we add it to the Angular testing module's `imports` array:
3333

3434
```ts
3535
import { Component } from "@angular/core";
@@ -63,7 +63,7 @@ describe(DailyForecastComponent.name, () => {
6363
hostFixture.detectChanges();
6464

6565
const temperatureFahrenheit = fixture.debugElement.query(By.css("[data-testid=temperature-fahrenheit]"));
66-
expect(temperatureFahrenheit.nativeElement.textContent).toBe("68°");
66+
expect(temperatureFahrenheit.nativeElement.textContent).toBe("68 °F");
6767
});
6868
});
6969
```

0 commit comments

Comments
 (0)