Skip to content

Commit

Permalink
Removed linkIt support
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Mar 24, 2016
1 parent 262dc99 commit b21066b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions parse.js
Expand Up @@ -46,9 +46,6 @@ function gatherDefaults (data, options, callback) {
if (!data.link && data.slug !== undefined) {
data.link = data.slug
}
if (data.link && typeof options.linkIt === 'function') {
data.link = options.linkIt(data.link)
}
data.stat = options.stat
var oneLastThing = function () {
if (!data.date && data.stat) {
Expand Down
9 changes: 0 additions & 9 deletions test/parse.js
Expand Up @@ -108,15 +108,6 @@ describe('Should accept uncommon input', function (it) {
})
})
})
describe('Capabilities to do custom links', function (it) {
it('should be a simple function callback', function (t) {
parse('', {data: {slug: 'fancy'}, linkIt: function (link) { return '/' + link }}, function (ignore, data) {
t.equal(data.slug, 'fancy')
t.equal(data.link, '/fancy')
t.end()
})
})
})
describe('processing file data', function (it) {
it('should use the stat given', function (t) {
var someStat = {
Expand Down

0 comments on commit b21066b

Please sign in to comment.