Skip to content

Commit

Permalink
Fixed parsing code test
Browse files Browse the repository at this point in the history
  • Loading branch information
schnz committed Aug 10, 2017
1 parent 35478f9 commit 5cc672c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/remark/parser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ describe('Parser', function () {

describe('parsing code', function () {
it('should include code', function () {
var slides = parser.parse('1\n code\n2\n---\n3\n code\n4');
var slides = parser.parse('1\n\n code\n2\n---\n3\n\n code\n4');

slides[0].content.should.eql(['1\n code\n2']);
slides[1].content.should.eql(['3\n code\n4']);
slides[0].content.should.eql(['1\n\n code\n2']);
slides[1].content.should.eql(['3\n\n code\n4']);
});

it('should ignore content class inside code', function () {
parser.parse('some code\n .class[x]')[0].content.should.eql(['some code\n .class[x]']);
parser.parse('some code\n\n .class[x]')[0].content.should.eql(['some code\n\n .class[x]']);
});
});

Expand Down

0 comments on commit 5cc672c

Please sign in to comment.