mirror of
https://github.com/bitwarden/browser
synced 2026-01-05 01:53:55 +00:00
[PM-28231] Enable component-class-suffix (#17384)
* Enable component-class-suffix * Rename file
This commit is contained in:
@@ -5,19 +5,19 @@ import { By } from "@angular/platform-browser";
|
||||
import { ButtonModule } from "./index";
|
||||
|
||||
describe("Button", () => {
|
||||
let fixture: ComponentFixture<TestApp>;
|
||||
let testAppComponent: TestApp;
|
||||
let fixture: ComponentFixture<TestAppComponent>;
|
||||
let testAppComponent: TestAppComponent;
|
||||
let buttonDebugElement: DebugElement;
|
||||
let disabledButtonDebugElement: DebugElement;
|
||||
let linkDebugElement: DebugElement;
|
||||
|
||||
beforeEach(async () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TestApp],
|
||||
imports: [TestAppComponent],
|
||||
});
|
||||
|
||||
await TestBed.compileComponents();
|
||||
fixture = TestBed.createComponent(TestApp);
|
||||
fixture = TestBed.createComponent(TestAppComponent);
|
||||
testAppComponent = fixture.debugElement.componentInstance;
|
||||
buttonDebugElement = fixture.debugElement.query(By.css("button"));
|
||||
disabledButtonDebugElement = fixture.debugElement.query(By.css("button#disabled"));
|
||||
@@ -86,7 +86,7 @@ describe("Button", () => {
|
||||
`,
|
||||
imports: [ButtonModule],
|
||||
})
|
||||
class TestApp {
|
||||
class TestAppComponent {
|
||||
buttonType?: string;
|
||||
block?: boolean;
|
||||
disabled?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user