Moves escaping specs under cssContext.
authorJakub Pawlowicz <jakub@goalsmashers.com>
Wed, 11 Jun 2014 21:02:19 +0000 (22:02 +0100)
committerJakub Pawlowicz <jakub@goalsmashers.com>
Wed, 11 Jun 2014 21:02:19 +0000 (22:02 +0100)
test/unit-test.js

index 4e6f6a2..2da2e4e 100644 (file)
@@ -301,6 +301,10 @@ vows.describe('clean-units').addBatch({
       '*{color:red}'
     ]
   }),
+  'escaping': cssContext({
+    'escaped @ symbol in class name': '.pad--all0\\@sm{padding:0}',
+    'escaped @ symbol in id': '#id\\@sm{padding:0}'
+  }),
   'important comments - one': cssContext({
     'strip all but first': [
       '/*! important comment */a{color:red}/* some comment *//*! important comment */',
@@ -1942,7 +1946,5 @@ title']{display:block}",
     '@-ms-viewport': '@-ms-viewport{width:device-width}',
     '@-o-viewport': '@-o-viewport{width:device-width}',
     '@viewport': '@viewport{width:device-width}'
-  }),
-  'escaped @ symbol in class name': '.pad--all0\\@sm{padding:0}',
-  'escaped @ symbol in id': '#id\\@sm{padding:0}'
+  })
 }).export(module);