mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
Fix linting
This commit is contained in:
parent
5780bf85e7
commit
98cc4612fc
@ -21,5 +21,7 @@ apps/web/.github
|
|||||||
apps/web/src/404/bootstrap.min.css
|
apps/web/src/404/bootstrap.min.css
|
||||||
apps/web/src/locales
|
apps/web/src/locales
|
||||||
|
|
||||||
|
libs/.github
|
||||||
|
|
||||||
# Github Workflows
|
# Github Workflows
|
||||||
.github/workflows
|
.github/workflows
|
||||||
|
@ -10,8 +10,7 @@ describe("Button", () => {
|
|||||||
let buttonDebugElement: DebugElement;
|
let buttonDebugElement: DebugElement;
|
||||||
let linkDebugElement: DebugElement;
|
let linkDebugElement: DebugElement;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [ButtonModule],
|
imports: [ButtonModule],
|
||||||
declarations: [TestApp],
|
declarations: [TestApp],
|
||||||
@ -22,8 +21,7 @@ describe("Button", () => {
|
|||||||
testAppComponent = fixture.debugElement.componentInstance;
|
testAppComponent = fixture.debugElement.componentInstance;
|
||||||
buttonDebugElement = fixture.debugElement.query(By.css("button"));
|
buttonDebugElement = fixture.debugElement.query(By.css("button"));
|
||||||
linkDebugElement = fixture.debugElement.query(By.css("a"));
|
linkDebugElement = fixture.debugElement.query(By.css("a"));
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it("should apply classes based on type", () => {
|
it("should apply classes based on type", () => {
|
||||||
testAppComponent.buttonType = "primary";
|
testAppComponent.buttonType = "primary";
|
||||||
|
@ -16,8 +16,7 @@ describe("Menu", () => {
|
|||||||
// The overlay is created outside the root debugElement, so we need to query its parent
|
// The overlay is created outside the root debugElement, so we need to query its parent
|
||||||
const getBitMenuPanel = () => document.querySelector(".bit-menu-panel");
|
const getBitMenuPanel = () => document.querySelector(".bit-menu-panel");
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [MenuModule],
|
imports: [MenuModule],
|
||||||
declarations: [TestApp],
|
declarations: [TestApp],
|
||||||
@ -27,8 +26,7 @@ describe("Menu", () => {
|
|||||||
|
|
||||||
fixture = TestBed.createComponent(TestApp);
|
fixture = TestBed.createComponent(TestApp);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it("should open when the trigger is clicked", async () => {
|
it("should open when the trigger is clicked", async () => {
|
||||||
const buttonDebugElement = fixture.debugElement.query(By.directive(MenuTriggerForDirective));
|
const buttonDebugElement = fixture.debugElement.query(By.directive(MenuTriggerForDirective));
|
||||||
|
Loading…
Reference in New Issue
Block a user