| type | description | release type |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component({ | |
| selector: 'person', | |
| template: ` | |
| <div [formGroup]="form"> | |
| <div> | |
| <label>Name</label> | |
| <input type="text" formControlName="name" /> | |
| </div> | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "NgRx Action": { | |
| "scope": "typescript", | |
| "prefix": "ca", | |
| "description": "Creates an NgRx Action", | |
| "body": ["export const ${1:action} = createAction('[${2:Source}] ${3:Event}');"] | |
| }, | |
| "NgRx Action with props": { | |
| "scope": "typescript", | |
| "prefix": "cap", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Effect() | |
| online = merge( | |
| of(navigator.onLine), | |
| fromEvent(window, 'online').pipe(mapTo(true)), | |
| fromEvent(window, 'offline').pipe(mapTo(false)), | |
| ).pipe(map(online => online ? new IsOnline() : new IsOffline())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - release: | |
| requires: | |
| - test-app | |
| filters: | |
| branches: | |
| only: master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| ... | |
| "release": { | |
| "pkgRoot": "dist/ngx-testing-library" | |
| }, | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| job_defaults: &job_defaults | |
| docker: | |
| - image: circleci/node:latest | |
| working_directory: ~/project/repo | |
| cache_key: &cache_key ngx-testing-library-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }} | |
| dist_key: &dist_key ngx-testing-library-dist-{{ .Revision }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: 'circleci/node:latest' | |
| steps: | |
| - checkout | |
| - run: | |
| name: install | |
| command: npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test('getCartSummary only shows products with an amount', () => { | |
| const cartItems: CartItem[] = [ | |
| { | |
| amount: 1, | |
| product: createProduct({ sku: 'foo' }), | |
| }, | |
| { | |
| amount: 0, | |
| product: createProduct({ sku: 'bar' }), | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const testCases = [ | |
| { | |
| name: 'getProducts', | |
| selector: getProducts, | |
| state: createCatalogState(), | |
| }, | |
| { | |
| name: 'getProductSkus', | |
| selector: getProductSkus, | |
| state: createCatalogState(), |