forked from NationalBankBelgium/ngx-form-errors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(demo): reformat demo code thanks to
prettier
- Loading branch information
1 parent
e1d941b
commit 157eb76
Showing
13 changed files
with
387 additions
and
421 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
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,41 +1,37 @@ | ||
import { ComponentFixture, TestBed, waitForAsync} from "@angular/core/testing"; | ||
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing"; | ||
import { AppComponent } from "./app.component"; | ||
import { RouterTestingModule } from "@angular/router/testing"; | ||
import { NO_ERRORS_SCHEMA } from "@angular/core"; | ||
|
||
describe("AppComponent", () => { | ||
let fixture: ComponentFixture<AppComponent>; | ||
let component: AppComponent; | ||
let fixture: ComponentFixture<AppComponent>; | ||
let component: AppComponent; | ||
|
||
beforeEach(waitForAsync(() => { | ||
return TestBed.configureTestingModule({ | ||
imports: [ | ||
RouterTestingModule | ||
], | ||
declarations: [ | ||
AppComponent | ||
], | ||
schemas: [ NO_ERRORS_SCHEMA ] | ||
}).compileComponents(); | ||
})); | ||
beforeEach(waitForAsync(() => { | ||
return TestBed.configureTestingModule({ | ||
imports: [RouterTestingModule], | ||
declarations: [AppComponent], | ||
schemas: [NO_ERRORS_SCHEMA] | ||
}).compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(AppComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
beforeEach(() => { | ||
fixture = TestBed.createComponent(AppComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it("should create the app", () => { | ||
expect(fixture).toBeDefined(); | ||
expect(component).toBeDefined(); | ||
}); | ||
it("should create the app", () => { | ||
expect(fixture).toBeDefined(); | ||
expect(component).toBeDefined(); | ||
}); | ||
|
||
it("should render title in a h1 tag", () => { | ||
fixture.detectChanges(); | ||
const compiled: HTMLElement = fixture.debugElement.nativeElement; | ||
const h1Element = compiled.querySelector("h1"); | ||
expect(h1Element).toBeTruthy(); | ||
// tslint:disable-next-line:no-non-null-assertion | ||
expect(h1Element!.textContent).toContain("Ngx-Form-Errors"); | ||
}); | ||
it("should render title in a h1 tag", () => { | ||
fixture.detectChanges(); | ||
const compiled: HTMLElement = fixture.debugElement.nativeElement; | ||
const h1Element = compiled.querySelector("h1"); | ||
expect(h1Element).toBeTruthy(); | ||
// tslint:disable-next-line:no-non-null-assertion | ||
expect(h1Element!.textContent).toContain("Ngx-Form-Errors"); | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,5 +39,4 @@ export class CardComponent { | |
break; | ||
} | ||
} | ||
|
||
} |
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
demo-app/ng12/src/app/components/language-selector/language-selector.theme.scss
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
demo-app/ng12/src/app/components/navigation/navigation.theme.scss
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
Oops, something went wrong.