1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

Fix linting

This commit is contained in:
Hinton 2022-06-03 18:05:33 +02:00
parent 5780bf85e7
commit 98cc4612fc
3 changed files with 22 additions and 24 deletions

View File

@ -21,5 +21,7 @@ apps/web/.github
apps/web/src/404/bootstrap.min.css
apps/web/src/locales
libs/.github
# Github Workflows
.github/workflows

View File

@ -10,20 +10,18 @@ describe("Button", () => {
let buttonDebugElement: DebugElement;
let linkDebugElement: DebugElement;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ButtonModule],
declarations: [TestApp],
});
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ButtonModule],
declarations: [TestApp],
});
TestBed.compileComponents();
fixture = TestBed.createComponent(TestApp);
testAppComponent = fixture.debugElement.componentInstance;
buttonDebugElement = fixture.debugElement.query(By.css("button"));
linkDebugElement = fixture.debugElement.query(By.css("a"));
})
);
TestBed.compileComponents();
fixture = TestBed.createComponent(TestApp);
testAppComponent = fixture.debugElement.componentInstance;
buttonDebugElement = fixture.debugElement.query(By.css("button"));
linkDebugElement = fixture.debugElement.query(By.css("a"));
}));
it("should apply classes based on type", () => {
testAppComponent.buttonType = "primary";

View File

@ -16,19 +16,17 @@ describe("Menu", () => {
// The overlay is created outside the root debugElement, so we need to query its parent
const getBitMenuPanel = () => document.querySelector(".bit-menu-panel");
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MenuModule],
declarations: [TestApp],
});
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MenuModule],
declarations: [TestApp],
});
TestBed.compileComponents();
TestBed.compileComponents();
fixture = TestBed.createComponent(TestApp);
fixture.detectChanges();
})
);
fixture = TestBed.createComponent(TestApp);
fixture.detectChanges();
}));
it("should open when the trigger is clicked", async () => {
const buttonDebugElement = fixture.debugElement.query(By.directive(MenuTriggerForDirective));