diff --git a/lib/__fixtures__/curriculum-helper-css.ts b/lib/__fixtures__/curriculum-helper-css.ts index 803a015..fae9eb6 100644 --- a/lib/__fixtures__/curriculum-helper-css.ts +++ b/lib/__fixtures__/curriculum-helper-css.ts @@ -302,6 +302,9 @@ body { ); } } +.card:hover { + background-color: khaki; +} `; const testValues = { diff --git a/lib/__tests__/css-helper.test.ts b/lib/__tests__/css-helper.test.ts index c2b9bbb..41ed138 100644 --- a/lib/__tests__/css-helper.test.ts +++ b/lib/__tests__/css-helper.test.ts @@ -69,6 +69,11 @@ describe("css-help", () => { "var(--building-color4)" ); }); + it("should return value of pseudo class selector", () => { + expect( + t.getStyle(".card:hover")?.getPropertyValue("background-color") + ).toEqual("khaki"); + }); }); describe("getCSSRules", () => { it("should return a CSSRules array of length 1", () => {