This commit is contained in:
synth-ruiner
2017-12-22 17:22:08 +00:00
commit 495f1d958e
3484 changed files with 393731 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
exports[`test layout with shadowed block 1`] = `"<!-- layout.pug: root--><!-- index.pug: shadowed-->"`;
exports[`test layout with shadowed block 2`] = `"<!-- layout.pug: root--><!-- index.pug: shadowed-->"`;

4
node_modules/pug/test/shadowed-block/base.pug generated vendored Normal file
View File

@@ -0,0 +1,4 @@
block root
// base.pug: root
block shadowed
// base.pug: shadowed

4
node_modules/pug/test/shadowed-block/index.pug generated vendored Normal file
View File

@@ -0,0 +1,4 @@
extends ./layout.pug
block shadowed
// index.pug: shadowed

14
node_modules/pug/test/shadowed-block/index.test.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
const pug = require('../../');
test('layout with shadowed 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();
});

6
node_modules/pug/test/shadowed-block/layout.pug generated vendored Normal file
View File

@@ -0,0 +1,6 @@
extends ./base.pug
block root
// layout.pug: root
block shadowed
// layout.pug: shadowed