From a4538fe599750ebb92b6174d75747d0da3505803 Mon Sep 17 00:00:00 2001 From: Sergio Vera Date: Mon, 30 Aug 2021 12:52:02 +0200 Subject: [PATCH] AC-940: Create unit test for Magento2\Less\BracesFormattingSniff check --- .../Tests/Less/BracesFormattingUnitTest.less | 16 +++++++++++ .../Tests/Less/BracesFormattingUnitTest.php | 28 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 Magento2/Tests/Less/BracesFormattingUnitTest.less create mode 100644 Magento2/Tests/Less/BracesFormattingUnitTest.php diff --git a/Magento2/Tests/Less/BracesFormattingUnitTest.less b/Magento2/Tests/Less/BracesFormattingUnitTest.less new file mode 100644 index 00000000..952237f4 --- /dev/null +++ b/Magento2/Tests/Less/BracesFormattingUnitTest.less @@ -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(); + +} diff --git a/Magento2/Tests/Less/BracesFormattingUnitTest.php b/Magento2/Tests/Less/BracesFormattingUnitTest.php new file mode 100644 index 00000000..ebbea8ee --- /dev/null +++ b/Magento2/Tests/Less/BracesFormattingUnitTest.php @@ -0,0 +1,28 @@ + 1, + 16 => 1, + ]; + } + + /** + * @inheritdoc + */ + public function getWarningList() + { + return []; + } +}