From fb898eef3a30384d49237f8bdeab44eb0e54a9c0 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Wed, 26 Jul 2017 20:06:03 +0300 Subject: [PATCH] tests: add test for escaped selector --- test/simpleTest.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/simpleTest.js b/test/simpleTest.js index a8899263..33636ccc 100644 --- a/test/simpleTest.js +++ b/test/simpleTest.js @@ -18,7 +18,10 @@ describe("simple", function() { test("simple2", ".class { a: b c d; }\n.two {}", [ [1, ".class { a: b c d; }\n.two {}", ""] ]); - test("escape characters (uppercase)", ".class { content: \"\\F10C\" }", [ + test("escaped selector", ".u-m\\+ { a: b c d; }", [ + [1, ".u-m\\+ { a: b c d; }", ""] + ]); + test("escaped characters (uppercase)", ".class { content: \"\\F10C\" }", [ [1, ".class { content: \"\\F10C\" }", ""] ]); // Need uncomment after resolve https://github.com/css-modules/postcss-modules-local-by-default/issues/108