This repository was archived by the owner on Dec 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,19 @@ exports.merge = function( test ) {
8383 } ) ;
8484} ;
8585
86+ exports . mergeWithPath = function ( test ) {
87+ grunt . util . spawn ( {
88+ cmd : "grunt" ,
89+ args : [ "jscs:merge-with-path" ]
90+ } , function ( error , result ) {
91+ test . ok ( result . stdout . indexOf ( "curly" ) > 0 ) ;
92+ test . ok ( result . stdout . indexOf ( "Illegal keyword:" ) > 0 ) ;
93+ test . equal ( result . code , 3 ) ;
94+
95+ test . done ( ) ;
96+ } ) ;
97+ } ;
98+
8699exports . dot = function ( test ) {
87100 grunt . util . spawn ( {
88101 cmd : "grunt" ,
Original file line number Diff line number Diff line change @@ -62,7 +62,15 @@ module.exports = function( grunt ) {
6262 "requireCurlyBraces" : [ "while" ]
6363 }
6464 } ,
65-
65+ "merge-with-path" : {
66+ files : {
67+ src : "../fixtures/merge.js"
68+ } ,
69+ options : {
70+ config : ".jscsrc" ,
71+ "requireCurlyBraces" : [ "while" ]
72+ }
73+ } ,
6674 dot : {
6775 files : {
6876 src : "." ,
@@ -73,7 +81,6 @@ module.exports = function( grunt ) {
7381 "disallowKeywords" : [ "with" ]
7482 }
7583 } ,
76-
7784 fix : {
7885 files : {
7986 src : "../fixtures/fixable.js"
@@ -84,7 +91,6 @@ module.exports = function( grunt ) {
8491 validateIndentation : 4
8592 }
8693 } ,
87-
8894 "fix-fail" : {
8995 files : {
9096 src : "../fixtures/fixable.js"
You can’t perform that action at this time.
0 commit comments