From 3440d55eaecf242c3242c1e104415e43b7a2309d Mon Sep 17 00:00:00 2001 From: Evilebot Tnawi Date: Wed, 26 Jul 2017 21:09:21 +0300 Subject: [PATCH] test: add test for escaped selector (#584) --- 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