-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Showing
143 changed files
with
8,714 additions
and
8,749 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ declare global { | |
} | ||
} | ||
|
||
|
||
Cypress.Commands.add('mount', mount); | ||
Cypress.Commands.add('mount', mount) |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/button-output.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,9 +1,9 @@ | ||
import { Component, EventEmitter, Output } from "@angular/core"; | ||
import { Component, EventEmitter, Output } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-button-output', | ||
template: `<button (click)="clicked.emit(true)">Click Me</button>` | ||
template: `<button (click)="clicked.emit(true)">Click Me</button>`, | ||
}) | ||
export class ButtonOutputComponent { | ||
@Output() clicked: EventEmitter<boolean> = new EventEmitter() | ||
} | ||
} |
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
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/child.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
12 changes: 6 additions & 6 deletions
12
system-tests/project-fixtures/angular/src/app/components/counter.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,18 +1,18 @@ | ||
import { Component } from "@angular/core"; | ||
import { CounterService } from "./counter.service"; | ||
import { Component } from '@angular/core' | ||
import { CounterService } from './counter.service' | ||
|
||
@Component({ | ||
selector: "counter-component", | ||
selector: 'counter-component', | ||
template: `<button (click)="increment()"> | ||
Increment: {{ count$ | async }} | ||
</button>`, | ||
}) | ||
export class CounterComponent { | ||
count$ = this.counterService.count$; | ||
|
||
constructor(private counterService: CounterService) {} | ||
constructor (private counterService: CounterService) {} | ||
|
||
increment() { | ||
this.counterService.increment(); | ||
increment () { | ||
this.counterService.increment() | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
system-tests/project-fixtures/angular/src/app/components/counter.service.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,12 +1,12 @@ | ||
import { Injectable } from "@angular/core"; | ||
import { BehaviorSubject } from "rxjs"; | ||
import { Injectable } from '@angular/core' | ||
import { BehaviorSubject } from 'rxjs' | ||
|
||
@Injectable() | ||
export class CounterService { | ||
private count = new BehaviorSubject<number>(0); | ||
public count$ = this.count.asObservable(); | ||
|
||
public increment() { | ||
this.count.next(this.count.value + 1); | ||
public increment () { | ||
this.count.next(this.count.value + 1) | ||
} | ||
} |
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
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/logo.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,7 +1,7 @@ | ||
import { Component } from "@angular/core"; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-logo', | ||
template: `<img src="assets/cypress-logo-light.png" />` | ||
template: `<img src="assets/cypress-logo-light.png" />`, | ||
}) | ||
export class LogoComponent {} | ||
export class LogoComponent {} |
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
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/parent-providers.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,8 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
template: ` | ||
<app-child-providers></app-child-providers> | ||
<app-another-child></app-another-child>` | ||
<app-another-child></app-another-child>`, | ||
}) | ||
export class ParentProvidersComponent {} | ||
export class ParentProvidersComponent {} |
6 changes: 3 additions & 3 deletions
6
system-tests/project-fixtures/angular/src/app/components/parent.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,9 +1,9 @@ | ||
import { Component } from "@angular/core"; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: "parent-component", | ||
selector: 'parent-component', | ||
template: '<child-component [msg]="msg"></child-component>', | ||
}) | ||
export class ParentComponent { | ||
msg = "Hello World from ParentComponent"; | ||
msg = 'Hello World from ParentComponent'; | ||
} |
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
system-tests/project-fixtures/next/cypress/support/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,4 +1,4 @@ | ||
// Importing global styles fails with Next.js due to restrictions on style imports. | ||
// We modify the Next Webpack config to allow importing global styles. | ||
import '../../styles/globals.css' | ||
import '../../styles/Home.module.css' | ||
import '../../styles/Home.module.css' |
Oops, something went wrong.