Skip to content

Commit

Permalink
Tests for linkify-html
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Nov 6, 2015
1 parent cf8777e commit ccc4a93
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/spec/linkify-html-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var linkifyHtml = require('../../lib/linkify-html');
var htmlOptions = require('./html/options');

describe('linkify-html', function () {

it('Works with default options', function () {
var linkified = linkifyHtml(htmlOptions.original);
expect(htmlOptions.linkified).to.contain(linkified);
});

it('Works with overriden options', function () {
var linkified = linkifyHtml(
htmlOptions.original,
htmlOptions.altOptions
);
expect(htmlOptions.linkifiedAlt).to.contain(linkified);
});

});

0 comments on commit ccc4a93

Please sign in to comment.