ng-mocks 14.14.0 → 14.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example.spec.ts +3 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/example.spec.ts
CHANGED
|
@@ -17,8 +17,7 @@ import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';
|
|
|
17
17
|
|
|
18
18
|
@Pipe({
|
|
19
19
|
name: 'translate',
|
|
20
|
-
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
21
|
-
false,
|
|
20
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]: false,
|
|
22
21
|
})
|
|
23
22
|
class TranslatePipe implements PipeTransform {
|
|
24
23
|
public transform(value: string): string {
|
|
@@ -31,8 +30,7 @@ class TranslatePipe implements PipeTransform {
|
|
|
31
30
|
// Our main component that we want to test.
|
|
32
31
|
@Component({
|
|
33
32
|
selector: 'app-root',
|
|
34
|
-
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
35
|
-
false,
|
|
33
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]: false,
|
|
36
34
|
template: `
|
|
37
35
|
<app-header
|
|
38
36
|
[showLogo]="true"
|
|
@@ -64,8 +62,7 @@ class AppComponent {
|
|
|
64
62
|
// component with a respect of its inputs, outputs and ContentChild.
|
|
65
63
|
@Component({
|
|
66
64
|
selector: 'app-header',
|
|
67
|
-
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
68
|
-
false,
|
|
65
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]: false,
|
|
69
66
|
template: `
|
|
70
67
|
<a (click)="logo.emit()">
|
|
71
68
|
<img src="assets/logo.png" *ngIf="showLogo" />
|