Skip to content

Commit 5de68c4

Browse files
author
Olga Kopylova
committed
MAGETWO-38010: Warnings During Running Static View Files Deployment Command
- added a test case for multi-line comment
1 parent 0fbc4a2 commit 5de68c4

File tree

1 file changed

+9
-1
lines changed
  • lib/internal/Magento/Framework/Less/Test/Unit/PreProcessor/Instruction

1 file changed

+9
-1
lines changed

lib/internal/Magento/Framework/Less/Test/Unit/PreProcessor/Instruction/ImportTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,21 @@ public function processDataProvider()
9191
'Magento_Module/something.css',
9292
"@import (type) 'Magento_Module/something.css';",
9393
],
94-
'with commented lines' => [
94+
'with single line comment' => [
9595
'@import (type) "some/file.css" media;' . PHP_EOL
9696
. '// @import (type) "unnecessary/file.css" media;',
9797
'some/file.css',
9898
'some/file.css',
9999
"@import (type) 'some/file.css' media;" . PHP_EOL,
100100
],
101+
'with multi line comment' => [
102+
'@import (type) "some/file.css" media;' . PHP_EOL
103+
. '/* @import (type) "unnecessary/file.css" media;' . PHP_EOL
104+
. '@import (type) "another/unnecessary/file.css" media; */',
105+
'some/file.css',
106+
'some/file.css',
107+
"@import (type) 'some/file.css' media;" . PHP_EOL,
108+
],
101109
];
102110
}
103111

0 commit comments

Comments
 (0)