pixsy/node_modules/pug/test/regression-2436/index.test.js

18 lines
492 B
JavaScript
Raw Normal View History

2017-12-22 17:22:08 +00:00
const pug = require('../../');
test('#2436 - block with a same name extends from the same layout in nesting', () => {
const output = pug.renderFile(
__dirname + '/issue1.pug',
{pretty: true}
);
expect(output).toMatchSnapshot();
});
test('#2436 - block with a same name extends from different layout in nesting', () => {
const output = pug.renderFile(
__dirname + '/issue2.pug',
{pretty: true}
);
expect(output).toMatchSnapshot();
});