Skip to content

Commit

Permalink
AC-940: Create unit test for Magento2\Less\BracesFormattingSniff check
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Aug 30, 2021
1 parent 05c75c0 commit a4538fe
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Magento2/Tests/Less/BracesFormattingUnitTest.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// /**
// * Copyright © Magento, Inc. All rights reserved.
// * See COPYING.txt for license details.
// */

.my{
some: 'stuff';
}
.foo {
anything: 'else';
}

.bar {
#bar .baz();

}
28 changes: 28 additions & 0 deletions Magento2/Tests/Less/BracesFormattingUnitTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Copyright © Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento2\Tests\Less;

class BracesFormattingUnitTest extends AbstractLessSniffUnitTestCase
{
/**
* @inheritdoc
*/
public function getErrorList()
{
return [
6 => 1,
16 => 1,
];
}

/**
* @inheritdoc
*/
public function getWarningList()
{
return [];
}
}

0 comments on commit a4538fe

Please sign in to comment.