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

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2021
1 parent f54c771 commit e8f70d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"devDependencies": {
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark": "^13.0.0",
"remark-cli": "^9.0.0",
"remark": "^14.0.0",
"remark-cli": "^10.0.0",
"remark-preset-wooorm": "^8.0.0",
"tape": "^5.0.0",
"unist-builder": "^2.0.0",
"unist-util-remove-position": "^3.0.0",
"unist-builder": "^3.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.37.0"
},
"scripts": {
Expand Down
20 changes: 10 additions & 10 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import test from 'tape'
import remark from 'remark'
import u from 'unist-builder'
import removePosition from 'unist-util-remove-position'
import slug from './index.js'
import {remark} from 'remark'
import {u} from 'unist-builder'
import {removePosition} from 'unist-util-remove-position'
import remarkSlug from './index.js'

test('remark-slug', function (t) {
test('remarkSlug', function (t) {
t.deepEqual(
removePosition(
remark()
.use(slug)
.use(remarkSlug)
.runSync(remark().parse('# Normal\n\n## Table of Contents\n\n# Baz\n')),
true
),
Expand Down Expand Up @@ -45,7 +45,7 @@ test('remark-slug', function (t) {
tree.children[0].data = {foo: 'bar'}
}
})
.use(slug)
.use(remarkSlug)
.runSync(remark().parse('# Normal\n')),
true
),
Expand All @@ -71,7 +71,7 @@ test('remark-slug', function (t) {
tree.children[0].data = {hProperties: {className: ['foo']}}
}
})
.use(slug)
.use(remarkSlug)
.runSync(remark().parse('# Normal\n')),
true
),
Expand All @@ -98,7 +98,7 @@ test('remark-slug', function (t) {
tree.children[3].data = {hProperties: {id: 'something'}}
}
})
.use(slug)
.use(remarkSlug)
.runSync(
remark().parse(
[
Expand Down Expand Up @@ -227,6 +227,6 @@ function heading(label, id) {
}

function process(doc, options) {
var processor = remark().use(slug, options)
var processor = remark().use(remarkSlug, options)
return removePosition(processor.runSync(processor.parse(doc)), true)
}

0 comments on commit e8f70d5

Please sign in to comment.