Skip to content

Commit

Permalink
test(codeblock): 'wrap' option
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Nov 9, 2019
1 parent 897f09a commit e77a137
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/scripts/tags/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,15 @@ describe('code', () => {
const $ = cheerio.load(result);
$('.gutter .line').length.should.eql(3);
});

it('wrap', () => {
let result = code('wrap:false', fixture);
result.should.eql(highlight(fixture, {
wrap: false
}));
result = code('wrap:true', fixture);
result.should.eql(highlight(fixture, {
wrap: true
}));
});
});

0 comments on commit e77a137

Please sign in to comment.