Skip to content

Commit 3656360

Browse files
chriseppsteinamiller-gh
authored andcommitted
fix: Fix broken test now that getGroups returns everything.
1 parent f03bf06 commit 3656360

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/css-blocks/test/opticss-test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export class TemplateAnalysisTests {
4646

4747
private useStates(element: ElementAnalysis<whatever, whatever, whatever>, stateContainer: BlockClass) {
4848
for (let group of stateContainer.getGroups()) {
49-
element.addDynamicGroup(stateContainer, group, null);
49+
if (group.hasResolvedStates()) {
50+
element.addDynamicGroup(stateContainer, group, null);
51+
}
5052
}
5153
for (let state of stateContainer.booleanStates()) {
5254
element.addStaticState(stateContainer, state);

0 commit comments

Comments
 (0)