Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Commit 49936c6

Browse files
committed
Add enmasse testing merge with path config and inline options
Ref #92
1 parent 330f2bc commit 49936c6

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

test/enmasse.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
8699
exports.dot = function( test ) {
87100
grunt.util.spawn( {
88101
cmd: "grunt",

test/enmasse/Gruntfile.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)