Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-livefront committed Jan 10, 2025
1 parent c9de8ab commit 2339132
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { By } from "@angular/platform-browser";

import { VaultCarouselSlideComponent } from "../carousel-slide/carousel-slide.component";

Expand Down Expand Up @@ -53,15 +52,6 @@ describe("VaultCarouselButtonComponent", () => {
it("adds button to tab index", () => {
expect(component.button.nativeElement.getAttribute("tabindex")).toBe("0");
});

it("shows the active icon", () => {
expect(
fixture.debugElement.query(By.css('[data-testid="active-carousel-icon"]')),
).not.toBeNull();
expect(
fixture.debugElement.query(By.css('[data-testid="inactive-carousel-icon"]')),
).toBeNull();
});
});

describe("is not active", () => {
Expand All @@ -77,12 +67,5 @@ describe("VaultCarouselButtonComponent", () => {
it("removes button from tab index", () => {
expect(component.button.nativeElement.getAttribute("tabindex")).toBe("-1");
});

it("shows the inactive icon", () => {
expect(
fixture.debugElement.query(By.css('[data-testid="inactive-carousel-icon"]')),
).not.toBeNull();
expect(fixture.debugElement.query(By.css('[data-testid="active-carousel-icon"]'))).toBeNull();
});
});
});

0 comments on commit 2339132

Please sign in to comment.