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

15 lines
225 B
JavaScript

'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();
});