@@ -11,32 +11,12 @@ describe('integral test', function() {
1111 this . shouldBeEqual ( 'integral.css' , 'integral.expected.css' ) ;
1212 } ) ;
1313
14- it . skip ( 'Should detect everything in integral test' , function ( done ) {
15- var config = this . comb . getConfig ( 'csscomb' ) ;
16- var input = this . readFile ( 'integral.css' ) ;
17- var expected = {
18- 'remove-empty-rulesets' : true ,
19- 'always-semicolon' : true ,
20- 'color-case' : 'lower' ,
21- 'color-shorthand' : true ,
22- 'element-case' : 'lower' ,
23- 'leading-zero' : false ,
24- quotes : 'single' ,
25- 'strip-spaces' : true ,
26- 'eof-newline' : true ,
27- 'stick-brace' : '\n' ,
28- 'colon-space' : [ '' , ' ' ] ,
29- 'combinator-space' : [ ' ' , ' ' ] ,
30- 'rule-indent' : ' ' ,
31- 'block-indent' : ' ' ,
32- 'unitless-zero' : true ,
33- 'vendor-prefix-align' : true
34- } ;
35-
14+ it ( 'Should detect everything in integral test' , function ( ) {
15+ var input = this . readFile ( 'integral.expected.css' ) ;
16+ // Clone the required config object, otherwise other tests would fail
17+ var expected = JSON . parse ( JSON . stringify ( this . comb . getConfig ( 'csscomb' ) ) ) ;
18+ delete expected [ 'sort-order' ] ;
19+ delete expected [ 'exclude' ] ;
3620 this . shouldDetect ( undefined , input , expected ) ;
37-
38- expected [ 'sort-order' ] = config [ 'sort-order' ] ;
39- this . comb . configure ( expected ) ;
40- this . shouldDetect ( undefined , 'integral.css' , expected ) ;
4121 } ) ;
4222} ) ;
0 commit comments