mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Remove use of string.endsWith by test to failure on Node 0.10/0.12.
This commit is contained in:
parent
93c1867f23
commit
3e2d1df072
1 changed files with 2 additions and 1 deletions
|
@ -982,10 +982,11 @@ module.exports.parseAllFiles = function parseAllFiles(test) {
|
|||
};
|
||||
|
||||
module.exports.validateConfigSchema = function validateConfigSchema(test) {
|
||||
var jsonFileRe = /\.json$/i;
|
||||
var testDirectory = __dirname;
|
||||
var testFiles = fs.readdirSync(testDirectory);
|
||||
testFiles.filter(function filterFile(file) {
|
||||
return file.endsWith(".json");
|
||||
return jsonFileRe.test(file);
|
||||
}).forEach(function forFile(file) {
|
||||
var data = fs.readFileSync(path.join(testDirectory, file));
|
||||
test.ok(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue