Skip to content

Commit 221714b

Browse files
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
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nested-import {
2+
background: coral;
3+
}
Lines changed: 5 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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)