Skip to content

Commit

Permalink
Merge pull request #33 from magento-commerce/imported-magento-magento…
Browse files Browse the repository at this point in the history
…-coding-standard-236

[Imported] AC-940: Create unit test for Magento2\Less\BracesFormattingSniff check
  • Loading branch information
sivaschenko authored Aug 30, 2021
2 parents efc5f37 + a4538fe commit e83a012
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 e83a012

Please sign in to comment.