Skip to content

Commit 221714b

Browse files
authoredApr 21, 2020
test: import nested (#342)
1 parent 443bd5a commit 221714b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
 

‎test/fixtures/less/folder/nested.less

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nested-import {
2+
background: coral;
3+
}

‎test/fixtures/less/import-nested.less

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.top-import {
2+
background: red;
3+
}
4+
5+
@import "folder/nested.less";

‎test/index.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ test('should resolve all imports', async () => {
3737
await compileAndCompare('import');
3838
});
3939

40+
test('should resolve nested imports', async () => {
41+
await compileAndCompare('import-nested');
42+
});
43+
4044
test('should fail when passed incorrect configuration', async () => {
4145
await expect(
4246
compileAndCompare('basic', {

0 commit comments

Comments
 (0)
Please sign in to comment.