Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 23, 2020
1 parent 2051569 commit 5ef46ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"ava": "2.0.0",
"ava": "3.0.0",
"babel-plugin-add-module-exports": "^1.0.0",
"browserify": "^16.0.0",
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"nyc": "^15.0.0",
"prettier": "^2.0.0",
"remark": "^11.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tinyify": "^2.0.0",
"xo": "^0.24.0"
"xo": "^0.28.0"
},
"scripts": {
"prepublishOnly": "npm run compile",
Expand Down
9 changes: 3 additions & 6 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ const specs = directory(base).reduce((tests, contents) => {
return tests
}, {})

Object.keys(specs).forEach(name => {
Object.keys(specs).forEach((name) => {
const spec = specs[name]
test(name, t => {
test(name, (t) => {
t.deepEqual(
remark()
.use(plugin)
.processSync(spec.fixture)
.toString(),
remark().use(plugin).processSync(spec.fixture).toString(),
spec.expected
)
})
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const defaults = {
2: {before: blank, after: ''}
}

export default function(options) {
export default function (options) {
const gaps = {...defaults, ...options}
const {visitors} = this.Compiler.prototype
const {heading} = visitors
Expand Down

0 comments on commit 5ef46ba

Please sign in to comment.