From 03c61a5d09f653cac0a103764fb6adc776eb58e8 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Thu, 20 Apr 2017 16:38:07 +0300 Subject: [PATCH] Tests: add test with `charset` directive [#211]. --- test/simpleTest.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/simpleTest.js b/test/simpleTest.js index e05490b0..a8899263 100644 --- a/test/simpleTest.js +++ b/test/simpleTest.js @@ -32,6 +32,9 @@ describe("simple", function() { testMinimize("minimized simple", ".class { a: b c d; }", [ [1, ".class{a:b c d}", ""] ]); + test("charset directive", "@charset \"UTF-8\";\n .class { a: b c d; }", [ + [1, "@charset \"UTF-8\";\n .class { a: b c d; }", ""] + ]); testError("error formatting", ".some {\n invalid css;\n}", function(err) { assert.equal(err.message, [ 'Unknown word (2:2)',