Make changes to satisfy JSCS
authorBryan Rayner <bryanerayner@gmail.com>
Fri, 25 Sep 2015 16:06:56 +0000 (11:06 -0500)
committerBryan Rayner <bryanerayner@gmail.com>
Fri, 25 Sep 2015 16:06:56 +0000 (11:06 -0500)
tests/minifier.js

index 47cf56f..4c84a90 100644 (file)
     equal(minify( input, { customAttrCollapse: /.+/ }), output);
   });
 
-  test('custom attribute collapse with newlines, whitespace, and carriage returns', function(){
-    input = '<div ng-class="{ \n\r' + 
-            '               value:true, \n\r'+
-            '               value2:false \n\r' + 
+  test('custom attribute collapse with newlines, whitespace, and carriage returns', function() {
+    input = '<div ng-class="{ \n\r' +
+            '               value:true, \n\r' +
+            '               value2:false \n\r' +
             '               }"></div>';
     output = '<div ng-class="{value:true,value2:false}"></div>';
 
-    equal(minify( input, {customAttrCollapse: '/ng\-class/'}), output);
+    equal(minify(input, { customAttrCollapse: /ng\-class/ }), output);
   });
 
   test('do not escape attribute value', function() {