This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69b58ba
commit 64c3308
Showing
5 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
9 changes: 8 additions & 1 deletion
9
...kspace/apps/component-testing/src/app/components/simple-input/simple-input.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<div class="abc-checkbox abc-checkbox-danger"> | ||
<input type="checkbox" id="simpleInput" [ngModel]="value" /> | ||
<label for="simpleInput">Set value</label> | ||
</div> | ||
<p> | ||
simple-input works! | ||
📃“<a | ||
href="https://medium.com/@juliapassynkova/unit-testing-of-simple-input-box-fdbba93f3d2e" | ||
>Unit testing of simple input box</a | ||
>” by Julia Passynkova | ||
</p> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
input[type='checkbox'] { | ||
border: solid 4px #000; | ||
display: inline-block; | ||
width: 32px; | ||
height: 32px; | ||
} |
This file contains 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
12 changes: 4 additions & 8 deletions
12
...orkspace/apps/component-testing/src/app/components/simple-input/simple-input.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nx-workspace-simple-input', | ||
templateUrl: './simple-input.component.html', | ||
styleUrls: ['./simple-input.component.scss'] | ||
}) | ||
export class SimpleInputComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
export class SimpleInputComponent { | ||
@Input() value: boolean; | ||
constructor() {} | ||
} |