-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to verify that default files are not broken
- Loading branch information
spalger
committed
Nov 14, 2016
1 parent
c277434
commit aca8740
Showing
6 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ node_js: | |
- "0.10" | ||
- "0.12" | ||
- "4.1" | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"undef": true, | ||
"globals": { | ||
"angular": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
angular(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var Fixture = require('../util').Fixture; | ||
var jshint = require('../../src'); | ||
var resolve = require('path').resolve; | ||
var should = require('should'); | ||
|
||
describe('Config', function () { | ||
it('pointing to a specific config file works (issue #152)', function (done) { | ||
var stream = jshint(resolve(__dirname, '../fixtures/project/.jshintrc')); | ||
|
||
stream.on('data', function (file) { | ||
should(file.jshint.results).be.undefined(); | ||
}); | ||
|
||
stream.once('end', function () { | ||
done(); | ||
}); | ||
|
||
stream.write(new Fixture('project/src/index.js')); | ||
stream.write(new Fixture('project/src/index.js')); | ||
stream.end(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters