@@ -26,7 +26,7 @@ module.exports = {
2626 config : "test/configs/fail.json"
2727 } ) ;
2828
29- fixture . check ( "test/fixtures/fixture.js" ) . then ( function ( collection ) {
29+ fixture . execute ( "test/fixtures/fixture.js" ) . then ( function ( collection ) {
3030 fixture . setErrors ( errors = collection ) ;
3131 done ( ) ;
3232 } ) ;
@@ -230,7 +230,7 @@ module.exports = {
230230 "requireCurlyBraces" : [ "while" ]
231231 } ) ;
232232
233- jscs . check ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
233+ jscs . execute ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
234234
235235 // "grunt-contrib-nodeunit" package through which these tests are run,
236236 // Mutes grunt log actions so it wouldn't interfeare with tests output,
@@ -269,7 +269,7 @@ module.exports = {
269269 "excludeFiles" : [ "test/fixtures/exclude.js" ]
270270 } ) ;
271271
272- jscs . check ( "test/fixtures/exclude.js" ) . then ( function ( errors ) {
272+ jscs . execute ( "test/fixtures/exclude.js" ) . then ( function ( errors ) {
273273 test . equal ( jscs . setErrors ( errors ) . count ( ) , 0 ,
274274 "should not find any errors in excluded file" ) ;
275275 test . done ( ) ;
@@ -283,7 +283,7 @@ module.exports = {
283283 config : "empty"
284284 } ) ;
285285
286- jscs . check ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
286+ jscs . execute ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
287287 errorsCollection . forEach ( function ( errors ) {
288288 errors . getErrorList ( ) . forEach ( function ( error ) {
289289 test . equal ( error . message , "test" , "should add additional rule" ) ;
@@ -300,7 +300,7 @@ module.exports = {
300300 reporterOutput : "test.xml"
301301 } ) ;
302302
303- jscs . check ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
303+ jscs . execute ( "test/fixtures/fixture.js" ) . then ( function ( errorsCollection ) {
304304 jscs . setErrors ( errorsCollection ) . report ( ) ;
305305
306306 test . ok ( grunt . file . exists ( "test.xml" ) , "test.xml should exist" ) ;
@@ -317,7 +317,7 @@ module.exports = {
317317 "requireCurlyBraces" : [ "while" ]
318318 } ) ;
319319
320- jscs . check ( "test/fixtures/broken.js" ) . then ( function ( errorsCollection ) {
320+ jscs . execute ( "test/fixtures/broken.js" ) . then ( function ( errorsCollection ) {
321321 errorsCollection . forEach ( function ( errors ) {
322322 test . equal (
323323 errors . getErrorList ( ) [ 0 ] . message ,
@@ -328,20 +328,5 @@ module.exports = {
328328 test . done ( ) ;
329329 } ) ;
330330 } ) . fail ( test . done ) ;
331- } ,
332-
333- "#fix send it's path to the jscs checker" : function ( test ) {
334- var jscs = new JSCS ( { } ) ;
335-
336- hooker . hook ( jscs . checker , "fixPath" , function ( path ) {
337- test . equal ( path , "path" ) ;
338- test . done ( ) ;
339-
340- return hooker . override ( {
341- fail : function ( ) { }
342- } ) ;
343- } ) ;
344-
345- jscs . fix ( "path" ) ;
346331 }
347332} ;
0 commit comments