-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(style): refactor code in compiler/style/css-imports (#3433)
This refactors and documents some code in the module responsible for parsing css imports (src/compiler/style/css-imports.ts) and adds some tests to increase coverage. This commit also makes some edits to the general 'style' spec (`src/compiler/style/test/style.spec.ts`) which has been skipped for a while. The tests in this suite were 'end-to-end' unit tests of the style handling capabilities of the compiler, which we'd like to have again, but we can't reconstitute them until we get unit testing of the compiler stood back up again. So for now this ports a few tests out of `style.spec.ts` and into the relevant specfiles (like `css-imports.spec.ts`) and deletes a few tests from `style.spec.ts` which are no longer accurate (like testing for escaping certain characters).
- Loading branch information
1 parent
6effbc9
commit 4ad33a7
Showing
9 changed files
with
322 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.