1- # ngx- testing-library
1+ # testing-library
22
33> Lightweight utility functions to test Angular components.
44
2525
2626## Installation
2727
28- Install ` ngx- testing-library` from [ npm] and add it your ` devDependencies ` :
28+ Install ` @angular-extensions/ testing-library` from [ npm] and add it your ` devDependencies ` :
2929
30- ` npm install ngx- testing-library --save-dev `
30+ ` npm install @angular-extensions/ testing-library --save-dev `
3131
3232## Why
3333
@@ -36,7 +36,7 @@ Install `ngx-testing-library` from [npm] and add it your `devDependencies`:
3636
3737## What
3838
39- ngx- testing-library is an Angular adapter around [ dom-testing-library] [ dom-testing-library ] ,
39+ ` @angular-extensions/ testing-library` is an Angular adapter around [ dom-testing-library] [ dom-testing-library ] ,
4040which provides lightweight utility functions to test UI components. Your tests will work with actual DOM nodes.
4141
4242## How
@@ -50,15 +50,15 @@ This method can be used in two ways:
5050Based on a template:
5151
5252``` ts
53- import { createComponent } from ' ngx- testing-library' ;
53+ import { createComponent } from ' @angular-extensions/ testing-library' ;
5454
5555createComponent (' <my-component [prop]="1"></my-component>' , options );
5656```
5757
5858Based on a component type:
5959
6060``` ts
61- import { createComponent } from ' ngx- testing-library' ;
61+ import { createComponent } from ' @angular-extensions/ testing-library' ;
6262
6363createComponent (
6464 {
@@ -117,9 +117,9 @@ Calls the the Angular `TestBed.get` function.
117117
118118## Usage
119119
120- You can find some examples in the [ tests folder] ( https://github.com/timdeschryver/ngx- testing-library/tree/master/projects/ngx- testing-library/tests ) .
120+ You can find some examples in the [ tests folder] ( https://github.com/angular-extensions/ testing-library/tree/master/projects/testing-library/tests ) .
121121
122- Here is how the "default" specifications can be written with ` ngx- testing-library` .
122+ Here is how the "default" specifications can be written with ` @angular-extensions/ testing-library` .
123123
124124Before:
125125
@@ -152,7 +152,7 @@ describe('AppComponent', () => {
152152After:
153153
154154``` ts
155- import { createComponent } from ' ngx- testing-library' ;
155+ import { createComponent } from ' @angular-extensions/ testing-library' ;
156156import { AppComponent } from ' ./app.component' ;
157157
158158it (` should have as title 'my-awesome-app' ` , async () => {
@@ -179,16 +179,16 @@ it(`should render title in a h1 tag`, async () => {
179179
180180MIT
181181
182- [ build-badge ] : https://circleci.com/gh/timdeschryver/ngx- testing-library/tree/master.svg?style=shield
183- [ build ] : https://circleci.com/gh/timdeschryver/ngx- testing-library/tree/master
182+ [ build-badge ] : https://circleci.com/gh/angular-extensions/ testing-library/tree/master.svg?style=shield
183+ [ build ] : https://circleci.com/gh/angular-extensions/ testing-library/tree/master
184184[ sr-badge ] : https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
185185[ sr ] : https://github.com/semantic-release/semantic-release
186186[ prettier-badge ] : https://img.shields.io/badge/styled_with-prettier-ff69b4.svg
187187[ prettier ] : https://github.com/prettier/prettier
188- [ npm-badge ] : https://img.shields.io/npm/v/ngx- testing-library.svg
189- [ npm ] : https://www.npmjs.com/package/ngx- testing-library
190- [ license-badge ] : https://img.shields.io/npm/l/ngx- testing-library.svg?style=flat-square
191- [ license ] : https://github.com/timdeschryver/ngx- testing-library/blob/master/LICENSE
188+ [ npm-badge ] : https://img.shields.io/npm/v/testing-library.svg
189+ [ npm ] : https://www.npmjs.com/package/testing-library
190+ [ license-badge ] : https://img.shields.io/npm/l/testing-library.svg?style=flat-square
191+ [ license ] : https://github.com/angular-extensions/ testing-library/blob/master/LICENSE
192192[ coc-badge ] : https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
193- [ coc ] : https://github.com/timdeschryver/ngx- testing-library/blob/master/CODE_OF_CONDUCT.md
193+ [ coc ] : https://github.com/angular-extensions/ testing-library/blob/master/CODE_OF_CONDUCT.md
194194[ dom-testing-library ] : https://github.com/kentcdodds/dom-testing-library
0 commit comments