22
33> Lightweight utility functions to test Angular components.
44
5- [ ![ Styled with prettier ] [ prettier -badge]] [ prettier ]
5+ [ ![ Build status ] [ build -badge]] [ build ]
66[ ![ npm] [ npm-badge ]] [ npm ]
7+ [ ![ Styled with prettier] [ prettier-badge ]] [ prettier ]
78[ ![ MIT License] [ license-badge ]] [ license ]
89[ ![ Code of Conduct] [ coc-badge ]] [ coc ]
910
@@ -112,7 +113,7 @@ Calls the the Angular `TestBed.get` function.
112113
113114You can find some examples in the [ tests folder] ( https://github.com/timdeschryver/ngx-testing-library/tree/master/projects/ngx-testing-library/tests ) .
114115
115- Here is how "default" specifications are written with ` ngx-testing-library ` .
116+ Here is how the "default" specifications can be written with ` ngx-testing-library ` .
116117
117118Before:
118119
@@ -133,7 +134,7 @@ describe('AppComponent', () => {
133134 expect (app .title ).toEqual (' my-awesome-app' );
134135 }));
135136
136- it (' should render title in a h1 tag' , async (() => {
137+ it (` should render title in a h1 tag ` , async (() => {
137138 const fixture = TestBed .createComponent (AppComponent );
138139 fixture .detectChanges ();
139140 const compiled = fixture .debugElement .nativeElement ;
@@ -145,8 +146,8 @@ describe('AppComponent', () => {
145146After:
146147
147148``` ts
148- import { AppComponent } from ' ./app.component' ;
149149import { createComponent } from ' ngx-testing-library' ;
150+ import { AppComponent } from ' ./app.component' ;
150151
151152it (` should have as title 'my-awesome-app' ` , async () => {
152153 const { getByText } = await createComponent (' <app-root></app-root>' , {
@@ -172,6 +173,8 @@ it(`should render title in a h1 tag`, async () => {
172173
173174MIT
174175
176+ [ build-badge ] : https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master.svg?style=shield
177+ [ build ] : https://circleci.com/gh/timdeschryver/ngx-testing-library/tree/master
175178[ prettier-badge ] : https://img.shields.io/badge/styled_with-prettier-ff69b4.svg
176179[ prettier ] : https://github.com/prettier/prettier
177180[ npm-badge ] : https://img.shields.io/npm/v/ngx-testing-library.svg
0 commit comments