Skip to content

Commit

Permalink
Minor cleanup: s/toThrowError/toThrow, improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dddlr committed Sep 20, 2023
1 parent bdca2e0 commit 8e057a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,6 @@ describe('css map advanced functionality (at rules, selectors object)', () => {
},
});
`);
}).toThrowError(ErrorMessages.SELECTORS_BLOCK_VALUE_TYPE);
}).toThrow(ErrorMessages.SELECTORS_BLOCK_VALUE_TYPE);
});
});
3 changes: 2 additions & 1 deletion packages/babel-plugin/src/css-map/process-selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export const mergeExtendedSelectorsIntoProperties = (
}

for (const property of [...variantStyles.properties, ...extendedSelectors]) {
// Covered by ESLint rule already
// Covered by @compiled/eslint-plugin rule already,
// this is just to make the type checker happy
errorIfNotValidObjectProperty(property, meta);
// Extract property.key into its own variable so we can do
// type checking on it
Expand Down

0 comments on commit 8e057a5

Please sign in to comment.