So siehts ganz gut aus !
This commit is contained in:
17
node_modules/pug/test/regression-2436/index.test.js
generated
vendored
Normal file
17
node_modules/pug/test/regression-2436/index.test.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user