Skip to content

Commit

Permalink
test: import nested (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito authored Apr 21, 2020
1 parent 443bd5a commit 221714b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/less/folder/nested.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.nested-import {
background: coral;
}
5 changes: 5 additions & 0 deletions test/fixtures/less/import-nested.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.top-import {
background: red;
}

@import "folder/nested.less";
4 changes: 4 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ test('should resolve all imports', async () => {
await compileAndCompare('import');
});

test('should resolve nested imports', async () => {
await compileAndCompare('import-nested');
});

test('should fail when passed incorrect configuration', async () => {
await expect(
compileAndCompare('basic', {
Expand Down

0 comments on commit 221714b

Please sign in to comment.