pixsy/node_modules/pug-parser/test/no-unnecessary-blocks.test.js

15 lines
225 B
JavaScript
Raw Normal View History

2017-12-22 17:22:08 +00:00
'use strict';
var lex = require('pug-lexer');
var parse = require('../');
const input = `
div
| Hello
| World
`
test('no uncessessary blocks should be added', () => {
expect(parse(lex(input))).toMatchSnapshot();
});