Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #144 from Flet/standard6
Browse files Browse the repository at this point in the history
update to standard@6.0.4
  • Loading branch information
ashleygwilliams committed Feb 8, 2016
2 parents 69b8c14 + 314f8d7 commit 471f250
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "npm's markdown parser",
"main": "index.js",
"scripts": {
"test": "standard --format && mocha --timeout 5000"
"test": "standard-format -w && standard && mocha --timeout 5000"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -52,7 +52,8 @@
"devDependencies": {
"glob": "^6.0.4",
"mocha": "^2.0.1",
"standard": "^5.4.1"
"standard": "^6.0.4",
"standard-format": "^2.1.0"
},
"bin": "./bin/marky-markdown.js"
}
8 changes: 4 additions & 4 deletions test/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var fixtures = {
}

// Read in all the hand-written fixture files
fs.readdirSync(__dirname + '/fixtures').forEach(function (file) {
fs.readdirSync(path.join(__dirname, 'fixtures')).forEach(function (file) {
var key = path.basename(file).replace('.md', '')
if (key !== path.basename(file)) { // skip anything lacking a .md extension
fixtures[key] = fs.readFileSync(__dirname + '/fixtures/' + file).toString()
fixtures[key] = fs.readFileSync(path.join(__dirname, 'fixtures', file)).toString()
}
})

Expand All @@ -34,10 +34,10 @@ fixtures.dependencies.forEach(function (name) {
})

// Read in all the sample readmes saved as fixtures
fs.readdirSync(__dirname + '/fixtures/readmes').forEach(function (file) {
fs.readdirSync(path.join(__dirname, 'fixtures', 'readmes')).forEach(function (file) {
var key = path.basename(file).replace('.md', '')
if (key !== path.basename(file)) { // skip anything lacking a .md extension
fixtures[key] = fs.readFileSync(__dirname + '/fixtures/readmes/' + file).toString()
fixtures[key] = fs.readFileSync(path.join(__dirname, 'fixtures', 'readmes', file)).toString()
fixtures.examples.push(key)
}
})
Expand Down

0 comments on commit 471f250

Please sign in to comment.