So siehts ganz gut aus !
This commit is contained in:
14
node_modules/pug/test/duplicate-block/index.test.js
generated
vendored
Normal file
14
node_modules/pug/test/duplicate-block/index.test.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
const pug = require('../../');
|
||||
|
||||
test('layout with duplicate block', () => {
|
||||
const outputWithAjax = pug.renderFile(
|
||||
__dirname + '/index.pug',
|
||||
{ajax: true}
|
||||
);
|
||||
const outputWithoutAjax = pug.renderFile(
|
||||
__dirname + '/index.pug',
|
||||
{ajax: false}
|
||||
);
|
||||
expect(outputWithAjax).toMatchSnapshot();
|
||||
expect(outputWithoutAjax).toMatchSnapshot();
|
||||
});
|
||||
Reference in New Issue
Block a user