Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the test fixtures for the RxJS style imports #339

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/fixtures/resolve-npm-subpackages.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "modularized-css/foo";
@import "modularized-css/foo/boo/boomod.css";
2 changes: 2 additions & 0 deletions test/fixtures/resolve-npm-subpackages.expected.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.i-pity-the-foo{}
.i-pity-the-boo{}
1 change: 1 addition & 0 deletions test/node_modules/modularized-css/foo/boo/boomod.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/node_modules/modularized-css/foo/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ test(
{ from: "test/fixtures/imports/foo.css" }
)

test(
"should be able to consume npm sub packages",
checkFixture,
"resolve-npm-subpackages",
{ path: null },
{ from: "test/fixtures/imports/foo.css" }
)

test(
"should be able to consume modules from custom modules directories",
checkFixture,
Expand Down