Skip to content

Commit

Permalink
fix(test/options): incorrect transfer option for the process
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jan 27, 2018
1 parent 846e386 commit c5fd774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ var describe = require('mocha').describe
var posthtml = require('../lib')

var input = '<div class="button"><rect /><div class="button__text">Text</div></div>'
var options = { singleTags: ['rect'], closingSingleTag: 'slash' }

function test (html, done) {
var options = { singleTags: ['rect'], closingSingleTag: 'slash' }
posthtml()
.process(html, options)
.then(function (result) {
Expand All @@ -24,6 +24,7 @@ describe('Set options', function () {
})

describe('Skip html parsing & use tree from options.', function () {
var options = { singleTags: ['rect'], closingSingleTag: 'slash' }
var tree = [
{
tag: 'div',
Expand Down Expand Up @@ -52,6 +53,7 @@ describe('Skip html parsing & use tree from options.', function () {
})

describe('Set option', function () {
var options = { singleTags: ['rect'], closingSingleTag: 'slash' }
var html = '<?php echo "Hello word"; ?>'
var multiHTML = '<!doctype><html><body>' + html + '</body></html>'

Expand Down

0 comments on commit c5fd774

Please sign in to comment.